function RAjaxRequest(b){this.requestSetOptions(b);this.requestMakeTransport();this.requestSend()}(function(){RAjaxRequest.prototype={options:{asynch:true,method:"get",contentType:"application/x-www-form-urlencoded",params:"",url:"",headers:{},callback:null},transport:null,ActiveXObjects:["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],requestSetOptions:function(b){for(var c in b){this.options[c]=b[c]}},requestMakeTransport:function(){var c=null;try{c=new XMLHttpRequest()}catch(d){for(var b=0;b<this.ActiveXObjects.length;b++){try{c=new ActiveXObject(this.ActiveXObjects[b]);if(c){break}}catch(d){}}}this.transport=c},requestSend:function(){try{if(typeof(this.options.callback)=="function"){var f=this;this.transport.onreadystatechange=function(){if(f.transport.readyState==4){f.options.callback(f.transport,f.options)}}}var d=this.options.params||"";if(this.options.method=="get"&&d.length>0){this.options.url+=(this.options.url.match(/\?/)?"&":"?")+d.replace(new RegExp("\\+","g"),"%2B")+"&_="}this.transport.open(this.options.method.toUpperCase(),this.options.url,this.options.asynch);var b=this.options.headers;b["X-Requested-With"]="XMLHttpRequest";if(this.options.method=="post"){b["Content-type"]=this.options.contentType}if(this.transport.overrideMimeType){b.Connection="close"}for(var c in b){this.transport.setRequestHeader(c,b[c])}this.transport.send(this.options.method=="post"?this.options.params:null)}catch(c){}},responseIsSuccess:function(){try{if(this.transport.status==200){return true}}catch(b){}return false}}})()