function submitITZ() // My Account ITZ submit
{
	   if (document.forms[0].accountno.value == "" || document.forms[0].password.value == "" )
		 {
		 		alert("Please enter ITZ info.");
		    	document.forms[0].accountno.focus();
		    	return ;
	     } 	
	     document.forms[0].submit();
}	  

function submitITZWeb() // My Account ITZ submit
{
	   if (document.forms[0].account.value == "" || document.forms[0].password.value == "" )
		 {
		 		alert("Please enter ITZ info.");
		    	document.forms[0].account.focus();
		    	return ;
	     }
	     document.forms[0].submit();
	     alert("click 'Low Tier Winning Amount (Rs.)' for detailed Previous Bet list")
}	  


function WinSMS() // Left Link for Game Help
{
    window.open("Html/playsms.htm","_blank","top=110,left=250,width=175,height=350,toolbar=0,scrollbars=0,menubar=0,scrollbars=0,resizebale=0,location=0,statusbar=0");
}

function WinITZOpen() // Top Link for ITZ
{
    window.open("http://www.itzcash.com/buyitz.html","_blank","");
}


	function  WinOpen(Id) // Download Client validation 
	{
		if(Id == "0"){
			alert("Please Login to download the Playwin Desktop Client.");
			location.href = "Default.aspx";
		}
		else{
				w1 = window.open("DownloadClient.aspx","Download","Top=500,left=500,height=2,width=2")
			}
	}

// Flyer close funtion
IE = (document.all) ? 1 : 0 ;
NS = (document.layers) ? 1 : 0 ;

function Hideflyer()
{
    if(IE){document.all['flyer'].style.visibility = "hidden"}
	if(NS){document.layers['flyer'].visibility = "hidden"}
}
// Flyer close funtion




//
function openDidIWin(aURL){
var k = window.open(aURL,'PLAYWIN','toolbar=no,width=450,height=250,scrollbars=no,left=150,top=120');
	k.focus();
}
//Silver Pencil Bigger Images
function OpenWindows(Url)
{
window.open(Url,"test","toolbar=0, scrollbars=0, status=no, left=0, top=0, width=838, height=577" )
}

function InvalidSession()
{
    //alert("Your session is invalid.");
    messg = "----------------------------------------------------\n \n";
	messg += "Dear user, You have not logged in.\n";
	messg += "Kindly click the OK button below and login.\n";
	messg += "                     Happy Winning!\n";
	messg += "------------------------------------------------------\n";
	alert(messg);
    location.href = "Default.aspx";
}

function InvalidSession() //session over
{
    messg = "----------------------------------------------------\n \n";
	messg += "Dear user, You have not logged in.\n";
	messg += "Kindly click the OK button below and login.\n";
	messg += "                     Happy Winning!\n";
	messg += "------------------------------------------------------\n";
	alert(messg);
    //alert("Your session is invalid. Please login.");
    location.href = "Default.aspx";
}

function URLAlert()
{
    messg = "----------------------------------------------------\n \n";
	messg += "Dear user,\n";
	messg += "This site is not authorised to access myplaywin.com\n";
	messg += "All links on this site leading to myplaywin.com are illegal and unauthorised.\n\n";
	messg += "------------------------------------------------------\n";
	alert(messg);
    //location.href = "Default.aspx";
}


function checkZero(Num){
	var newNum = "";
	if(Num < 10){
		newNum = "0" + Num;
	}else {
		newNum = Num;
	}
	return newNum;
}