var xmlHttp
var teamSel
function showTeam(str)
{ 
	teamSel=str
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="teamFIX"
	//url=url+"?q="+str
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged
	try {
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	} catch(e) {
var is=document.forms.form1.teams.value
if(is == "Australia"){
document.all.tabiframe.src = "../teamfix/Australia.html"
}

if(is == "Bangladesh"){
document.all.tabiframe.src = "../teamfix/Bangladesh.html"
}

if(is == "Bermuda"){
document.all.tabiframe.src = "../teamfix/Bermuda.html"
}

if(is == "Canada"){
document.all.tabiframe.src = "../teamfix/Canada.html"
}

if(is == "England"){
document.all.tabiframe.src = "../teamfix/England.html"
}

if(is == "India"){
document.all.tabiframe.src = "../teamfix/India.html"
}

if(is == "Ireland"){
document.all.tabiframe.src = "../teamfix/Ireland.html"
}

if(is == "Kenya"){
document.all.tabiframe.src = "../teamfix/Kenya.html"
}

if(is == "Newzealand"){
document.all.tabiframe.src = "../teamfix/Newzealand.html"
}

if(is == "Pakistan"){
document.all.tabiframe.src = "../teamfix/Pakistan.html"
}

if(is == "Scotland"){
document.all.tabiframe.src = "../teamfix/Scotland.html"
}

if(is == "Southafrica"){
document.all.tabiframe.src = "../teamfix/Southafrica.html"
}

if(is == "Srilanka"){
document.all.tabiframe.src = "../teamfix/Srilanka.html"
}

if(is == "Netherlands"){
document.all.tabiframe.src = "../teamfix/Netherlands.html"
}

if(is == "Westindies"){
document.all.tabiframe.src = "../teamfix/Westindies.html"
}

if(is == "Zimbabwe"){
document.all.tabiframe.src = "../teamfix/Zimbabwe.html"
}
	}
}

function stateChanged()
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtImage").innerHTML="<img src='../flags/"+teamSel+".gif' width=67 height=35>"
	} 
} 

function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}