var DHTMLSuite=new Object();DHTMLSuite.formUtil=function(){};DHTMLSuite.getEl=function(A){if(typeof A=="string"){if(document.getElementById(A)){return document.getElementById(A);}if(document.forms[A]){return document.forms[A];}if(document[A]){return document[A];}if(window[A]){return window[A];}}return A;};DHTMLSuite.formUtil.prototype={getFamily:function(C,E){var B=E.elements;var A=new Array();for(var D=0;D1){B[E[J].name]=new Array();for(var A=0;A';this.formRef.method=this.method;this.formRef.action=this.action;this.formRef.target=this.iframeName;if(!this.formRef.enctype){this.formRef.enctype="multipart/form-data";}},getUniqueId:function(){var B=Math.random()+"";B=B.replace(".","");var A=Math.random()+"";A=A.replace(".","");return B+A;},__getIframeResponse:function(){if(this.responseEl){if(this.responseFile){if(!this.responseEl.id){this.responseEl.id="DHTMLSuite_formResponse"+DHTMLSuite.getUniqueId();}var A=new DHTMLSuite.dynamicContent();A.loadContent(this.responseEl.id,this.responseFile);}else{this.responseEl.innerHTML=self.frames[this.iframeName].document.body.innerHTML;this.__evaluateJs(this.responseEl);this.__evaluateCss(this.responseEl);}}this.coverDiv.style.display="none";this.__handleCallback("onComplete");},__positionCoverDiv:function(){if(!this.responseEl){return ;}try{var A=this.coverDiv.style;A.left=this.getLeftPos(this.responseEl)+"px";A.top=this.getTopPos(this.responseEl)+"px";A.width=this.responseEl.offsetWidth+"px";A.height=this.responseEl.offsetHeight+"px";A.display="block";}catch(B){}},__createCoverDiv:function(){if(this.coverDiv){return ;}this.coverDiv=document.createElement("DIV");var C=this.coverDiv;C.style.overflow="hidden";C.style.zIndex=1000;C.style.position="absolute";document.body.appendChild(C);var B=document.createElement("DIV");B.style.width="105%";B.style.height="105%";B.className="DHTMLSuite_formCoverDiv";B.style.opacity="0.2";B.style.filter="alpha(opacity=20)";C.appendChild(B);var A=document.createElement("DIV");A.className="DHTMLSuite_formCoverDiv_ajaxLoader";C.appendChild(A);},__createSackObject:function(A){var B=this.objectIndex;this.sackObj[A]=new sack();this.sackObj[A].requestFile=this.action;this.sackObj[A].method=this.method;this.sackObj[A].onCompletion=function(){DHTMLSuite.variableStorage.arrayDSObjects[B].__getResponse(A);};},__getResponse:function(B){if(this.responseEl){if(this.responseFile){if(!this.responseEl.id){this.responseEl.id="DHTMLSuite_formResponse"+DHTMLSuite.getUniqueId();}var A=new DHTMLSuite.dynamicContent();A.loadContent(this.responseEl.id,this.responseFile);}else{this.responseEl.innerHTML=this.sackObj[B].response;this.__evaluateJs(this.responseEl);this.__evaluateCss(this.responseEl);}}this.coverDiv.style.display="none";this.sackObj[B]=null;this.__handleCallback("onComplete");},isArray:function(A){if(A.constructor.toString().indexOf("Array")!=-1){return true;}return false;},__populateSack:function(C){var B=this.formUtil.getValuesAsArray(this.formRef);for(var E in B){if(this.isArray(B[E])){for(var D=0;D=0){A=E.replace("[","["+D);}this.sackObj[C].setVar(A,B[E][D]);}}else{this.sackObj[C].setVar(E,B[E]);}}},__setInitProperties:function(A){if(A.formRef){this.formRef=DHTMLSuite.getEl(A.formRef);}if(A.method){this.method=A.method;}if(A.responseEl){this.responseEl=DHTMLSuite.getEl(A.responseEl);}if(A.action){this.action=A.action;}if(A.responseFile){this.responseFile=A.responseFile;}if(A.callbackOnComplete){this.callbackOnComplete=A.callbackOnComplete;}if(!this.action){this.action=this.formRef.action;}if(!this.method){this.method=this.formRef.method;}},__handleCallback:function(action){var callbackString="";switch(action){case"onComplete":callbackString=this.callbackOnComplete;break;}if(callbackString){if(callbackString.indexOf("(")==-1){callbackString=callbackString+'("'+this.formRef.name+'")';}eval(callbackString);}},__evaluateJs:function(F){F=DHTMLSuite.getEl(F);var E=F.getElementsByTagName("SCRIPT");var B="";var D="";for(var G=0;G