AW.XML.SUObjectTable=AW.XML.Table.subclass();AW.XML.SUObjectTable.create=function(){var bsb=this.prototype;var nkq=this.superclass.prototype;bsb.init=function(mpq,wjb,cmpb){nkq.init.call(this);this.setURL(ykkb+mpq+jhtb()+((wjb>0)?"&ID="+wjb:""));this.initTable(cmpb);};bsb.initTable=function(cmpb){this.setRequestHeader("User-Agent","Serv-U");if(cmpb)this.setColumns(cmpb);else this.setColumns(["@name","@val","@inherited","@type"]);};bsb.GetCollectionByAttrib=function(pts,flq,mtn){var myfb="//"+pts+"[@"+flq+"='"+mtn+"']";return(this.GetCollection(myfb));};bsb.GetCollection=function(myfb){var wvz;var htv=this.getXML();if(htv){if(AW.ie)wvz=htv.selectNodes(myfb);else wvz=this.SelectNodesFF(htv,myfb);}return(wvz);};bsb.SelectNodesFF=function(tjs,myfb){var wvz=new Array();var htv=this.getXML();var fwcb=htv.createNSResolver(htv.documentElement);var wn=htv.evaluate(myfb,tjs,fwcb,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var blr=0;blr<wn.snapshotLength;blr++)wvz[blr]=wn.snapshotItem(blr);return(wvz);};bsb.GetNodeValue=function(tjs,flq){var myfb="./@"+flq,mtn="";if(AW.ie){var kjrb=tjs.selectSingleNode(myfb);if(kjrb)mtn=kjrb.text;else mtn=undefined;}else{var wvz=this.SelectNodesFF(tjs,myfb);if(wvz.length)mtn=wvz[0].textContent;else mtn=undefined;}return(mtn);};bsb.FillForm=function(Form,qvlb,lfdb,cxh){if(Form!=undefined){if(cxh!=true)hprb(true);Form.reset();this.setAsync(true);this.request();bsb.fnResponse=this.response;this.response=function(ljm){this.fnResponse(ljm);for(var kzqb=0;(kzqb<Form.length);kzqb++){var Element=Form.elements[kzqb];if(Element!=undefined){var wvz=this.GetCollectionByAttrib("var","name",this.FormatElementName(Element.name,true));if((wvz!=undefined)&&(wvz.length>0)){var mtn=this.GetNodeValue(wvz[0],"val");var kzrb=this.GetNodeValue(wvz[0],"defaultval");var vwz=this.GetNodeValue(wvz[0],"default");var gthb=this.GetNodeValue(wvz[0],"type");if(mtn!=undefined){if(kzrb!=undefined)Element.defaultValue=fgpb(kzrb);if((gthb=="3")&&(vwz=="1"))Element.value="";else Element.value=fgpb(mtn);if(Element.onchange!=undefined)Element.onchange();}}}}if(qvlb!=undefined)slv(qzfb,qvlb,this.m_fnDialogDismissal);if(lfdb!=undefined){setTimeout(function(){lfdb.getContent("box/text").element().focus();});}if(this.m_fnOnFillForm!=undefined)this.m_fnOnFillForm(this.m_OnFillFormObj,this);this.response=this.fnResponse;};}};bsb.SubmitForm=function(Form,qvlb,jmw,rrhb,zhj){if(Form!=undefined){var bph=((qvlb!=undefined)&&(qvlb.length!=0));if(bph||rrhb)bxgb(true);this.setRequestMethod("POST");for(var kzqb=0;(kzqb<Form.length);kzqb++){var Element=Form.elements[kzqb];if(Element!=undefined){this.setParameter(this.FormatElementName(Element.name),Element.value);}}this.request();if(bph||rrhb){this.response=function(htv){var sjr=parseInt(htv.getElementsByTagName("result")[0].childNodes[0].nodeValue);var zgy=htv.getElementsByTagName("ResultText")[0].childNodes[0].nodeValue;bxgb(false);if(sjr!=xfx){jdr(tlgb(0,"",zgy));if(zhj!=undefined){var hhlb="";if(htv.getElementsByTagName("ObjectID")[0].childNodes[0]!=undefined)hhlb=parseInt(htv.getElementsByTagName("ObjectID")[0].childNodes[0].nodeValue);zhj(hhlb);}}else{if(qvlb!=undefined)xrq(qvlb);if(jmw!=undefined){var hhlb=parseInt(htv.getElementsByTagName("ObjectID")[0].childNodes[0].nodeValue);jmw(hhlb);}}};}}};bsb.FormatElementName=function(flq,cys){var blw=flq;if(cys){if((blw!=undefined)&&(blw.lastIndexOf('_')>=0))blw=flq.substr(flq.lastIndexOf('_')+1);}else{if((blw!=undefined)&&(blw.indexOf('_')>=0))blw=flq.substr(flq.indexOf('_')+1);}return(blw);};};