function xmlHttpRequestHandler(a){if(typeof a=="undefined"){a=null}this.props=a;this.init()}xmlHttpRequestHandler.prototype.init=function(){this.responseText=null;this.responseXML=null;this.responseBody=null;this.statusText=null;this.XmlHttpRequestObject=null;this.browserType="unknown";this.callback=null;this.data=null;this.method="GET";this.URL="";this.asynch=true;this.username=null;this.password=null;this.opened=false;this.processHandler=null;this.callback_data=new Array();this.inputHandler=null;if(this.props!=null){this.override()}};xmlHttpRequestHandler.prototype.override=function(){if(this.props==null){return}if(typeof this.props.METHOD!="undefined"){this.method=this.props.METHOD}if(typeof this.props.URL!="undefined"){this.URL=this.props.URL}if(typeof this.props.ASYNCH!="undefined"){this.asynch=this.props.ASYNCH}if(typeof this.props.USERNAME!="undefined"){this.username=this.props.USERNAME}if(typeof this.props.PASSWORD!="undefined"){this.password=this.props.PASSWORD}};xmlHttpRequestHandler.prototype.setMethod=function(a){this.method=a};xmlHttpRequestHandler.prototype.setURL=function(a){this.URL=a};xmlHttpRequestHandler.prototype.setType=function(a){this.asynch=a};xmlHttpRequestHandler.prototype.setUser=function(a,b){this.username=a;this.password=b};xmlHttpRequestHandler.prototype.setData=function(a){this.data=a};xmlHttpRequestHandler.prototype.setCallBackData=function(a,b){this.callback_data[a]=b};xmlHttpRequestHandler.prototype.create=function(){if(this.XmlHttpRequestObject!=null){return}if(typeof XMLHttpRequest!="undefined"){this.XmlHttpRequestObject=new XMLHttpRequest();this.browserType="Mozilla/IE7"}else{if(window.ActiveXObject){var a=["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"];for(i=0;i<a.length;i++){try{this.XmlHttpRequestObject=new ActiveXObject(a[i]);this.browserType="IE/"+a[i];break}catch(b){}}}}};xmlHttpRequestHandler.prototype.open=function(){this.create();if(typeof(netscape)!="undefined"){}try{if(this.username==null){this.XmlHttpRequestObject.open(this.method,this.URL,this.asynch)}else{this.XmlHttpRequestObject.open(this.method,this.URL,this.asynch,this.username,this.password)}this.opened=true}catch(a){alert("HTTP Request doesn't open:\n\n "+a)}};xmlHttpRequestHandler.prototype.send=function(a){this.open();var b=this;var c=new Object();c.processRequest=function(){if(b.XmlHttpRequestObject.readyState==4){if(b.XmlHttpRequestObject.status==200){b.responseText=b.XmlHttpRequestObject.responseText;b.responseXML=b.XmlHttpRequestObject.responseXML;b.statusText=b.XmlHttpRequestObject.statusText;if(typeof b.XmlHttpRequestObject.responseBody!="undefined"){b.responseBody=b.XmlHttpRequestObject.responseBody}if(b.callback==null){return}b.callback(b)}}};if(typeof a!="undefined"){this.callback=a}if(this.method=="POST"){this.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}try{this.XmlHttpRequestObject.onreadystatechange=c.processRequest;this.XmlHttpRequestObject.send(this.data)}catch(d){}};xmlHttpRequestHandler.prototype.setRequestHeader=function(c,a){try{this.XmlHttpRequestObject.setRequestHeader(c,a)}catch(b){}};xmlHttpRequestHandler.prototype.getAllResponseHeaders=function(){try{return this.XmlHttpRequestObject.getAllResponseHeaders()}catch(a){return null}};xmlHttpRequestHandler.prototype.getResponseHeader=function(b){try{return this.XmlHttpRequestObject.getResponseHeader(b)}catch(a){return null}};function InputHandler(a){this.input=a;this.name=a.name;this.value=a.vaue;this.className=a.className};
