/*--=== Function for Show/Hide ===--*/
function ForShow(id){
	document.getElementById(id).style.display="block";
	if(id=='LoginBox') {
		try{
		 	document.getElementById('txtEmail').focus();
		}
		catch(e) {
			
		}
    }
}
function ForHide(id){
	document.getElementById(id).style.display="none";
}
//==================rating=====================//
function rate01(id,rating){
	//alert("asit "+id);
	document.getElementById(id).style.width=15 + "px";
	document.getElementById(rating).value=1;
}
function rate02(id,rating){
	//alert("asit");
	document.getElementById(id).style.width=30 + "px";
	document.getElementById(rating).value=2;
}
function rate03(id,rating){
	//alert("asit");
	document.getElementById(id).style.width=45 + "px";
	document.getElementById(rating).value=3;
}
function rate04(id,rating){
	//alert("asit");
	document.getElementById(id).style.width=60 + "px";
	document.getElementById(rating).value=4;
}
function rate05(id,rating){
	//alert("asit");
	document.getElementById(id).style.width=75 + "px";
	document.getElementById(rating).value=5;
}
//==================rating hover=====================//
function starover(id,val,parent){
	var rewDisplay=document.getElementById(id);
	
	rewDisplay.innerHTML=val;
	if(parent=="star1"){
		document.getElementById(id).style.marginLeft=70 + "px";
	}else if(parent=="star2"){
		document.getElementById(id).style.marginLeft=80 + "px";
	}else if(parent=="star3"){
		document.getElementById(id).style.marginLeft=100 + "px";
	}else if(parent=="star4"){
		document.getElementById(id).style.marginLeft=110 + "px";
	}else if(parent=="star5"){
		document.getElementById(id).style.marginLeft=120 + "px";
	}
	
}

function showhide()
{
	if(document.getElementById('LoginBox').style.display == "none")
		document.getElementById('LoginBox').style.display = "block";
	else if(document.getElementById('LoginBox').style.display == "block")
		document.getElementById('LoginBox').style.display = "none";
}
