<!--
function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function setRating(ratingNumber) {
	var ratingUL = document.getElementById("rating");
	RemoveClassName(ratingUL, "nostar");
	RemoveClassName(ratingUL, "onestar");
	RemoveClassName(ratingUL, "twostar");
	RemoveClassName(ratingUL, "threestar");
	var rating;
	switch (ratingNumber) {
		case 0:
			AddClassName(ratingUL, "nostar", false);
			//ratingUL.style.backgroundPosition = "0px 0px";
			document.getElementById("stars").value = "0";
		break;
		case 1:
			AddClassName(ratingUL, "onestar", false);
			//ratingUL.style.backgroundPosition = "0px -30px";
			document.getElementById("stars").value = "1";
		break;
		case 2:
			AddClassName(ratingUL, "twostar", false);
			//ratingUL.style.backgroundPosition = "0px -60px";
			document.getElementById("stars").value = "2";
		break;
		case 3:
			AddClassName(ratingUL, "threestar", false);
			//ratingUL.style.backgroundPosition = "0px -90px";
			document.getElementById("stars").value = "3";
		break;
	}
}

function checkCapsLock(e, element){
	kc = e.keyCode ? e.keyCode : e.which;
	sk = e.shiftKey ? e.shiftKey : ((kc == 16) ? true : false);
	if (((kc >= 65 && kc <= 90) && !sk) || ((kc >= 97 && kc <= 122) && sk)) {
		document.getElementById(element).style.display = 'block';
	} else {
		document.getElementById(element).style.display = 'none';
	}
}

//modified from: Limit number of checked checkboxes script- by JavaScript Kit (www.javascriptkit.com)
/*
function checkboxlimit(checkgroup, limit){
	var checkgroup=checkgroup
	var limit=limit
	for (var i=0; i<checkgroup.length; i++){
		checkgroup[i].onclick=function(){
		var checkedcount=0
		for (var i=0; i<checkgroup.length; i++)
			checkedcount+=(checkgroup[i].checked)? 1 : 0
		if (checkedcount>limit){
			alert("You can only select a maximum of "+limit+" checkboxes")
			this.checked=false
			}
		}
	}
}*/
//-->