function Jax() {var loadingTimeout=400;var iframe;this.loadingFunction=function() {};this.doneLoadingFunction=function() {};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<arg.length;(i= _proxy_jslib_assign_rval('++', 'i', '', '', i))){v=this.stringify( _proxy_jslib_handle(arg, (i), 0, 0));if(o&&(v!==u)){o+=',';}
if(v!==u){o+=v;}}
return'['+o+']';}else if(typeof  _proxy_jslib_handle(arg, 'toString', '', 0, 0)!='undefined'){o='';for(i in arg){v=this.stringify( _proxy_jslib_handle(arg, (i), 0, 0));if(v!==u){if(o){o+=',';}
o+=this.stringify(i)+':'+v;}}
return'{'+o+'}';}else{return;}}
return'';case'unknown':case'undefined':case'function':return u;case'string':l=arg.length;o='"';for(i=0;i<l;i+=1){c=arg.charAt(i);if(c>=' '){if(c=='\\'||c=='"'){o+='\\';}
o+=c;}else{switch(c){case'\b':o+='\\b';break;case'\f':o+='\\f';break;case'\n':o+='\\n';break;case'\r':o+='\\r';break;case'\t':o+='\\t';break;default:c=c.charCodeAt();o+='\\u00';o+= _proxy_jslib_handle(Math.floor(c/16), 'toString', '', 1, 0)(16);o+= _proxy_jslib_handle((c%16), 'toString', '', 1, 0)(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;i<msxmlhttp.length;i++){try{http_request=new (ActiveXObject)( _proxy_jslib_handle(msxmlhttp, (i), 0, 0));}catch(e){http_request=null;}}}
if(!http_request){alert('Unfortunatelly you browser doesn\'t support this feature.');return false;}
return http_request;}
this.$=function(sId) {if(!sId){return null;}
var returnObj= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(sId);if(!returnObj&&document.all){returnObj= _proxy_jslib_handle(document.all, (sId), 0, 0);}
return returnObj;}
this.addEvent=function(obj,type,fn) {if(obj.attachEvent){ _proxy_jslib_assign('', obj, ('e'+type+fn), '=', (fn)); _proxy_jslib_assign('', obj, (type+fn), '=', (function() { _proxy_jslib_handle(obj, ('e'+type+fn), 1, 0)(window.event);}))

obj.attachEvent('on'+type, _proxy_jslib_handle(obj, (type+fn), 0, 0));}else{obj.addEventListener(type,fn,false);}}
this.removeEvent=function(obj,type,fn) {if(obj.detachEvent){obj.detachEvent('on'+type, _proxy_jslib_handle(obj, (type+fn), 0, 0)); _proxy_jslib_assign('', obj, (type+fn), '=', (null));}else{obj.removeEventListener(type,fn,false);}}
this.submitITask=function(comName,func,postData,responseFunc) {var xmlReq=this.buildXmlReq(comName,func,postData,responseFunc,true);this.loadingFunction();if(!this.iframe){this.iframe=document.createElement('iframe'); _proxy_jslib_handle(this.iframe, 'setAttribute', '', 1, 0)("id",'ajaxIframe'); _proxy_jslib_handle(this.iframe, 'setAttribute', '', 1, 0)("height",0); _proxy_jslib_handle(this.iframe, 'setAttribute', '', 1, 0)("width",0); _proxy_jslib_handle(this.iframe, 'setAttribute', '', 1, 0)("border",0);this.iframe.style.visibility='hidden'; _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(this.iframe); _proxy_jslib_assign('', this.iframe, 'src', '=', (xmlReq));}else{ _proxy_jslib_assign('', this.iframe, 'src', '=', (xmlReq));}}
this.extractIFrameBody=function(iFrameEl) {var doc=null;if(iFrameEl.contentDocument){doc=iFrameEl.contentDocument;}else if(iFrameEl.contentWindow){doc=iFrameEl.contentWindow.document;}else if(iFrameEl.document){doc=iFrameEl.document;}else{alert("Error: could not find sumiFrame document");return null;}
return  _proxy_jslib_handle(doc, 'body', '', 0, 0);}
this.buildXmlReq=function(comName,func,postData,responseFunc,iframe) {var xmlReq='';if(iframe){xmlReq+='?';}
else{xmlReq+='&';}
xmlReq+='option='+comName;xmlReq+='&no_html=1';xmlReq+='&task=azrul_ajax';xmlReq+='&func='+func;if(postData){xmlReq+="&"+postData;}
return xmlReq;}
this.submitTask=function(comName,func,postData,responseFunc) {var xmlhttp=this.getRequestObject();var targetUrl=jax_live_site; _proxy_jslib_handle(xmlhttp, 'open', '', 1, 0)('POST',targetUrl,true);xmlhttp.onreadystatechange=function() {if(xmlhttp.readyState==4){if(xmlhttp.status==200){jax.doneLoadingFunction();jax.processResponse(xmlhttp.responseText);}else{}}}
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=( _proxy_jslib_handle(this.extractIFrameBody(this.iframe), 'innerHTML', '', 0, 0));resp= _proxy_jslib_handle(resp, 'replace', '', 1, 0)(/&lt;/g,"<");resp= _proxy_jslib_handle(resp, 'replace', '', 1, 0)(/&gt;/g,">");resp= _proxy_jslib_handle(resp, 'replace', '', 1, 0)(/&amp;/g,"&");resp= _proxy_jslib_handle(resp, 'replace', '', 1, 0)(/&quot;/g,'"');resp= _proxy_jslib_handle(resp, 'replace', '', 1, 0)(/&#39;/g,"'");this.processResponse(resp);}
this.processResponse=function(responseTxt) {var result=eval(_proxy_jslib_proxify_js((responseTxt), 0, 0) );for(var i=0;i<result.length;i++){var cmd= _proxy_jslib_handle(result, (i), 0, 0)[0];var id= _proxy_jslib_handle(result, (i), 0, 0)[1];var property= _proxy_jslib_handle(result, (i), 0, 0)[2];var data= _proxy_jslib_handle(result, (i), 0, 0)[3];var objElement=this.$(id);switch(cmd){case'as':if(objElement){eval(_proxy_jslib_proxify_js(("objElement."+property+"=  data \; "), 0, 0) );}
break;case'al':if(data){alert(data);}
break;case'ce':this.create(id,property,data);break;case'rm':this.remove(id);break;case'cs':var scr=id+'(';if(this.isArray(data)){scr+='(data[0])';for(var l=1;l<data.length;l++){scr+=',(data['+l+'])';}}else{scr+='(data)';}
scr+=');';eval(_proxy_jslib_proxify_js((scr), 0, 0) );break;default:alert("Unknow command: "+cmd);}}
(responseTxt= _proxy_jslib_assign_rval('delete', 'responseTxt', '', '', responseTxt));}
this.isArray=function(obj) {if(obj){return obj.constructor==Array;}
return false;}
this.buildCall=function(comName,sFunction) {}
this.icall=function(comName,sFunction) {var arg="";if(arguments.length>2){for(var i=2;i<arguments.length;i++){var a= _proxy_jslib_handle(arguments, (i), 0, 0);if(this.isArray(a)){arg+="arg"+i+"="+this.stringify(a)+"&";}else if(typeof a=="string"){var t=new (Array)('_d_',encodeURIComponent(a));arg+="arg"+i+"="+this.stringify(t)+"&";}else{var t=new (Array)('_d_',encodeURIComponent(a));arg+="arg"+i+"="+this.stringify(t)+"&";}}}
this.submitITask(comName,sFunction,arg);}
this.call=function(comName,sFunction) {var arg="";if(arguments.length>2){for(var i=2;i<arguments.length;i++){var a= _proxy_jslib_handle(arguments, (i), 0, 0);if(this.isArray(a)){arg+="arg"+i+"="+this.stringify(a)+"&";}else if(typeof a=="string"){a= _proxy_jslib_handle(a, 'replace', '', 1, 0)(/"/g,"&quot;");var t=new (Array)('_d_',encodeURIComponent(a));arg+="arg"+i+"="+this.stringify(t)+"&";}else{var t=new (Array)('_d_',encodeURIComponent(a));arg+="arg"+i+"="+this.stringify(t)+"&";}}}
this.submitTask(comName,sFunction,arg);}
this.create=function(sParentId,sTag,sId) {var objParent=this.$(sParentId);objElement=document.createElement(sTag); _proxy_jslib_handle(objElement, 'setAttribute', '', 1, 0)('id',sId);if(objParent){objParent.appendChild(objElement);}}
this.remove=function(sId) {objElement=this.$(sId);if(objElement&&objElement.parentNode&&objElement.parentNode.removeChild)
{objElement.parentNode.removeChild(objElement);}}
this.getFormValues=function(frm) {var objForm;objForm=this.$(frm);var postData=new (Array)();if(objForm&&objForm.tagName=='FORM'){var formElements=objForm.elements;for(var i=0;i<formElements.length;i++){if(! _proxy_jslib_handle(formElements, (i), 0, 0).name){continue;}
if( _proxy_jslib_handle(formElements, (i), 0, 0).type&&( _proxy_jslib_handle(formElements, (i), 0, 0).type=='radio'|| _proxy_jslib_handle(formElements, (i), 0, 0).type=='checkbox')&& _proxy_jslib_handle(formElements, (i), 0, 0).checked==false){continue;}
var name= _proxy_jslib_handle(formElements, (i), 0, 0).name;if(name){if( _proxy_jslib_handle(formElements, (i), 0, 0).type=='select-multiple'){ _proxy_jslib_assign('', postData, (i), '=', (new (Array)()));for(var j=0;j< _proxy_jslib_handle(formElements, (i), 0, 0).length;j++){if( _proxy_jslib_handle( _proxy_jslib_handle(formElements, (i), 0, 0).options, (j), 0, 0).selected===true){var value= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(formElements, (i), 0, 0).options, (j), 0, 0), 'value', '', 0, 0); _proxy_jslib_assign('',  _proxy_jslib_handle(postData, (i), 0, 0), (j), '=', (new (Array)(name,encodeURIComponent( _proxy_jslib_handle(null, 'value', value, 0, 0)))));}}}else{var value= _proxy_jslib_handle( _proxy_jslib_handle(formElements, (i), 0, 0), 'value', '', 0, 0); _proxy_jslib_assign('', postData, (i), '=', (new (Array)(name,encodeURIComponent( _proxy_jslib_handle(null, 'value', value, 0, 0)))));}}}}
return postData;}}
function jax_iresponse() {jax.processIResponse();}
var jax=new (Jax)(); ;
_proxy_jslib_flush_write_buffers() ;