function GetXmlHttpObject() {
	var xmlHttp=null;
	try { xmlHttp=new XMLHttpRequest();}	// Firefox, Opera 8.0+, Safari
	catch (e) {								//Internet Explorer
	 try {xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
	 catch (e) {xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
	}
	return xmlHttp;
}
function pokeText(sFilename, sID, sEval) {
	var xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) {return;}
	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4 || xmlHttp.readyState=="complete")
			if (xmlHttp.status == 200) {document.getElementById(sID).innerHTML=xmlHttp.responseText;}
 	}
	if (sEval != undefined) {sFilename += eval(sEval);}
	xmlHttp.open("GET", sFilename, true);
	xmlHttp.send(null);
}
function postForm(url, params) {	//Submit form using POST and wait for response
	var xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) {return;}
	xmlHttp.open("POST", url, false);	//Wait for response
	//Send the header information for a POST request
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", params.length);
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.send(params); //Send the POST data
	return xmlHttp.responseText;
}