function _ajax(a){this.async=a;this.handler=null}_ajax.prototype.createhandler=function(){try{this.handler=new XMLHttpRequest;return this.handler.setRequestHeader?true:false}catch(a){try{this.handler=new ActiveXObject("Microsoft.XMLHTTP");return true}catch(a){return false}}return false};_ajax.prototype.onreadystatechange=function(a){if(this.handler==null){if(!this.createhandler()){return false}}this.handler.onreadystatechange=a;return true};_ajax.prototype.encode_datastream=function(a){a=a.split("&");for(key in a){if(a[key].toString().match(/\=/)){bits=a[key].toString().split("=");a[key]=bits[0]+"="+encodeURIComponent(bits[1])}}return a.join("&")};_ajax.prototype.send=function(c,b,a){if(!this.handler.readyState&&!this.handler.readyState<4){c=this.encode_datastream(c);this.handler.open(b,a+"?"+((b=="GET")?c:""),this.async);this.handler.send(c)}};