
var xmlHttp;function processRequest()
{if(xmlHttp.readyState==4)
{if(xmlHttp.status==200)
{responseMessage();}}}
function makeRequest(url)
{xmlHttp=getXmlHttpObject(processRequest);xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function getXmlHttpObject(handler)
{var objXmlHttp=null;if(navigator.userAgent.indexOf("MSIE")>=0)
{var strName="Msxml2.XMLHTTP";if(navigator.appVersion.indexOf("MSIE 5.5")>=0)
{strName="Microsoft.XMLHTTP";}
try
{objXmlHttp=new ActiveXObject(strName);objXmlHttp.onreadystatechange=handler;return objXmlHttp;}
catch(e)
{alert("Error. Scripting for ActiveX might be disabled");return;}}
if(navigator.userAgent.indexOf("Mozilla")>=0)
{objXmlHttp=new XMLHttpRequest();objXmlHttp.onload=handler;objXmlHttp.onerror=handler;return objXmlHttp;}}
function MakeRequest(url)
{xmlHttp=GetXmlHttpObject(processRequest);xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function GetXmlHttpObject(handler)
{var objxmlHttp=null;try
{objxmlHttp=new XMLHttpRequest();objxmlHttp.onload=handler;objxmlHttp.onerror=handler;setCookie("IsAjax","true",null);return objxmlHttp;}
catch(e)
{try
{objxmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{objxmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{alert("Error. Scripting for ActiveX might be disabled");setCookie("IsAjax","false",null);return;}}
objxmlHttp.onreadystatechange=handler;setCookie("IsAjax","true",null);return objxmlHttp;}}