AW.XML.SUObjectTable=AW.XML.Table.subclass();AW.XML.SUObjectTable.create=function(){var glt=this.prototype;var lst=this.superclass.prototype;glt.init=function(bnt,nrdb,mpbb){lst.init.call(this);this.setURL(thbb+bnt+mrw()+((nrdb>0)?"&ID="+nrdb:""));this.initTable(mpbb);};glt.initTable=function(mpbb){this.setRequestHeader("User-Agent","Serv-U");if(mpbb)this.setColumns(mpbb);else this.setColumns(["@name","@val","@inherited","@type"]);};glt.GetCollectionByAttrib=function(vqfb,dqg,qbcb){var wwmb="//"+vqfb+"[@"+dqg+"='"+qbcb+"']";return(this.GetCollection(wwmb));};glt.GetCollection=function(wwmb){var ttmb;var bqd=this.getXML();if(bqd){if(AW.ie)ttmb=bqd.selectNodes(wwmb);else ttmb=this.SelectNodesFF(bqd,wwmb);}return(ttmb);};glt.SelectNodesFF=function(yqs,wwmb){var ttmb=new Array();var bqd=this.getXML();var tcqb=bqd.createNSResolver(bqd.documentElement);var hwt=bqd.evaluate(wwmb,yqs,tcqb,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var lqz=0;lqz<hwt.snapshotLength;lqz++)ttmb[lqz]=hwt.snapshotItem(lqz);return(ttmb);};glt.GetNodeValue=function(yqs,dqg){var wwmb="./@"+dqg,qbcb="";if(AW.ie){var bjsb=yqs.selectSingleNode(wwmb);if(bjsb)qbcb=bjsb.text;else qbcb=undefined;}else{var ttmb=this.SelectNodesFF(yqs,wwmb);if(ttmb.length)qbcb=ttmb[0].textContent;else qbcb=undefined;}return(qbcb);};glt.FillForm=function(Form,pvx,xgm,rxt){if(Form!=undefined){if(rxt!=true)ycw(true);Form.reset();this.setAsync(true);this.request();glt.fnResponse=this.response;this.response=function(shv){this.fnResponse(shv);for(var kqdb=0;(kqdb<Form.length);kqdb++){var Element=Form.elements[kqdb];if(Element!=undefined){var ttmb=this.GetCollectionByAttrib("var","name",this.FormatElementName(Element.name,true));if((ttmb!=undefined)&&(ttmb.length>0)){var qbcb=this.GetNodeValue(ttmb[0],"val");var pth=this.GetNodeValue(ttmb[0],"defaultval");var pbm=this.GetNodeValue(ttmb[0],"default");var ytr=this.GetNodeValue(ttmb[0],"type");if(qbcb!=undefined){if(pth!=undefined)Element.defaultValue=ddg(pth);if((ytr=="3")&&(pbm=="1"))Element.value="";else Element.value=ddg(qbcb);if(Element.onchange!=undefined)Element.onchange();}}}}if(pvx!=undefined)dzkb(lxq,pvx,this.m_fnDialogDismissal);if(xgm!=undefined){setTimeout(function(){xgm.getContent("box/text").element().focus();});}if(this.m_fnOnFillForm!=undefined)this.m_fnOnFillForm(this.m_OnFillFormObj,this);this.response=this.fnResponse;};}};glt.SubmitForm=function(Form,pvx,dbw,cwx,dcwb){if(Form!=undefined){var jppb=((pvx!=undefined)&&(pvx.length!=0));if(jppb||cwx)ynrb(true);this.setRequestMethod("POST");for(var kqdb=0;(kqdb<Form.length);kqdb++){var Element=Form.elements[kqdb];if(Element!=undefined){this.setParameter(this.FormatElementName(Element.name),Element.value);}}this.request();if(jppb||cwx){this.response=function(bqd){var fjnb=parseInt(bqd.getElementsByTagName("result")[0].childNodes[0].nodeValue);var dxn=bqd.getElementsByTagName("ResultText")[0].childNodes[0].nodeValue;ynrb(false);if(fjnb!=chrb){sppb(tvd(0,"",dxn),true);if(dcwb!=undefined){var knqb="";if(bqd.getElementsByTagName("ObjectID")[0].childNodes[0]!=undefined)knqb=parseInt(bqd.getElementsByTagName("ObjectID")[0].childNodes[0].nodeValue);dcwb(knqb);}}else{if(pvx!=undefined)yvlb(pvx);if(dbw!=undefined){var knqb=parseInt(bqd.getElementsByTagName("ObjectID")[0].childNodes[0].nodeValue);dbw(knqb);}}};}}};glt.FormatElementName=function(dqg,nvx){var vzc=dqg;if(nvx){if((vzc!=undefined)&&(vzc.lastIndexOf('_')>=0))vzc=dqg.substr(dqg.lastIndexOf('_')+1);}else{if((vzc!=undefined)&&(vzc.indexOf('_')>=0))vzc=dqg.substr(dqg.indexOf('_')+1);}return(vzc);};};