function checkcountry(){
			if(document.getElementById('mycountry').value=="Myanmar"){
					document.getElementById('state').style.visibility="visible";
			}
			else
				document.getElementById('state').style.visibility="hidden";
		}
	function validate()
	{
		var tomatch=/[A-Za-z0-9]\w{2,}@[A-Za-z0-9-]{3,}\.[A-za-z]{3}/;
		
		var f_name=document.entryform.first_name.value;
		var l_name=document.entryform.last_name.value;
		var user_name=document.entryform.name.value;
		var email=document.entryform.email.value;		
			
		if( f_name=="" || f_name.search(/fuck/i)!= -1 ||  f_name.search(/lee/i)!= -1 )
			{
				document.getElementById('cross1').style.visibility="visible";
				document.entryform.first_name.focus();
				return false;
			}
		else
			document.getElementById('cross1').style.visibility="hidden";
		if(l_name=="" ||  l_name.search(/fuck/i)!=-1 ||  l_name.search(/lee/i)!=-1)
			{
				document.getElementById('cross2').style.visibility="visible";
				document.entryform.last_name.focus();
				return false;
			}
		else
			document.getElementById('cross2').style.visibility="hidden";
		if(user_name==""  ||  user_name.search(/fuck/i)!=-1 ||  user_name.search(/lee/i)!=-1)
			{
				document.getElementById('cross3').style.visibility="visible";
				document.entryform.name.focus();
				return false;
			}
		else
			document.getElementById('cross3').style.visibility="hidden";
			
		if(document.entryform.pass.value=="")
			{
				document.getElementById('cross4').style.visibility="visible";
				document.entryform.pass.focus();
				return false;
			}
		else
			document.getElementById('cross4').style.visibility="hidden";

		if(document.entryform.confirmpass.value=="")
			{
				document.getElementById('cross5').style.visibility="visible";
				document.entryform.confirmpass.focus();
				return false;
			}
		else
			document.getElementById('cross5').style.visibility="hidden";
		
		if(document.entryform.pass.value!=document.entryform.confirmpass.value)
			{
				alert('Password did not match! Type again!');
				document.entryform.confirmpass.focus();
				return false;
			}
		else
			document.getElementById('cross5').style.visibility="hidden";
			
		if(email=="" || !tomatch.test(document.entryform.email.value) ||  email.search(/fuck/i)!=-1 ||  email.search(/lee/i)!=-1)
			{
				document.getElementById('cross6').style.visibility="visible";
				document.entryform.email.focus();
				return false;
			}
		else
			document.getElementById('cross6').style.visibility="hidden";
		
		if(document.entryform.con_email.value=="" || !tomatch.test(document.entryform.con_email.value))
			{
				document.getElementById('cross7').style.visibility="visible";
				document.entryform.con_email.focus();
				return false;
			}
		else
			document.getElementById('cross7').style.visibility="hidden";

		if(document.entryform.email.value!=document.entryform.con_email.value)
			{
				alert('Email did not match! Type again!');
				document.entryform.con_email.focus();
				return false;
			}
		else
			document.getElementById('cross5').style.visibility="hidden";
		
		if(document.getElementById('date').value=="")
			{
				alert('Please Select Date!')
				return false;
			}
		if(document.getElementById('month').value=="")
			{
				alert('Please Select Month!')
				return false;
			}
		if(document.getElementById('year').value=="")
			{
				alert('Please Select Year!')
				return false;
			}
			
		if(document.entryform.address.value=="")
			{
				document.getElementById('cross8').style.visibility="visible";
				document.entryform.address.focus();
				return false;
			}
		else
			document.getElementById('cross8').style.visibility="hidden";
			
		if(document.entryform.town.value=="")
			{
				document.getElementById('cross9').style.visibility="visible";
				document.entryform.town.focus();
				return false;
			}
		else
			document.getElementById('cross9').style.visibility="hidden";
			
		if(document.getElementById('mycountry').value=="")
			{
				alert('Please Select Country!')
				return false;
			}
		
		document.entryform.submit();
	}
	
	function show(ddd){
	document.getElementById(ddd).style.background= "#0c497f";}
	function hide(ddd){
	document.getElementById(ddd).style.background= "#E8E8E8";}

	function check(){
		var player=document.getElementById('players');
			if(player.value=="1")
				{
					location.href="aung-aung-oo.php";
				}
			if(player.value=="2")
				{
					location.href="kyaw-doom.php";
				}
			if(player.value=="3")
				{
					location.href="wine-chit-aung.php";
				}
			if(player.value=="4")
				{
					location.href="kyaw-swar-win.php";
				}
			if(player.value=="5")
				{
					location.href="htay-aung.php";
				}
			if(player.value=="6")
				{
					location.href="soe-linn-htun.php";
				}
			if(player.value=="7")
				{
					location.href="tin-win-aung.php";
				}
			if(player.value=="8")
				{
					location.href="kyi-linn.php";
				}
			if(player.value=="9")
				{
					location.href="naing-oo-lwin.php";
				}
			if(player.value=="10")
				{
					location.href="kyaw-thu-ra.php";
				}
			if(player.value=="11")
				{
					location.href="aung-thike.php";
				}
			if(player.value=="12")
				{
					location.href="maung-maung-myint.php";
				}
			if(player.value=="13")
				{
					location.href="min-min.php";
				}
			if(player.value=="14")
				{
					location.href="myo-min-htun.php";
				}
			if(player.value=="15")
				{
					location.href="kera.php";
				}
			if(player.value=="16")
				{
					location.href="kyaw-zay-yar-win.php";
				}
			if(player.value=="17")
				{
					location.href="david-dan.php";
				}
			if(player.value=="18")
				{
					location.href="myat-htoo-khaing.php";
				}
			if(player.value=="19")
				{
					location.href="yar-zar-soe.php";
				}
			if(player.value=="20")
				{
					location.href="shwe-hlaing-win.php";
				}
			if(player.value=="21")
				{
					location.href="zin-min-oo.php";
				}
			if(player.value=="22")
				{
					location.href="naing-zay-yar-htun.php";
				}
			if(player.value=="23")
				{
					location.href="pyie-phyo-aung.php";
				}
			if(player.value=="24")
				{
					location.href="yan-naing-htun.php";
				}
			if(player.value=="25")
				{
					location.href="yan-aung-kyaw.php";
				}
			if(player.value=="26")
				{
					location.href="ntom-lebeau.php";
				}
			if(player.value=="27")
				{
					location.href="yan-aung-win.php";
				}
			if(player.value=="28")
				{
					location.href="saw-l-htoo.php";
				}
			if(player.value=="29")
				{
					location.href="missipo.php";
				}
	}
	

function poponload(file)
{
testwindow= window.open ("highlight\/"+file, "mywindow",
    "location=0,toolbar=0,status=0,scrollbars=0,width=360,height=300");
testwindow.moveTo(0,0);
}

