function doLogin(checkKey)
{


	if(checkKey && !checkEnter())
		return false;
		
	//var f=document.forms[0];

	if (!checkEntry(getobject("txtUser"),"Login ID."))
		return false;
	
	if (!checkEntry(getobject("txtPassword"),"Password."))
		return false;
	//f.submit();	
	
	PostToExternalPage(LOGIN_URL,"_blank");
	
	return true;
	
}

function doSearch(checkKey)
{

	if(checkKey && !checkEnter())
		return;
		
	var f=document.frmSearch;
	if (!checkEntry(getobject("txtSearch"),"Search string."))
		return;
	
	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("http://www.resultsvault.com/cricket/utils/demo.asp?clubID=101&assocID=1","nw","resizable=yes");
	//resizable=yes;location=no;menubar=no;toolbar=no;status=no
}

