
var asyncRequest=function(){var getXHR=function(){var http;try{http=new XMLHttpRequest;getXHR=function(){return new XMLHttpRequest;};}catch(e){var msxml=['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'];for(var i=0,len=msxml.length;i<len;++i){try{http=new ActiveXObject(msxml[i]);getXHR=function(){return new ActiveXObject(msxml[i]);};break;}catch(e){}}}
return http;};return function(method,uri,callback,postData){var http=getXHR();http.open(method,uri,true);http.onreadystatechange=function(){if(http&&http.readyState==4&&(http.status>=200&&http.status<300)){if(callback){callback(http);}
http.onreadstatechange=null;}};if(method.toLowerCase()=='post'){http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');}
http.send(postData||null);return http;};}();