var clkChk = 0;
function changeBk(i){
if (clkChk == 0){
	switch(i) {
		case 1:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
			break;
		case 2:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
			break;
		case 3:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
			break;
		case 4:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
			break;
		case 5:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staron.jpg)";
			break;
		}
}

}
	function clearBk() {
		if(clkChk == 0){
			document.getElementById('1').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
		}
	}
	function clickposition(e){
	switch(e) {
		case 1:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
			clkChk = 1;
			break;
		case 2:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
			clkChk = 2;
			break;
		case 3:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
			clkChk = 3;
			break;
		case 4:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
			clkChk = 4;
			break;
		case 5:
			document.getElementById('1').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staron.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staron.jpg)";
			clkChk = 5;
			break;
		}
		document.review.stars.value = clkChk;
	}
	function openRating(){
			document.getElementById('1').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('2').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('3').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('4').style.backgroundImage = "url(images/staroff.jpg)";
			document.getElementById('5').style.backgroundImage = "url(images/staroff.jpg)";
		clkChk = 0;
		document.review.stars.value = clkChk;
	}
