var xmlHttpS1

function loadScript1(track) {
	xmlHttpS1=GetXmlHttpObjectS1();
	if (xmlHttpS1==null) {
		alert ("Your browser does not support AJAX!");
		return;
	}
	var url="script1.php?";
	url=url+"track="+track;
	url=url+"&sid="+Math.random();
	xmlHttpS1.onreadystatechange=stateChangedScript1;
	xmlHttpS1.open("GET",url,true);
	xmlHttpS1.send(null);
}

function stateChangedScript1() {
	if (xmlHttpS1.readyState==4) {
		//eval(xmlHttpS1.responseText);
		document.getElementById("script").innerHTML=xmlHttpS1.responseText;

	}
}

function GetXmlHttpObjectS1() {
	var xmlHttpS1=null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttpS1=new XMLHttpRequest();
	}
	catch (E) {
	// Internet Explorer
		try {
			xmlHttpS1=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (E) {
			xmlHttpS1=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttpS1;
}

