function openWin(img, width, height) {
  winId = window.open('','newwin','width=' + width + ',height=' + height);
  winId.document.write('<html><head><title>Ok La! Preview Window</title></head>');
  winId.document.write('<body onLoad="if (window.focus) window.focus()" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"><center>');
  winId.document.write('<img src="' + img + '">');
  winId.document.write('</center></body></html>');
  winId.document.close();
}

function sendForm(action,encoding) {
    if (document.images) {
        document.FormName.action = action;
    }
    return true;
}



function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function changeImage(imgId, newImg) {
  document.getElementById(imgId).src = newImg;
  return false;
}
function starMouseOver(stars, webSiteID) {
  while (stars > 0) {
    var thisStar = document.getElementById(stars + "stars" + webSiteID);
    thisStar.className = "starSelected";
    stars--;
  }
}

function starMouseOut(webSiteID) {
  var stars = 5;
  while (stars > 0) {
    var thisStar = document.getElementById(stars + "stars" + webSiteID);
    thisStar.className = "starUnselected";
    stars--;
  }
  var formField = document.getElementById("Rating" + webSiteID);
  starMouseOver(formField.value, webSiteID);
}

function starClick(stars, webSiteID) {
  var formField = document.getElementById("Rating" + webSiteID);
  formField.value = stars;
}