function doLogin(checkKey)
{


	if(checkKey && !checkEnter())
		return;
		
	var f=document.frmLogin;
	
	if (!checkEntry(f.txtUser,"Login ID."))
		return;
	
	if (!checkEntry(f.txtPassword,"Password."))
		return;
	
		 
	f.submit();	
	
}

function doSearch(checkKey)
{

	
	if(checkKey && !checkEnter())
		return;
	
	
	var st=document.frmSearch.obSearchType;
	var c=document.frmSearch.selCountries;
	
	var country=c.options[c.selectedIndex].value;
	if (!checkEntry(getobject("txtSearch"),"Search string."))
		return;
	
	if(st[0].checked)
		document.location.href="/pages/search.aspx?id="+getobject("txtSearch").value + "|" + country;
	//else
	//	document.frmSearch.submit(); 
		
		
		//document.location.href="/pages/search.aspx?id="+getobject("txtSearch").value;
	
}

function doSubscribe(checkKey)
{ 
//alert("Sorry, this function is temporaily unavailable");
//return;
	if(checkKey && !checkEnter())
		return;
	var f=document.frmSubscribe;
	if (!checkEntry(f.txtEmail,"Email address.") || !validEmail2(f.txtEmail))
		return;
	f.submit();
}


function launchTour()
{
	window.open("/cricket/utils/demo.asp?clubid=101","nw","resizable=yes");
	//resizable=yes;location=no;menubar=no;toolbar=no;status=no
}

