function ajaxClass(_1,_2){
this.xmlHttp=null;
this.message_div="";
this.hide_message=true;
this.on_show_message=_1&&_1!=undefined?_1:false;
this.on_hide_message=_2&&_2!=undefined?_2:false;
this.request=function(_3,_4,_5,_6,_7,_8){
if(this.xmlHttp&&this.xmlHttp.readyState!=0&&this.xmlHttp.readyState!=4){
return;
}
this.xmlHttp=this.GetXmlHttpObject();
if(this.xmlHttp==null){
return;
}
this.message_div=_6;
this.hide_message=_7;
_3=_3.toUpperCase();
var _9="cache_breaker="+escape(Math.random());
if(_3=="POST"){
_5+=(_5!=""?"&":"")+_9;
}else{
_4+=(_4.indexOf("?")!=-1?"&":"?")+_9;
}
this.xmlHttp.open(_3,_4,true);
if(_3=="POST"){
this.xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=utf-8");
this.xmlHttp.setRequestHeader("Content-length",_5.length);
this.xmlHttp.setRequestHeader("Connection","close");
}
var _a=this;
this.xmlHttp.onreadystatechange=function(){
if(_a.xmlHttp.readyState==4){
_8(_a.xmlHttp.responseText);
_a.hideMessage();
}else{
if(_a.xmlHttp.readyState==1){
_a.showMessage(_3=="POST"?"Sending data...":"Loading data...");
}
}
};
this.xmlHttp.send(_3=="POST"?_5:null);
};
this.GetXmlHttpObject=function(){
var _b=null;
try{
_b=new XMLHttpRequest();
}
catch(e){
try{
_b=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
_b=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return _b;
};
this.showMessage=function(_c){
if(this.on_show_message){
return this.on_show_message(_c);
}
if(this.message_div!=""){
if(div=document.getElementById(this.message_div)){
div.innerHTML=_c;
}
}
};
this.hideMessage=function(){
if(!this.hide_message){
return;
}
if(this.on_hide_message){
return this.on_hide_message();
}
if(this.message_div!=""){
if(div=document.getElementById(this.message_div)){
div.innerHTML="";
}
}
};
};

