
function starsOver(img1,img2,img3,img4,img5,starId)
{
switch(starId)
{
case 1:
{
document.getElementById(img1).src="images/starv2.gif";
document.getElementById(img2).src="images/star1.gif";
document.getElementById(img3).src="images/star1.gif";
document.getElementById(img4).src="images/star1.gif";
document.getElementById(img5).src="images/star1.gif"; 
break; }
case 2:
{
document.getElementById(img1).src="images/starv2.gif";
document.getElementById(img2).src="images/starv2.gif";
document.getElementById(img3).src="images/star1.gif";
document.getElementById(img4).src="images/star1.gif";
document.getElementById(img5).src="images/star1.gif";
 break; }
case 3:
{
document.getElementById(img1).src="images/starv2.gif";
document.getElementById(img2).src="images/starv2.gif";
document.getElementById(img3).src="images/starv2.gif";
document.getElementById(img4).src="images/star1.gif";
document.getElementById(img5).src="images/star1.gif"; break; }
case 4:
{
document.getElementById(img1).src="images/starv2.gif";
document.getElementById(img2).src="images/starv2.gif";
document.getElementById(img3).src="images/starv2.gif";
document.getElementById(img4).src="images/starv2.gif";
document.getElementById(img5).src="images/star1.gif"; break; }
case 5:
{
document.getElementById(img1).src="images/starv2.gif";
document.getElementById(img2).src="images/starv2.gif";
document.getElementById(img3).src="images/starv2.gif";
document.getElementById(img4).src="images/starv2.gif";
document.getElementById(img5).src="images/starv2.gif"; break; }
}
}


function starsOut(img1,img2,img3,img4,img5,hdn)
{
switch(parseInt(document.getElementById(hdn).value))
{
case 1:
{
document.getElementById(img1).src="images/star2.gif";
document.getElementById(img2).src="images/star1.gif";
document.getElementById(img3).src="images/star1.gif";
document.getElementById(img4).src="images/star1.gif";
document.getElementById(img5).src="images/star1.gif";
break;
}

case 2:
{
document.getElementById(img1).src="images/star2.gif";
document.getElementById(img2).src="images/star2.gif";
document.getElementById(img3).src="images/star1.gif";
document.getElementById(img4).src="images/star1.gif";
document.getElementById(img5).src="images/star1.gif";
break;
}

case 3:
{
document.getElementById(img1).src="images/star2.gif";
document.getElementById(img2).src="images/star2.gif";
document.getElementById(img3).src="images/star2.gif";
document.getElementById(img4).src="images/star1.gif";
document.getElementById(img5).src="images/star1.gif";
break;
}

case 4:
{
document.getElementById(img1).src="images/star2.gif";
document.getElementById(img2).src="images/star2.gif";
document.getElementById(img3).src="images/star2.gif";
document.getElementById(img4).src="images/star2.gif";
document.getElementById(img5).src="images/star1.gif";
break;
}

case 5:
{
document.getElementById(img1).src="images/star2.gif";
document.getElementById(img2).src="images/star2.gif";
document.getElementById(img3).src="images/star2.gif";
document.getElementById(img4).src="images/star2.gif";
document.getElementById(img5).src="images/star2.gif";
break;
}

default:
{
document.getElementById(img1).src="images/star1.gif";
document.getElementById(img2).src="images/star1.gif";
document.getElementById(img3).src="images/star1.gif";
document.getElementById(img4).src="images/star1.gif";
document.getElementById(img5).src="images/star1.gif";
break;
}
}

}
