var XH_ieProgId_;var XML_READY_STATE_UNINITIALIZED=0;var XML_READY_STATE_LOADING=1;var XML_READY_STATE_LOADED=2;var XML_READY_STATE_INTERACTIVE=3;var XML_READY_STATE_COMPLETED=4;function XH_XmlHttpInit_(){var XH_ACTIVE_X_IDENTS=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var i=0;i<XH_ACTIVE_X_IDENTS.length;i++){var candidate=XH_ACTIVE_X_IDENTS[i];try{new ActiveXObject(candidate);XH_ieProgId_=candidate;break}catch(e){}}if(!XH_ieProgId_){throw Error("Could not create ActiveXObject. ActiveX might be disabled,"+" or MSXML might not be installed.")}}}XH_XmlHttpInit_();function XH_XmlHttpCreate(){if(XH_ieProgId_){return new ActiveXObject(XH_ieProgId_)}else{return new XMLHttpRequest()}}function XH_XmlHttpGET(xmlHttp,url,handler){xmlHttp.open("GET",url,true);xmlHttp.onreadystatechange=handler;XH_XmlHttpSend(xmlHttp,null)}function XH_XmlHttpPOST(xmlHttp,url,data,handler){xmlHttp.open("POST",url,true);xmlHttp.onreadystatechange=handler;xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-Length",(data.length));XH_XmlHttpSend(xmlHttp,data)}function XH_XmlHttpOpen(xmlHttp,verb,url,handler){xmlHttp.open(verb,url,true);xmlHttp.onreadystatechange=handler}function XH_XmlHttpSetRequestHeader(xmlHttp,name,value){xmlHttp.setRequestHeader(name,value)}function XH_XmlHttpSend(xmlHttp,data){try{xmlHttp.send(data)}catch(e){log("XMLHttpSend failed "+e.toString()+"<br>"+e.stack);throw e}}function XH_XmlHttpAbort(xmlHttp){SafeTimeout(window,function(){xmlHttp.onreadystatechange=function(){}},0);if(xmlHttp.readyState<XML_READY_STATE_COMPLETED){xmlHttp.abort()}};
