function Jax(){var loadingTimeout=400;var iframe;this.loadingFunction=function(){};this.doneLoadingFunction=function(){};this.cacheData=new Array;this.stringify=function(arg){var c,i,l,o,u,v;switch(typeof arg){case"object":if(arg){if(arg.constructor==Array){o="";for(i=0;i=" "){if(c=="\\"||c=='"'){o+="\\"}o+=c}else{switch(c){case'"':o+='\\"';break;case"\b":o+="\\b";break;case"\f":o+="\\f";break;case"\n":o+="\\n";break;case"\r":o+="\\r";break;case" ":o+="\\t";break;default:c=c.charCodeAt();o+="\\u00";o+=Math.floor(c/16).toString(16);o+=(c%16).toString(16)}}}return o+'"';default:return String(arg)}};this.getRequestObject=function(){if(window.XMLHttpRequest){http_request=new XMLHttpRequest}else if(window.ActiveXObject){var msxmlhttp=new Array("Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP");for(var i=0;i0){text=text.substr(responseLength-lastResponseLength);responseLength=xmlhttp.responseText.length;if(lastResponse!=text){jax.processResponse(text)}lastResponse=text}}else{lastResponseLength=0}if(xmlhttp.cachekey){jax.cacheData[xmlhttp.cachekey]=text}}else{}}else if(xmlhttp.readyState==3){if(xmlhttp.status==200){var text=xmlhttp.responseText;var validresponse=true;try{if(text!==undefined&&text!==null){if(text.length>0){text=text.substr(responseLength,text.length-responseLength);eval(text);responseLength=xmlhttp.responseText.length;lastResponseLength=text.length;if(lastResponse!=text){jax.processResponse(text)}lastResponse=text}}}catch(e){}}}};var id=1;var xmlReq=this.buildXmlReq(comName,func,postData,responseFunc);this.loadingFunction();xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.send(xmlReq)};this.processIResponse=function(){jax.doneLoadingFunction();var resp=this.extractIFrameBody(this.iframe).innerHTML;resp=resp.replace(/</g,"<");resp=resp.replace(/>/g,">");resp=resp.replace(/&/g,"&");resp=resp.replace(/"/g,'"');resp=resp.replace(/'/g,"'");this.processResponse(resp)};this.BetterInnerHTML=function(o,p,q){function r(a){var b;if(typeof DOMParser!="undefined")b=(new DOMParser).parseFromString(a,"application/xml");else{var c=["MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];for(var i=0;i1){if(c.nodeType==1){var e=document.createElement(c.nodeName);var f={};for(var a=0,g=c.attributes.length;a")!=n.length-3)b.appendChild(document.createTextNode(m))}}for(var i=0,j=c.childNodes.length;i"+p+"";var u=r(p);if(o&&u){if(q!=false)while(o.lastChild)o.removeChild(o.lastChild);t(o,u.documentElement)}};this.processResponse=function(responseTxt){var result=eval(responseTxt);for(var i=0;i2){for(var i=2;i1){for(i=0;i2){for(var i=2;i0){for(var i=0;i0){for(var i=0;i1){var curLen=postData.length;postData[curLen]=new Array;for(var j=0;j0){for(var i=0;i1){var tmpIdx=0;var curLen=postData.length;postData[curLen]=new Array;for(var j=0;j