function AJAX(){var E=true;var J="GET";var K="XML";var D="";var T="";var Q=false;var P=false;var U=null;var H=0;var C=false;var M=function(){if(typeof arguments[0]=="boolean"){E=arguments[0]}};var G=function(){if(arguments[0].toUpperCase()=="TEXT"||arguments[0].toUpperCase()=="XML"){K=arguments[0].toUpperCase()}};var B=function(){if(arguments[0].toUpperCase()=="GET"||arguments[0].toUpperCase()=="POST"){J=arguments[0].toUpperCase()}};var I=function(){if(typeof arguments[0]=="string"){D=arguments[0]}};var O=function(){if(typeof arguments[0]=="boolean"){Q=arguments[0]}};var S=function(){if(typeof arguments[0]=="string"){T=arguments[0]}};var N=function(){if(typeof arguments[0]=="function"){U=arguments[0]}};var L=function(W,V){if(H>V){alert(W)}};var A=function(){var X=false;var V=false;if(Q==false){L("Using new XmlHttp object",0);V=true}else{L("Using shared object",0);V=true}if(V){try{C=new ActiveXObject("Msxml2.XMLHTTP")}catch(Y){try{C=new ActiveXObject("Microsoft.XMLHTTP")}catch(W){C=null}}if(!C&&typeof XMLHttpRequest!="undefined"){C=new XMLHttpRequest()}if(C==null||typeof C=="undefined"){L("[AJAX Error]\nCouldn't create XMLHttp object",1)}else{X=true}return X}};this.call_ajax=function(){var V="";var W=A();if(W){if(T!=""&&J=="GET"){V=D+"?"+T}else{V=D}C.open(J,V,E);if(J=="POST"){try{C.setRequestHeader("Content-Type","application/x-www-form-urlencoded");C.setRequestHeader("Content-length",T.length);C.setRequestHeader("Connection","close")}catch(X){L("[AJAX Error]\n POST failed due to incompatible browser. Use GET instead.",1)}}C.onreadystatechange=R;if(J=="GET"){C.send(null)}else{C.send(T)}if(E==false){R()}}else{U(null)}};var R=function(){var V=null;if(C.readyState==4){if(C.status==200){switch(K.toUpperCase()){case"TEXT":V=C.responseText;break;case"XML":V=C.responseXML;break;case"OBJECT":V=C.responseXML;V=F(V);break;default:L("[AJAX ERROR]\n Invalid Response Type '"+K+"'",1)}}}if(V!=null&&typeof U=="function"){U(V)}};function F(){var V=arguments[0]}this.init=function(W,X,V,Y,Z,a){M(W);B(X);G(V);I(Y);S(Z);N(a);P=true;this.call_ajax()};this.getConfigDetail=function(){alert("Configuration Details:\n-----------------------------------------\n\nAsynchronous:\t\t"+E+"\nRequest Mode:\t\t"+J+"\nResponse Type:\t\t"+K+"\nURL:\t\t\t"+D+"\nParameters:\t\t"+T+"\nCallback Func:\t\t"+U)}};