function AjaxObj(){this.call=function(c,u,b,o,l,f,a){var r='';var m='POST';var xmlHttp=false;if(b)m='GET';if(window.XMLHttpRequest)xmlHttp=new XMLHttpRequest();else if(window.ActiveXObject){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){};};};if(!xmlHttp)return false;if(c){xmlHttp.onreadystatechange=function () {if(xmlHttp.readyState==4) {if(xmlHttp.status==200) {r=xmlHttp.responseText;if(o){try{o.innerHTML=r;}catch(e){o.value=r};}else if(typeof l !='undefined'){if(JSON.parse(r))eval(f+"(JSON.parse(r));");else eval(f+"(r);");};}else{if(xmlHttp.status!=0) {console.error('There was a problem with the request.');};};};};xmlHttp.open(m,u,true);if(b){xmlHttp.send(null);}else {xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",a.length+1);xmlHttp.send(a);};return xmlHttp;}else{xmlHttp.open(m,u,false);if(b){xmlHttp.send(null);}else{xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",a.length+1);xmlHttp.send(a);};r=xmlHttp.responseText;return JSON.parse(r)?JSON.parse(r):eval(r);};};};function Ajax(){this.aj=new Array();this.sj=new AjaxObj();this.call=function () {var r=false;var m='POST';var h=document.location;var u=h.protocol+'//'+h.host+h.pathname;var f=arguments[0];if(!f)return false;var v=new Array();var o=document.getElementById(f);var l=eval('window.'+f);var c=(o||l)?true:false;var b=f.indexOf('p')==0?false:true;var a="ajax=call&f="+encodeURIComponent(f);for(var i=1;i < arguments.length;i++){a+="&ajx"+i+"="+encodeURIComponent(arguments[i]);v.push(arguments[i]);};if(b){m='GET';u=u+'?'+a;};if(c){if(typeof this.aj[f]=='undefined'){this.aj[f]=new AjaxObj();};r=this.aj[f].call(c,u,b,o,l,f,a);}else{r=this.sj.call(c,u,b,o,l,f,a);};return r;};};var ajax=new Ajax();