var xmlhttp;function GetXmlHttpObject()
{if(window.XMLHttpRequest)
{return new XMLHttpRequest();}
if(window.ActiveXObject)
{return new ActiveXObject("Microsoft.XMLHTTP");}
return null;}
function ajaxRequest(url){xmlhttp=GetXmlHttpObject();if(xmlhttp==null)
{alert("Browser does not support HTTP Request");return;}
var myUrl="";myUrl=url+"&rand="+Math.random();xmlhttp.open("GET",myUrl,false);xmlhttp.send(null);return xmlhttp.responseText;}
function ajaxRequestPost(url,params){xmlhttp=GetXmlHttpObject();if(xmlhttp==null)
{alert("Browser does not support HTTP Request");return;}
params=params+"&rand="+Math.random();xmlhttp.open("post",url,false);xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=ISO-8859-1");xmlhttp.send(params);return xmlhttp.responseText;}
function ajaxRequestAs(url){xmlhttp=GetXmlHttpObject();if(xmlhttp==null)
{alert("Browser does not support HTTP Request");return;}
var myUrl="";myUrl=url+"&rand="+Math.random();xmlhttp.onreadystatechange=stateChanged;xmlhttp.open("GET",myUrl,true);xmlhttp.send(null);}
function stateChanged()
{if(xmlhttp.readyState==4)
{return xmlhttp.responseText;}}
