var myRequest = null;function CreateXmlHttpReq(handler) {  var xmlhttp = null;  try {    xmlhttp = new XMLHttpRequest();  } catch(e) {    try {        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");    } catch(e) {        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");    }  }  xmlhttp.onreadystatechange = handler;  return xmlhttp;}function updateTeamHandler() {    if (myRequest.readyState == 4 && myRequest.status == 200) {        e = document.getElementById("player");			var giocatori=myRequest.responseText.split(',');			e.options.length=0;			for(var i=0;i<giocatori.length;i++){				var datig=giocatori[i].split(';');				e.options[i]=new Option(datig[0],datig[1],false,false);			}							option = e.getElementsByTagName("option");				active = option[0].childNodes[0].nodeValue;				textnode = document.createTextNode(active);				for(b = 0; b < option.length; b++) {					if(option[b].selected == true) {						textnode = document.createTextNode(option[b].childNodes[0].nodeValue);					}				}				var span = document.createElement("span");				span.className = "select";				span.id = "select" + e.name;				span.appendChild(textnode);				e.parentNode.insertBefore(span, e);				e.onchange = Custom.choose;                                e.onfocus = Custom.focus;                                e.onblur = Custom.blur;					    }	}function updatePlayers(){e = document.getElementById("player");				option = e.getElementsByTagName("option");				active = option[0].childNodes[0].nodeValue;				textnode = document.createTextNode(active);				for(b = 0; b < option.length; b++) {					if(option[b].selected == true) {						textnode = document.createTextNode(option[b].childNodes[0].nodeValue);					}				}				var span = document.createElement("span");				span.className = "select";				span.id = "select" + e.name;				span.appendChild(textnode);				e.parentNode.insertBefore(span, e);				e.onchange = Custom.choose;                                e.onfocus = Custom.focus;                                e.onblur = Custom.blur;		}function updateTeam(team) {    myRequest = CreateXmlHttpReq(updateTeamHandler);    myRequest.open("GET","request.php?op=printAllGiocatori&id="+team);    myRequest.send(null);}function goTo(page){	//if(page.indexOf("giocatore")!=-1)	//	window.location=page;	return false;}