// scorecard functions
function fopen4() {
window.open('http://thatscricket.oneindia.in/data/score_data/Aus-Ind-2004-01-09.html','','height=500,width=500,scrollbars');
}

// scorecard functions
function fopen3() {
window.open('http://thatscricket.oneindia.in/data/score_data/Ind-Eng-2002-09-05.html','','height=500,width=500,scrollbars');
}

// dream team contest
function fopen5() {
window.open('http://thatscricket.oneindia.in/specials/wc2003/rules.html','','height=480,width=520,scrollbars');
}

function fopen6() {
window.open('http://thatscricket.oneindia.in/specials/wc2003/prizes.html','','height=300,width=350,scrollbars');
}

// drop down for series on right
function Links(cname) 
{
if(cname=="forthtest")
{
if (document.forth.forthtest.options[document.forth.forthtest.selectedIndex].value != "") 
{location = document.forth.forthtest.options[document.forth.forthtest.selectedIndex].value;}
}

if (cname == "forthloi") {
if (document.fifth.forthloi.options[document.fifth.forthloi.selectedIndex].value != "") 
{location = document.fifth.forthloi.options[document.fifth.forthloi.selectedIndex].value;}
}
if (cname == "recenttest") {
if (document.recent.recenttest.options[document.recent.recenttest.selectedIndex].value != "") 
{location = document.recent.recenttest.options[document.recent.recenttest.selectedIndex].value;}
}
if (cname == "recentloi") {
if (document.recent1.recentloi.options[document.recent1.recentloi.selectedIndex].value != "") 
{location = document.recent1.recentloi.options[document.recent1.recentloi.selectedIndex].value;}
}
if (cname == "archives") {
if (document.archive.archives.options[document.archive.archives.selectedIndex].value != "") 
{location = document.archive.archives.options[document.archive.archives.selectedIndex].value;}
}

}
//-------------------------------------Captain/Non captain------------------------------------------------------
function getPlayers() {
	
	var cid = window.document.getElementById('country').value;
	alert("hi");
	window.document.location.href=window.document.location.href+"?cid="+cid;
}

//-------------------------------------Team stats------------------------------------------------------

function getCountry(url)
{
	var con = window.document.getElementById('coun').value;
	alert('hi');
	window.document.location.href=url+"?cid="+con;
}
//------------------------------------------------------------------------------------------------------

function check()
{
	var Email= document.subscribe.emailID.value;
	
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(Email))
  	{
	   	return true;
  	}
  	else
  	{
   		alert("Enter valid Email ID");
		return false;
  	}
}

