/*

Proprietary and confidential. 
Use, modification, and distribution subject to written license. 
Copyright (c) 2001-2006, TIBCO Software Inc.

*/
Array.prototype.indexOf=function(gHB){for(var FLL=0;FLL<this.length;FLL++){if(this[FLL]==gHB)return FLL;}return -1;};Array.prototype.contains=function(qzB){return this.indexOf(qzB)>=0;};Array.prototype.remove=function(LrB){var MnP=this.indexOf(LrB);if(MnP>=0)return this.splice(MnP,1)[0];return null;};Array.prototype.clone=function(){return this.concat();};Array.prototype.pushAll=function(zHK){if(zHK instanceof Array&&zHK.length>0){for(var KfL=0;KfL<zHK.length;KfL++)this.push(zHK[KfL]);}};Array.prototype.contentsEqual=function(bwK){if(this.length!=bwK.length)return false;for(var lJK=0;lJK<length;lJK++){if(this[lJK]!=bwK[lJK])return false;}return true;};Array.prototype.filter=function(Njz){var kbG=[];for(var FFJ=0;FFJ<this.length;FFJ++){if(Njz(this[FFJ]))kbG.push(this[FFJ]);}return kbG;};Array.prototype.map=function(GhH,rCJ,jCD){var bhD=null;if(rCJ){if(jCD){bhD={};for(var hMH=0;hMH<this.length;hMH++){var qmz=GhH(this[hMH]);for(var FxG=0;FxG<qmz.length;FxG=FxG+2)bhD[qmz[hMH]]=qmz[hMH+1];}}else{bhD=[];for(var hMH=0;hMH<this.length;hMH++){var dNh=GhH(this[hMH]);if(dNh instanceof Array)bhD.pushAll(dNh);else bhD.push(dNh);}}}else{if(jCD){bhD={};for(var hMH=0;hMH<this.length;hMH++){var CCh=GhH(this[hMH]);bhD[CCh[0]]=CCh[1];}}else{bhD=new Array(this.length);for(var hMH=0;hMH<this.length;hMH++)bhD[hMH]=GhH(this[hMH]);}}return bhD;};Math.modpos=function(PCD,tkJ){return PCD<0?PCD%tkJ+tkJ:PCD%tkJ;};Math.isNaN=function(pxz){return pxz==null||isNaN(pxz);};Number.prototype.roundTo=function(lfs){return Math.round(this/lfs)*lfs;};Number.prototype.zeroPad=function(ftv){var GJB=""+this;while(GJB.length<ftv)GJB="0"+GJB;return GJB;};Date.prototype.getLastDateOfMonth=function(){var mbp=this.getMonth();if(Date._LAST_DATE_ARRAY[mbp]!=null){return Date._LAST_DATE_ARRAY[mbp];}else{for(var rNt=28;rNt<=31;rNt++){var hqC=new Date(this.getFullYear(),mbp,rNt+1);if(mbp<hqC.getMonth())return rNt;}throw {description:"error in Date.getLastDateOfMonth for date "+this};}};Date.prototype.equals=function(lsv){return lsv!=null&&lsv instanceof Date&&lsv.valueOf()==this.valueOf();};Date.prototype.compareTo=function(dJt){var PDt=this.valueOf();var tdt=dJt.valueOf();return PDt==tdt?0:PDt>tdt?1:-1;};Date._LAST_DATE_ARRAY=[31,null,31,30,31,30,31,31,30,31,30,31];String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");};String.prototype.doReplace=function(bNM,MrG){var vgq=new RegExp(bNM,["g"]);return this.replace(vgq,MrG);};String.prototype.escapeHTML=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;");};String.prototype.doTruncate=function(PCm){return this.length>PCm?this.substring(0,PCm)+"...":this;};String.prototype.toAbsolute=function(){if(this.substring(0,1)=="/"||this.substring(0,7).toUpperCase()=="HTTP://"||this.substring(0,8).toUpperCase()=="HTTPS://"){s=this.toString();}else{if(this.substring(0,4)=="JSX/"){s=jsx3.ABSOLUTEPATH+this;}else{s=jsx3.APPPATH+this;}}return s;};String.prototype.urlTo=function(JDJ){var shB=null;var JPc=this.lastIndexOf("/");if(JPc==this.length-1)shB=this+JDJ;else{if(JPc<0)shB=JDJ;else shB=this.substring(0,JPc+1)+JDJ;}shB=shB.doReplace("\\\\","/");var HgJ=shB.split("/");for(var Krn=0;Krn<HgJ.length;Krn++){var fjM=HgJ[Krn];if(fjM=="."){HgJ.splice(Krn-- ,1);}else{if(fjM==".."){if(Krn>0&&HgJ[Krn-1]!=".."){HgJ.splice(Krn-- ,1);HgJ.splice(Krn-- ,1);}}}}return HgJ.join("/");};String.prototype.endsWith=function(Gjb){var Cwc=this.lastIndexOf(Gjb);return Cwc>=0&&Cwc==this.length-Gjb.length;};String.prototype.constrainLength=function(Cfw,dnk){if(dnk==null)dnk="...";if(this.length>Cfw&&dnk.length<Cfw){var mBp=Cfw-dnk.length;var Lmt=Math.round(mBp*2/3);var CBv=this.substring(0,Lmt);var MJJ=this.substring(this.length-(mBp-Lmt));return CBv+dnk+MJJ;}else{return this;}};String.prototype.toBase64=function(){var gHK,mgv,cGm=0,tbN="",CMJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";while(this.length>=cGm+3){gHK=(this.charCodeAt(cGm++)&255)<<16|(this.charCodeAt(cGm++)&255)<<8|this.charCodeAt(cGm++)&255;tbN=tbN+(CMJ.charAt((gHK&16515072)>>18)+CMJ.charAt((gHK&258048)>>12)+CMJ.charAt((gHK&4032)>>6)+CMJ.charAt(gHK&63));}if(this.length-cGm>0&&this.length-cGm<3){mgv=Boolean(this.length-cGm-1);gHK=(this.charCodeAt(cGm++)&255)<<16|(mgv?(this.charCodeAt(cGm)&255)<<8:0);tbN=tbN+(CMJ.charAt((gHK&16515072)>>18)+CMJ.charAt((gHK&258048)>>12)+(mgv?CMJ.charAt((gHK&4032)>>6):"=")+"=");}return tbN;};String.prototype.fromBase64=function(){var rdK,djk="",ncm=0,lLJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(;ncm<this.length;ncm=ncm+4){rdK=(lLJ.indexOf(this.charAt(ncm))&255)<<18|(lLJ.indexOf(this.charAt(ncm+1))&255)<<12|(lLJ.indexOf(this.charAt(ncm+2))&255)<<6|lLJ.indexOf(this.charAt(ncm+3))&255;djk=djk+String.fromCharCode((rdK&16711680)>>16,(rdK&65280)>>8,rdK&255);}if(this.charCodeAt(ncm-2)==61)return djk.substring(0,djk.length-2);else{if(this.charCodeAt(ncm-1)==61)return djk.substring(0,djk.length-1);else return djk;}};
if(window["jsx3"]==null)window["jsx3"]=new Object();if(jsx3.lang==null)jsx3.lang=new Object();jsx3.lang.xFpKF=new window.Object();jsx3.lang.cFBrN=new window.Object();jsx3.lang.gfbtG=function(){return function(){if(arguments[0]!=jsx3.lang.xFpKF){throw new jsx3.Exception("class "+this.getClass().getName()+" may not be instantiated");}};};jsx3.lang.zNhDj=function(){return function(){if(arguments[0]!==jsx3.lang.cFBrN){this.init.apply(this,arguments);}};};jsx3.lang.Object=function(){this.init();};jsx3.lang.Object.prototype.init=function(){};jsx3.lang.Object.prototype.getClass=function(){return this.constructor.jsxclass;};jsx3.lang.Object.prototype.equals=function(GNL){return this==GNL;};jsx3.lang.Object.prototype.clone=function(){return this.getClass().bless(this);};jsx3.lang.Object.prototype.instanceOf=function(Nfk){if(Nfk instanceof jsx3.lang.Class){return Nfk.isInstance(this);}else{if(Nfk instanceof Function&&Nfk.prototype!=null){return this instanceof Nfk||Nfk.jsxclass!=null&&Nfk.jsxclass.isInstance(this);}else{if(typeof(Nfk)=="string"){Nfk=jsx3.lang.Class.forName(Nfk);if(Nfk!=null)return Nfk.isInstance(this);}}}throw new jsx3.IllegalArgumentException("objClass",Nfk);};jsx3.lang.Object.prototype.toString=function(){return "@"+this.getClass().getName();};jsx3.lang.Object.prototype.jsxsuper=function(fsl){var rtK=null;if(arguments.caller!=null&&arguments.caller.callee!=null)rtK=arguments.caller.callee.jsxmethod;if(rtK==null||!(rtK instanceof jsx3.lang.Method))throw new jsx3.Exception("function may not call jsxsuper(): "+arguments.caller);if(rtK.isStatic())throw new jsx3.Exception("static methods may not call jsxsuper(): "+rtK);var wzh=rtK.getDeclaringClass();var KdL=wzh.JbPPt(rtK);if(KdL==null)throw new jsx3.Exception("no super method for method: "+rtK);var pHC=KdL.apply(this,arguments);if(typeof(pHC)!="undefined")return pHC;};jsx3.lang.Object.prototype.jsxsupermix=function(jtk){var vvJ=null;if(arguments.caller!=null&&arguments.caller.callee!=null)vvJ=arguments.caller.callee.jsxmethod;if(vvJ==null||!(vvJ instanceof jsx3.lang.Method))throw new jsx3.Exception("function may not call jsxsuper(): "+arguments.caller);if(vvJ.isStatic())throw new jsx3.Exception("static methods may not call jsxsupermix(): "+vvJ);var zBg=vvJ.getDeclaringClass();var NfK=zBg.smBfr(vvJ);if(NfK==null)throw new jsx3.Exception("no super mixin method for method: "+vvJ);var sJB=NfK.apply(this,arguments);if(typeof(sJB)!="undefined")return sJB;};jsx3.lang.Object.prototype.doCallSuper=function(NPP,mkf,jFj){var Ljb=jsx3.wssBN(NPP);this.jsxMethod=Ljb[mkf];var zNM=arguments;var DHB=this.jsxMethod?this.jsxMethod(zNM[2],zNM[3],zNM[4],zNM[5],zNM[6],zNM[7],zNM[8],zNM[9],zNM[10],zNM[11]):null;delete this.jsxMethod;return DHB;};jsx3.lang.Object.prototype.isInstanceOf=function(pvb,qdC,vCn){if(this.getClass()&&(typeof(pvb)!="string"||jsx3.lang.Class.forName(pvb)!=null))return this.instanceOf(pvb);var ttN=jsx3.getClass(this.getInstanceOf());if(ttN==null)ttN=this.constructor;if(typeof(ttN)=="function"){var PfN=ttN[qdC?qdC:"INTERFACES"];var FcM=PfN?PfN[pvb]:null;if(FcM==1){return true;}else{if(vCn){return false;}else{return this.isInstanceOf(pvb.doReplace("jsx3","jsx3.gui"),qdC,true);}}}return false;};jsx3.lang.Object.prototype.isSubclassOf=function(nzN){return this.isInstanceOf(nzN,"SUPERS");};jsx3.lang.Object.prototype.getInstanceOf=function(){if(this.getClass())return this.getClass().getName();return this.jsxinstanceof?this.jsxinstanceof:this.constructor.className;};jsx3.lang.Object.prototype.setInstanceOf=function(BnP){this.jsxinstanceof=BnP;return this;};jsx3.lang.Object.prototype.getInstanceOfPackage=function(){if(this.getClass())return this.getClass().getPackageName();var bjh=this.getInstanceOf();if(bjh==null)return "";var tgP=bjh.lastIndexOf(".");if(tgP>=0)return bjh.substring(0,tgP);else return "";};jsx3.lang.Object.prototype.getInstanceOfClass=function(){if(this.getClass()){var spj=this.getClass().getName();return spj.substring(spj.lastIndexOf(".")+1);}var vfg=this.getInstanceOf();if(vfg==null)return "";var Ncx=vfg.lastIndexOf(".");if(Ncx>=0)return vfg.substring(Ncx+1);else return vfg;};jsx3.lang.Object.prototype.debug=function(){jsx3.ide.DEBUG_ARGS=arguments.callee.caller.arguments;var Cvk=jsx3.ide.createExpressionObject(arguments.callee.caller.toString().doReplace("\\}\\s*else","}\r\nelse"));var kLC=jsx3.wssBN(this.getInstanceOf());kLC.jsxMethod=jsx3.ide.doDebug;return this.jsxMethod(Cvk);};jsx3.lang.Object.prototype.eval=function(pGx,Dxh){return jsx3.eval.call(this,pGx,Dxh);};
if(window["jsx3"]==null)window["jsx3"]=new Object();if(jsx3.lang==null)jsx3.lang=new Object();jsx3.lang.Method=jsx3.lang.gfbtG();jsx3.lang.Method.prototype=new jsx3.lang.Object();jsx3.lang.Method.prototype.constructor=jsx3.lang.Method;jsx3.lang.Method.nxHj=/^\s*function(\s+\w+)?\s*\(\s*([^\)]*?)\s*\)/;jsx3.lang.Method.prototype.HhKm=function(){if(jsx3.lang.Method.nxHj.exec(this.getFunction().toString())){var rxf=RegExp.$2;this.fLmq=rxf?rxf.split(/\s*,\s*/):[];}else{this.fLmq=[];}};jsx3.lang.Method.prototype.getName=function(){return this.pzFJ;};jsx3.lang.Method.prototype.getArity=function(){if(this.fLmq==null)this.HhKm();return this.fLmq.length;};jsx3.lang.Method.prototype.getParameterNames=function(){if(this.fLmq==null)this.HhKm();return this.fLmq.clone();};jsx3.lang.Method.prototype.getParameterName=function(jqM){if(this.fLmq==null)this.HhKm();return this.fLmq[jqM];};jsx3.lang.Method.prototype.getDeclaringClass=function(){return this.tJqD;};jsx3.lang.Method.prototype.isPackageMethod=function(){return this.tJqD instanceof jsx3.lang.Package;};jsx3.lang.Method.prototype.isStatic=function(){return this.hnBL;};jsx3.lang.Method.prototype.isAbstract=function(){return this.xpvb;};jsx3.lang.Method.prototype.getFunction=function(){if(this._function!=null)return this._function;if(this.isPackageMethod()){return this.tJqD.getNamespace()[this.pzFJ];}else{if(this.hnBL){return this.tJqD.getConstructor()[this.pzFJ];}else{return this.tJqD.getConstructor().prototype[this.pzFJ];}}};jsx3.lang.Method.prototype.apply=function(Ltq,zpK){return this.getFunction().apply(Ltq,zpK);};jsx3.lang.Method.prototype.call=function(gPl){var Jtb=arguments;if(Jtb.length>11)throw new jsx3.Exception("passed too many arguments to Method.call(): "+Jtb.length);return this.getFunction().call(Jtb[0],Jtb[1],Jtb[2],Jtb[3],Jtb[4],Jtb[5],Jtb[6],Jtb[7],Jtb[8],Jtb[9],Jtb[10]);};jsx3.lang.Method.prototype.toString=function(){return this.tJqD.getName()+"."+this.pzFJ;};jsx3.lang.Method.newAbstract=function(CKG){var hmL="";for(var PDb=0;PDb<arguments.length;PDb++){if(!arguments[PDb].match(/^[a-zA-Z_]\w*$/))throw new jsx3.IllegalArgumentException("paramNames["+PDb+"]",arguments[PDb]);hmL=hmL+("'"+arguments[PDb]+"', ");}var DDH="var method = arguments.callee.jsxmethod;if (method instanceof jsx3.lang.Method) {  throw new jsx3.Exception(\"method \" + method.getName() + \" in class \" + method.getDeclaringClass() +    \" is abstract and may not be invoked\");} else {  throw new jsx3.Exception(\"invoked abstract method improperly initialized\");}";var wnL=jsx3.eval("new Function("+hmL+"'"+DDH+"');");wnL.xpvb=true;return wnL;};jsx3.lang.Method.argsAsArray=function(Fcl,GMC,sbd){if(GMC==null)GMC=0;if(sbd==null)sbd=Fcl.length;else sbd=Math.min(sbd,Fcl.length);var hKK=sbd-GMC;if(hKK<=0)return [];var fLN=new Array(hKK);for(var dvN=0;dvN<hKK;dvN++)fLN[dvN]=Fcl[dvN+GMC];return fLN;};
if(window["jsx3"]==null)window["jsx3"]=new window.Object();if(jsx3.lang==null)jsx3.lang=new window.Object();jsx3.lang.Class=jsx3.lang.gfbtG();jsx3.lang.Class.prototype=new jsx3.lang.Object();jsx3.lang.Class.prototype.constructor=jsx3.lang.Class;jsx3.lang.Class.Pdnm={};jsx3.lang.Class.Pdnm["jsx3.lang.Object"]=1;jsx3.lang.Class.Pdnm["jsx3.lang.Method"]=1;jsx3.lang.Class.Pdnm["jsx3.lang.Class"]=2;jsx3.lang.Class.defineClass=function(LNF,Jls,jpl,srr){this.KbcL(LNF,Jls,jpl,srr,false);};jsx3.lang.Class.defineInterface=function(rzF,pLr,Mcr){this.KbcL(rzF,pLr,null,Mcr,true);};jsx3.lang.Class.KbcL=function(HvF,FGr,fKk,pMq,czk){var mGr=HvF.split(".");var zFc=mGr.pop();var MHH=this.clvtk(mGr);var jlx=this.Pdnm[HvF]!=null;var FGP=null;if(FGr==null){FGP=czk||HvF=="jsx3.lang.Object"?window.Object:jsx3.lang.Object;}else{if(FGr instanceof jsx3.lang.Class){FGP=FGr.getConstructor();}else{if(FGr instanceof Function&&FGr.prototype!=null){FGP=FGr;}else{jsx3.lang.Class.crFd("bad objExtends argument: "+FGr);}}}var hks=false;if(!jlx){if(FGP.jsxclass!=null){if(czk&&!FGP.jsxclass.isInterface())jsx3.lang.Class.crFd("interface may not extend a class "+FGP.jsxclass);if(!czk&&FGP.jsxclass.isInterface())jsx3.lang.Class.crFd("class may not extend an interface "+FGP.jsxclass);}if(typeof(MHH[zFc])=="function"){hks=true;}else{if(czk){MHH[zFc]=jsx3.lang.gfbtG();}else{MHH[zFc]=jsx3.lang.zNhDj();}}MHH[zFc].prototype=this.GHLl(FGP);MHH[zFc].prototype.constructor=MHH[zFc];}var klz=MHH[zFc];if(mGr.join(".")=="jsx3.lang")jsx3[zFc]=klz;var zGc=jsx3.lang.Class.HCwls(jsx3.lang.Class);zGc.pzFJ=HvF;zGc.xzxj=klz;if(FGP!=null)zGc.mLCd=FGP.jsxclass;zGc.lrKH=czk;zGc.HNML=[];zGc.wmfh=[];zGc.DCmg=[];zGc.lHNN=[];zGc.zsst=[];zGc.KnLx={};zGc.FfmN={};if(klz.jsxclass!=null)jsx3.lang.Class.crFd("attempt to redefine class "+HvF);klz.jsxclass=zGc;try{pMq(klz);}catch(e){window.alert("error defining class "+HvF+": "+e.description);}for(var gnK in klz){if(gnK=="jsxclass")continue;if(klz[gnK] instanceof Function){this.clhx(klz[gnK],zGc,gnK,true);}else{zGc.lHNN.push(gnK);}}for(var gnK in klz.prototype){var rhr=klz.prototype[gnK];if(rhr instanceof Function){if(FGP==null||rhr!=FGP.prototype[gnK])this.clhx(rhr,zGc,gnK,false);}else{zGc.zsst.push(gnK);}}if(klz.prototype.toString!=null&&klz.prototype.toString!=window.Object.prototype.toString&&klz.prototype.toString.jsxmethod==null)this.clhx(klz.prototype.toString,zGc,"toString",false);if(!hks&&!czk&&!(klz.prototype.init instanceof Function))jsx3.lang.Class.crFd("class "+HvF+" does not define an init() method");if(fKk instanceof Array){for(var ccJ=fKk.length-1;ccJ>=0;ccJ--){var kpt=fKk[ccJ];if(kpt instanceof Function&&kpt.jsxclass!=null)kpt=kpt.jsxclass;else{if(!(kpt instanceof jsx3.lang.Class))jsx3.lang.Class.crFd("invalid interface argument: "+kpt);}if(!kpt.isInterface())jsx3.lang.Class.crFd("class may not implement class "+kpt);var NJN=kpt.getInstanceMethods();var jmh=kpt.getConstructor().prototype;for(var gnK in jmh){var xxw=jmh[gnK] instanceof Function?jmh[gnK].jsxmethod:null;if(xxw==null)continue;var fbJ=klz.prototype[gnK];if(fbJ==null){klz.prototype[gnK]=xxw.getFunction();}else{if(!fbJ.jsxmethod.getDeclaringClass().equals(zGc)){klz.prototype[gnK]=xxw.getFunction();}}}zGc.HNML.push(kpt);}}};jsx3.lang.Class.clvtk=function(Pbq){var Cwf=window;for(var vfM=0;vfM<Pbq.length;vfM++){var DJw=Pbq[vfM];if(Cwf[DJw]==null)Cwf[DJw]=new window.Object();Cwf=Cwf[DJw];}return Cwf;};jsx3.lang.Class.clhx=function(kqm,zkf,JdB,Ncn){if(kqm.jsxmethod instanceof jsx3.lang.Method){if(kqm.jsxmethod.getDeclaringClass().equals(zkf))jsx3.lang.Class.crFd("attempt to re-bless method "+kqm.jsxmethod+" as "+zkf+"."+JdB);else return;}var kqG=jsx3.lang.Class.HCwls(jsx3.lang.Method);kqG._function=kqm;kqG.tJqD=zkf;kqG.pzFJ=JdB;kqG.hnBL=Ncn;kqG.xpvb=kqm.xpvb;kqm.jsxmethod=kqG;if(Ncn)zkf.wmfh.push(kqG);else zkf.DCmg.push(kqG);};jsx3.lang.Class.GHLl=function(Nrz){if(Nrz==Object)return new Object();return new Nrz(jsx3.lang.cFBrN);};jsx3.lang.Class.HCwls=function(klz){return new klz(jsx3.lang.xFpKF);};jsx3.lang.Class.crFd=function(PmH,NxD){if(jsx3.lang.Exception)throw new jsx3.lang.Exception(PmH,NxD);else window.alert(PmH);};jsx3.lang.Class.defineClass("jsx3.lang.Class",null,null,function(Khq){Khq.forName=function(nJP){try{var HDP=jsx3.eval(nJP);if(HDP!=null&&HDP.jsxclass!=null)return HDP.jsxclass;}catch(e){}return null;};Khq.prototype.getName=function(){return this.pzFJ;};Khq.prototype.getPackage=function(){var LnC=this.pzFJ;while(true){var BLw=LnC.lastIndexOf(".");if(BLw<0)break;LnC=LnC.substring(0,BLw);var skf=jsx3.lang.Package.forName(LnC);if(skf!=null)return skf;if(Khq.forName(LnC)==null)break;}return null;};Khq.prototype.getPackageName=function(){var jgg=this.getPackage();if(jgg){return jgg.getName();}else{var Jrw=this.pzFJ.lastIndexOf(".")+1;return Jrw>=0?this.pzFJ.substring(0,Jrw-1):"";}};Khq.prototype.getConstructor=function(){if(this.xzxj!=null)this.xzxj;try{return jsx3.eval(this.pzFJ);}catch(e){}return null;};Khq.prototype.getSuperClass=function(){return this.mLCd;};Khq.prototype.isInterface=function(){return this.lrKH;};Khq.prototype.toString=function(){return this.pzFJ;};Khq.prototype.newInstance=function(BLc){if(arguments.length>10)throw new jsx3.Exception("method jsx3.lang.Class.newInstance() does not support passing more than 10 arguments to the class constructor");var qJH=arguments;var rkH=this.getConstructor();return new rkH(qJH[0],qJH[1],qJH[2],qJH[3],qJH[4],qJH[5],qJH[6],qJH[7],qJH[8],qJH[9]);};Khq.prototype.isInstance=function(tMB){var cwN=tMB.constructor.jsxclass;return cwN!=null&&this.isAssignableFrom(cwN);};Khq.prototype.isAssignableFrom=function(gmN){if(this.equals(gmN))return true;if(gmN._ancestors==null)gmN.LFMh();return gmN._ancestors[this.getName()]==true;};Khq.prototype.LFMh=function(){this._ancestors={};for(var tpH=0;tpH<this.HNML.length;tpH++){var BBs=this.HNML[tpH];this._ancestors[BBs.getName()]=true;if(BBs._ancestors==null)BBs.LFMh();for(var sJF in BBs._ancestors)this._ancestors[sJF]=true;}if(this.mLCd!=null){this._ancestors[this.mLCd.getName()]=true;if(this.mLCd._ancestors==null)this.mLCd.LFMh();for(var sJF in this.mLCd._ancestors)this._ancestors[sJF]=true;}};Khq.prototype.mixin=function(NJz,KkB){for(var GFG=0;GFG<this.DCmg.length;GFG++){var lrc=this.DCmg[GFG];if(NJz[lrc.getName()]==null||!KkB)NJz[lrc.getName()]=lrc.getFunction();}};Khq.prototype.bless=function(tvz){if(this.isInterface())throw new jsx3.Exception("may not call bless() on an interface: "+this);var hbP=Khq.GHLl(this.getConstructor());if(tvz!=null){for(var wPF in tvz){if(!(tvz[wPF] instanceof Function))hbP[wPF]=tvz[wPF];}}return hbP;};Khq.prototype.newInnerClass=function(jxN){if(this.isInterface()){return Khq.HCwls(this.getConstructor());}else{if(arguments.length>10)throw new jsx3.Exception("method jsx3.lang.Class.newInnerClass() does not support passing more than 10 arguments to the class constructor");var LtF=arguments;var MJD=this.getConstructor();return new MJD(LtF[0],LtF[1],LtF[2],LtF[3],LtF[4],LtF[5],LtF[6],LtF[7],LtF[8],LtF[9]);}};Khq.prototype.getStaticMethods=function(){return this.wmfh.clone();};Khq.prototype.getInstanceMethods=function(){return this.DCmg.clone();};Khq.prototype.getStaticMethod=function(xmJ){for(var scF=0;scF<this.wmfh.length;scF++){if(xmJ==this.wmfh[scF].getName())return this.wmfh[scF];}return null;};Khq.prototype.getInstanceMethod=function(kbH){for(var fFD=0;fFD<this.DCmg.length;fFD++){if(kbH==this.DCmg[fFD].getName())return this.DCmg[fFD];}return null;};Khq.prototype.getGetter=function(nDk){nDk=nDk.charAt(0).toUpperCase()+nDk.substring(1);return this.sKqz("get"+nDk)||sKqz("is"+nDk);};Khq.prototype.getSetter=function(Nrk){Nrk=Nrk.charAt(0).toUpperCase()+Nrk.substring(1);return this.sKqz("set"+Nrk);};Khq.prototype.getStaticFieldNames=function(){return this.lHNN.clone();};Khq.prototype.getInstanceFieldNames=function(){return this.zsst.clone();};Khq.prototype.getInterfaces=function(){return this.HNML.clone();};Khq.prototype.getInheritance=function(){var Pst=[];Pst.pushAll(this.HNML);if(this.mLCd!=null){Pst.push(this.mLCd);Pst.pushAll(this.mLCd.getInheritance());}return Pst;};Khq.prototype.getClasses=function(){var LPM=this.getConstructor();var vvD=[];for(var khz in LPM){if(typeof(LPM[khz])=="function"&&LPM[khz].jsxclass instanceof Khq){vvD.push(LPM[khz].jsxclass);vvD.pushAll(LPM[khz].jsxclass.getClasses());}}return vvD;};Khq.prototype.sKqz=function(DtF,HCj){var Mcv=null;if(!HCj)Mcv=this.getInstanceMethod(DtF);var tcp=this.getInheritance();for(var cJP=0;Mcv==null&&cJP<tcp.length;cJP++){Mcv=tcp[cJP].getInstanceMethod(DtF);}return Mcv;};Khq.prototype.Dkks=function(zbD,Dkj){var Jxt=null;if(!Dkj)Jxt=this.getInstanceMethod(zbD);if(Jxt==null&&this.mLCd!=null)Jxt=this.mLCd.Dkks(zbD);return Jxt;};Khq.prototype.mzJt=function(lxD){var tgt=null;for(var JPP=0;JPP<this.HNML.length&&tgt==null;JPP++)tgt=this.HNML[JPP].getInstanceMethod(lxD);if(tgt==null&&this.mLCd!=null)tgt=this.mLCd.mzJt(lxD);return tgt;};Khq.prototype.JbPPt=function(NFs){var fpm=NFs.getName();var nzs=this.KnLx["m:"+fpm];if(typeof(nzs)=="undefined"){this.KnLx["m:"+fpm]=nzs=this.Dkks(fpm,true);}return nzs;};Khq.prototype.smBfr=function(trs){var PNl=trs.getName();var Hls=this.FfmN["m:"+PNl];if(typeof(Hls)=="undefined"){this.FfmN["m:"+PNl]=Hls=this.mzJt(PNl);}return Hls;};});jsx3.lang.Class.defineClass("jsx3.lang.Object",null,null,function(){});jsx3.lang.Class.defineClass("jsx3.lang.Method",null,null,function(){});jsx3.lang.Class.jsxclass.mLCd=jsx3.lang.Object.jsxclass;
jsx3.Class.defineClass("jsx3.lang.Exception",null,null,function(vcr){var nBz=jsx3.lang.Method;vcr.pxHsN=null;vcr.prototype.init=function(Hrb,jDL){vcr.pxHsN=this;this.cBjB=Hrb;this.LrkJ=jDL;this.nbHv=[];this.cjFB();};vcr.prototype.toString=function(){return this.cBjB;};vcr.prototype.getMessage=function(){return this.cBjB;};vcr.prototype.getCause=function(){return this.LrkJ;};vcr.prototype.getStack=function(){return this.nbHv;};vcr.BBxj=[jsx3.Object.jsxclass.getInstanceMethod("jsxsuper"),jsx3.Object.jsxclass.getInstanceMethod("jsxsupermix")];vcr.formatStack=function(vfj){var kHc="";for(var qFb=0;qFb<vfj.length;qFb++){var jwx=vfj[qFb];if(jwx.jsxmethod instanceof nBz){var qJb=vfj[qFb+1];if(qJb!=null&&vcr.BBxj.indexOf(qJb.jsxmethod)>=0){if(jwx.jsxmethod==nBz.getInstanceMethod("apply"))continue;}if(vcr.BBxj.indexOf(jwx.jsxmethod)>=0)continue;if(kHc.length>0)kHc=kHc+"\n";kHc=kHc+"    at ";kHc=kHc+jwx.jsxmethod.getDeclaringClass().getName();kHc=kHc+(jwx.jsxmethod.isStatic()?"#":".");kHc=kHc+(jwx.jsxmethod.getName()+"()");}else{if(kHc.length>0)kHc=kHc+"\n";kHc=kHc+"    at ";if(jwx.jsxclass instanceof jsx3.lang.Class){kHc=kHc+(jwx.jsxclass.getName()+"()");}else{var pJL=jwx.toString();if(pJL.match(/^function\s+(\w+)?\s*\(([^\)]*)\)/)){var xCk=RegExp.$1||"anonymous";kHc=kHc+(xCk+"("+RegExp.$2+")");}else{kHc=kHc+"anonymous()";}}}}return kHc;};vcr.prototype.printStackTrace=function(){var nJb=this.getClass().getName()+": "+this+"\n"+vcr.formatStack(this.nbHv);if(this.LrkJ!=null)nJb=nJb+("\nCaused By:\n"+this.LrkJ.printStackTrace());return nJb;};vcr.prototype.cjFB=function(){var rLg=jsx3.app.Browser.getStack(1);var CqC=-1;for(var bKN=0;bKN<rLg.length;bKN++){if(rLg[bKN].jsxclass!=null){CqC=bKN;break;}}if(CqC>=0)rLg.splice(0,CqC+1);this.nbHv=rLg;};});jsx3.Class.defineClass("jsx3.lang.IllegalArgumentException",jsx3.lang.Exception,null,function(DxG){DxG.prototype.init=function(fNp,qdk){this.jsxsuper("Illegal value for argument "+fNp+": "+qdk);};});
jsx3.lang.Package=jsx3.lang.gfbtG();jsx3.lang.Class.defineClass("jsx3.lang.Package",null,null,function(dxN){var Kzx=jsx3.lang.Class;var bGP=jsx3.lang.Method;dxN.NmjJ=[];dxN.definePackage=function(BKG,jns){var Brr=Kzx.clvtk(BKG.split("."));var lCh=false;var dFL=null;if(Brr.jsxpackage!=null){if(jsx3.Class.forName("jsx3.util.Logger"))jsx3.util.Logger.getLogger("jsx3.lang").info("redefinition of package "+BKG);dFL=Brr.jsxpackage;lCh=true;dFL.nmdb=[];dFL.sChh=[];}else{dFL=Kzx.HCwls(dxN);dFL.KwLs=BKG;dFL.nmdb=[];dFL.sChh=[];Brr.jsxpackage=dFL;}try{jns(Brr);}catch(e){throw new jsx3.Exception("error defining package "+BKG+": "+e,e);}for(var qgb in Brr){if(qgb=="jsxpackage")continue;if(Brr[qgb] instanceof Function){if(Brr[qgb].jsxclass==null)this.BBkx(Brr[qgb],dFL,qgb);}else{if(Brr[qgb]==null||typeof(Brr[qgb])!="object"||Brr[qgb].jsxpackage==null)dFL.nmdb.push(qgb);}}dxN.NmjJ.push(dFL);};dxN.BBkx=function(lgr,JdM,KHF){if(lgr.jsxmethod instanceof bGP){if(lgr.jsxmethod.getDeclaringClass().equals(JdM)&&lgr.jsxmethod.getName()!=KHF){throw new jsx3.Exception("attempt to re-bless method "+lgr.jsxmethod+" as "+JdM+"."+KHF);}else{if(JdM.sChh.indexOf(lgr.jsxmethod)<0)JdM.sChh.push(lgr.jsxmethod);return;}}var lgL=Kzx.HCwls(bGP);lgL.tJqD=JdM;lgL.pzFJ=KHF;lgL.hnBL=true;lgr.jsxmethod=lgL;JdM.sChh.push(lgL);};dxN.forName=function(cjF){try{var cDp=jsx3.eval(cjF);if(typeof(cDp)=="object")return cDp.jsxpackage;}catch(e){}return null;};dxN.getPackages=function(){return dxN.NmjJ.clone();};dxN.prototype.KwLs=null;dxN.prototype.rgBF=null;dxN.prototype.sChh=null;dxN.prototype.nmdb=null;dxN.prototype.getName=function(){return this.KwLs;};dxN.prototype.getNamespace=function(){if(this.rgBF!=null)return this.rgBF;try{return jsx3.eval(this.KwLs);}catch(e){}return null;};dxN.prototype.getClasses=function(){var kcf=[];var NMb=this.getNamespace();for(var BNM in NMb){if(typeof(NMb[BNM])=="function"&&NMb[BNM].jsxclass instanceof Kzx){if(NMb[BNM].jsxclass.getPackage()==this&&this.getName()+"."+BNM==NMb[BNM].jsxclass.getName()){kcf.push(NMb[BNM].jsxclass);kcf.pushAll(NMb[BNM].jsxclass.getClasses());}}}return kcf;};dxN.prototype.getStaticMethods=function(){return this.sChh.clone();};dxN.prototype.getStaticMethod=function(Cff){for(var xJN=0;xJN<this.sChh.length;xJN++){if(Cff==this.sChh[xJN].getName())return this.sChh[xJN];}return null;};dxN.prototype.getStaticFieldNames=function(){return this.nmdb.clone();};dxN.prototype.toString=function(){return this.KwLs;};});
jsx3.Package.definePackage("jsx3",function(){jsx3.ADDINSPATH=jsx3.ABSOLUTEPATH+"JSX/addins/";jsx3.XMLREGKEY="Msxml2.FreeThreadedDOMDocument.3.0";jsx3.XSLREGKEY="Msxml2.XSLTemplate.3.0";jsx3.HTTPREGKEY="Msxml2.XMLHTTP.3.0";jsx3.pChgk=new Object();jsx3.DESERIALIZE="JSX30DESERIALIZE";jsx3.INITIALIZE="JSX30INITIALIZE";jsx3.STARTUP_EVENT=null;jsx3.CACHE=null;jsx3.EVENT=null;jsx3.eval=function(GmG,hfq){var jsxbless_context=hfq;if(GmG!=null&&GmG!==""){if(jsxbless_context){for(var dsc in jsxbless_context){eval("var "+dsc+" = jsxbless_context['"+dsc+"'];");}}return eval(GmG);}return null;};jsx3.resolveURI=function(qPN){if(!jsx3.ABSOLUTEPATH&&!jsx3.APPPATH)return qPN;var cdb=new jsx3.net.URI(qPN);if(cdb.isAbsolute())return cdb.toString();if(cdb.getHost())return cdb.toString();if(cdb.getPath().indexOf(jsx3.SYSTEM_ROOT+"/")==0){if(jsx3.jMfn==null)jsx3.jMfn=new jsx3.net.URI(jsx3.ABSOLUTEPATH);return jsx3.jMfn.resolve(cdb).toString();}else{if(jsx3.nzNl==null)jsx3.nzNl=new jsx3.net.URI(jsx3.APPPATH);return jsx3.nzNl.resolve(cdb).toString();}};jsx3.makeCallback=function(rlr,Grf,grp){var ctm=[];for(var zxb=2;zxb<arguments.length;zxb++)ctm.push(arguments[zxb]);return function(){ctm.push(arguments);rlr.apply(Grf,ctm);};};jsx3.clone=function(tgL){if(typeof(tgL)!="object")return tgL;var pGb={};for(f in tgL)pGb[f]=tgL[f];return pGb;};jsx3.getClass=function(Fwd){try{var rqb=eval(Fwd);return typeof(rqb)=="function"?rqb:null;}catch(e){return null;}};jsx3.wssBN=function(ljd){try{var Mtb=eval(ljd+".prototype");return typeof(Mtb)=="object"&&typeof(Mtb.constructor)=="function"?Mtb:null;}catch(e){return null;}};jsx3.getClassConstants=function(PFc){var gcb=jsx3.getClass(PFc);if(gcb!=null){var BJN=new Array();for(var DCN in gcb){if(DCN.toUpperCase()==DCN)BJN[BJN.length]=PFc+"."+DCN;}return BJN;}};jsx3.getInstanceMethods=function(Bpc){var jBb=jsx3.wssBN(Bpc);var DsN=new Array();for(var GmN in jBb){if(typeof(jBb[GmN])=="function"){var gFM=jBb[GmN].toString();DsN[DsN.length]=gFM.substring(9,gFM.indexOf(")")+1);}}return DsN;};jsx3.getClassMethods=function(bMb){var wkb=jsx3.getClass(bMb);var KBN="";for(var gKM in wkb){if(typeof(wkb[gKM])=="function"){var tnM=wkb[gKM].toString();KBN=KBN+(gKM+tnM.substring(8,tnM.indexOf(")")+1)+"\n");}}return KBN;};jsx3.doInherit=function(Jpv,zdb,lqK){var lkg=jsx3.getClass(Jpv);var sgp=jsx3.getClass(zdb);if(sgp==null){jsx3.util.Logger.doLog("INHR01","Super class '"+zdb+"' of '"+Jpv+"' not properly defined",1,false);return;}if(lkg.isInherited==null||lqK!=null&&lqK){if(!lqK){lkg.SUPER=zdb;lkg.SUPERS=new Object();for(var crM in sgp.SUPERS){lkg.SUPERS[crM]=sgp.SUPERS[crM];lkg.SUPERS[Jpv]=1;}}lkg.className=Jpv;if(lkg.INHERITANCE==null)lkg.INHERITANCE=[Jpv];if(sgp.INHERITANCE)for(var BsL=sgp.INHERITANCE.length-1;BsL>=0;BsL--)lkg.INHERITANCE.splice(1,0,sgp.INHERITANCE[BsL]);else lkg.INHERITANCE.splice(1,0,zdb);if(lkg.INTERFACES==null)lkg.INTERFACES=new Object();if(sgp.INTERFACES){for(var crM in sgp.INTERFACES)lkg.INTERFACES[crM]=sgp.INTERFACES[crM];}else{lkg.INTERFACES[zdb]="1";}lkg.INTERFACES[Jpv]="1";if(!(lqK!=null&&lqK))lkg.isInherited=true;var gbL=jsx3.wssBN(zdb);var ktG=jsx3.wssBN(Jpv);for(crM in gbL){if(typeof(ktG[crM])!="function"){ktG[crM]=gbL[crM];}}}};jsx3.doImplement=function(Kdt,BGM){jsx3.doInherit(Kdt,BGM,true);};jsx3.doMixin=function(fML,cMM){var qCd=jsx3.wssBN(cMM);for(var KjL in qCd){if(typeof(qCd[KjL])=="function")fML[KjL]=qCd[KjL];}};jsx3.doDefine=function(NPM,Mlk){var nqd=jsx3.getClass(NPM);if(nqd.isDefined==null){nqd.isDefined=true;Mlk();}};jsx3.out=function(mDx,DtG,Lln,FCx){if(jsx3.Class.forName("jsx3.util.Logger"))jsx3.util.Logger.doLog(mDx,DtG,Lln,FCx);};jsx3.log=function(BhG){if(jsx3.Class.forName("jsx3.util.Logger")&&jsx3.util.Logger.GLOBAL){if(jsx3.dgxM){for(var zxK=0;zxK<jsx3.dgxM.length;zxK++)jsx3.util.Logger.GLOBAL.info(jsx3.dgxM[zxK]);delete jsx3.dgxM;}jsx3.util.Logger.GLOBAL.info(BhG);}else{if(jsx3.dgxM==null)jsx3.dgxM=[];jsx3.dgxM.push(BhG);}};});jsx3.Package.definePackage("jsx3.app",function(){});jsx3.Boolean=new Object();jsx3.Boolean.TRUE=1;jsx3.Boolean.FALSE=0;jsx3.Boolean.valueOf=function(JHJ){return JHJ?jsx3.Boolean.TRUE:jsx3.Boolean.FALSE;};jsx3.Package.definePackage("jsx3.gui",function(KDB){KDB.bJHjG=function(wlG,FMx){var shd=[];for(var cnH=0;cnH<arguments.length-1;cnH=cnH+2){wlG=arguments[cnH];if(wlG._jsxvxtz)continue;wlG._jsxvxtz=true;FMx=arguments[cnH+1];var CJF={};for(var bGF in FMx){CJF[bGF]=bGF=="className"?wlG.className:wlG.style[bGF];}shd.push(wlG,CJF,FMx);}KDB.fntH(shd,0,6);};KDB.fntH=function(nwc,vfk,fMP){if(vfk==fMP){for(var jqH=0;jqH<nwc.length-2;jqH=jqH+3){var gMD=nwc[jqH];gMD._jsxvxtz=null;}return;}for(var jqH=0;jqH<nwc.length-2;jqH=jqH+3){var gMD=nwc[jqH];var dMv=vfk%2==0?nwc[jqH+2]:nwc[jqH+1];for(var KhF in dMv){if(KhF=="className")gMD.className=dMv[KhF];else gMD.style[KhF]=dMv[KhF];}}window.setTimeout(function(){KDB.fntH(nwc,vfk+1,fMP);},75);};});jsx3.Package.definePackage("jsx3.lang",function(NBH){});jsx3.Package.definePackage("jsx3.net",function(xxB){});jsx3.Package.definePackage("jsx3.util",function(Pwb){});jsx3.Package.definePackage("jsx3.xml",function(ggG){});
jsx3.Class.defineInterface("jsx3.util.EventDispatcher",null,function(NDF){NDF.dNqH=1;NDF.Nbbf=2;NDF.MsPb=3;NDF.pfrg=4;NDF.xqwH=5;NDF.prototype._jsxnLsK=null;NDF.prototype.subscribe=function(jDD,wFg,LgB){var fsL=this.wzfw();var Mrk=fsL[jDD];if(Mrk==null)Mrk=fsL[jDD]=[];var PJs=typeof(wFg);var tjs=typeof(LgB);var sDM=null;if(PJs=="object"){if(tjs=="function"){sDM=Mrk.push([NDF.dNqH,wFg,LgB]);}else{if(tjs=="string"){sDM=Mrk.push([NDF.Nbbf,wFg,LgB]);}}}else{if(PJs=="string"){if(tjs=="function"){sDM=Mrk.push([NDF.MsPb,wFg,LgB]);}else{if(tjs=="string"){sDM=Mrk.push([NDF.pfrg,wFg,LgB]);}}}else{if(PJs=="function"){sDM=Mrk.push([NDF.xqwH,wFg]);}}}if(!sDM)throw new jsx3.IllegalArgumentException("objHandler, objFunction","{"+typeof(wFg)+"}, {"+typeof(LgB)+"}");};NDF.prototype.unsubscribe=function(nLC,BMf){var pnk=this.wzfw()[nLC];if(pnk!=null){for(var Hvc=pnk.length-1;Hvc>=0;Hvc--){if(pnk[Hvc][1]===BMf)pnk.splice(Hvc,1);}}};NDF.prototype.unsubscribeAll=function(lPC){delete this.wzfw()[lPC];};NDF.prototype.publish=function(LJp){if(LJp.target==null)LJp.target=this;var dqC=LJp.subject;if(dqC==null)throw new jsx3.IllegalArgumentException("objEvent",LJp);var Hdj=this.wzfw()[dqC];if(Hdj==null)return 0;Hdj=Hdj.clone();for(var mmb=0;mmb<Hdj.length;mmb++){var xks=Hdj[mmb];var qMk=xks[0];var CKz=xks[1];var LJj=xks[2];if(qMk==NDF.dNqH){LJj.call(CKz,LJp);}else{if(qMk==NDF.Nbbf){CKz[LJj](LJp);}else{if(qMk==NDF.MsPb){var kxd=this.getServer().getJSX(CKz);if(kxd)LJj.call(kxd,LJp);}else{if(qMk==NDF.pfrg){var NBD=this.getServer().getEnv("namespace");var kxd=jsx3.GO(CKz,NBD);if(kxd)kxd[LJj](LJp);}else{if(qMk==NDF.xqwH){CKz.call(null,LJp);}else{jsx3.util.Logger.getLogger(NDF.jsxclass.getName()).error("EVDP03");}}}}}}return Hdj.length;};NDF.prototype.getSubscriberCount=function(sqB){var vPM=this.wzfw()[sqB];return vPM!=null?vPM.length:0;};NDF.prototype.wzfw=function(){if(this._jsxnLsK==null)this._jsxnLsK={};return this._jsxnLsK;};});
jsx3.Class.defineClass("jsx3.net.URI",null,null,function(xJh){xJh.prototype.PhmM=null;xJh.prototype.DpCG=null;xJh.prototype.nKxK=null;xJh.prototype.xFCC=null;xJh.prototype.rNvP=null;xJh.prototype.NNqN=null;xJh.prototype.nwFw=null;xJh.prototype.kBtk=null;xJh.prototype.gJsc=null;xJh.prototype.Pgws=null;xJh.fromParts=function(Plt,DDG,dqN,NCc,PqL,dnh,ntr){var Cjc=xJh.jsxclass.bless();if(arguments.length==3){Cjc.DpCG=arguments[0];Cjc.nKxK=arguments[1];Cjc.xFCC=arguments[2];}else{if(arguments.length==7){Cjc.DpCG=arguments[0];Cjc.kBtk=arguments[1];Cjc.gJsc=arguments[2];Cjc.Pgws=arguments[3];Cjc.NNqN=arguments[4];Cjc.nwFw=arguments[5];Cjc.xFCC=arguments[6];}else{throw new jsx3.Exception("arguments.length = "+arguments.length);}}if(Cjc.rNvP==null&&Cjc.gJsc!=null){Cjc.rNvP=Cjc.gJsc;if(Cjc.kBtk!=null)Cjc.rNvP=Cjc.kBtk+"@"+Cjc.rNvP;if(Cjc.Pgws!=null)Cjc.rNvP=Cjc.rNvP+":"+Cjc.Pgws;}if(Cjc.nKxK==null){Cjc.nKxK="";if(Cjc.NNqN!=null)Cjc.nKxK=Cjc.NNqN;if(Cjc.rNvP!=null)Cjc.nKxK="//"+Cjc.rNvP+Cjc.nKxK;if(Cjc.nwFw!=null)Cjc.nKxK=Cjc.nKxK+"?"+Cjc.nwFw;}if(Cjc.PhmM==null){Cjc.PhmM=Cjc.nKxK;if(Cjc.DpCG!=null)Cjc.PhmM=Cjc.DpCG+":"+Cjc.PhmM;if(Cjc.xFCC!=null)Cjc.PhmM=Cjc.PhmM+"#"+Cjc.xFCC;}return Cjc;};xJh.prototype.init=function(BxN){this.PhmM=BxN;var MMJ=BxN;var NGD;if((NGD=MMJ.indexOf(":"))>=0){this.DpCG=MMJ.substring(0,NGD);MMJ=MMJ.substring(NGD+1);}if((NGD=MMJ.indexOf("#"))>=0){this.xFCC=MMJ.substring(NGD+1);MMJ=MMJ.substring(0,NGD);}this.nKxK=MMJ;var Glm=this.DpCG!=null;var dJK=Glm&&MMJ.indexOf("/")!=0;if(!dJK){if(MMJ.indexOf("//")==0){NGD=MMJ.indexOf("/",2);this.rNvP=MMJ.substring(2,NGD>=0?NGD:MMJ.length);MMJ=NGD>=0?MMJ.substring(NGD):"";}if((NGD=MMJ.indexOf("?"))>=0){this.nwFw=MMJ.substring(NGD+1);MMJ=MMJ.substring(0,NGD);}this.NNqN=MMJ;var xrJ=this.rNvP;if(xrJ){if((NGD=xrJ.indexOf("@"))>=0){this.kBtk=xrJ.substring(0,NGD);xrJ=xrJ.substring(NGD+1);}if((NGD=xrJ.indexOf(":"))>=0){this.Pgws=parseInt(xrJ.substring(NGD+1));xrJ=xrJ.substring(0,NGD);}}this.gJsc=xrJ;}};xJh.prototype.normalize=function(){if(this.NNqN==null||this.NNqN=="")return this;var Cvw=this.NNqN.split("/");xJh.normalizeTokens(Cvw);var gnH=Cvw.join("/");return gnH==this.NNqN?this:xJh.fromParts(this.DpCG,this.kBtk,this.gJsc,this.Pgws,gnH,this.nwFw,this.xFCC);};xJh.normalizeTokens=function(Lhw){for(var lgb=Lhw.length-1;lgb>=0;lgb--){if(Lhw[lgb]==".")Lhw.splice(lgb,1);}for(var lgb=0;lgb<Lhw.length;lgb++){if(lgb>0&&Lhw[lgb]==".."&&Lhw[lgb-1]!=".."){Lhw.splice(lgb-1,2);lgb=lgb-2;}}if(Lhw[0]!=null&&Lhw[0].indexOf(":")>=0)Lhw.unshift("",".");};xJh.prototype.resolve=function(PJL){if(!(PJL instanceof xJh))PJL=new xJh(PJL);if(PJL.isAbsolute()||this.isOpaque())return PJL;if(PJL.getFragment()&&!PJL.getPath()&&!PJL.getScheme()&&!PJL.getAuthority()&&!PJL.getQuery())return xJh.fromParts(this.DpCG,this.kBtk,this.gJsc,this.Pgws,this.NNqN,this.nwFw,PJL.getFragment());var vLp=this.getScheme();var Clc=PJL.getQuery();var BDl=PJL.getFragment();var Gmz=null,JkG=null,tKH=null,HJB=null;if(PJL.getAuthority()){Gmz=PJL.getUserInfo();JkG=PJL.getHost();tKH=PJL.getPort();HJB=PJL.getPath();}else{Gmz=this.getUserInfo();JkG=this.getHost();tKH=this.getPort();if(PJL.getPath().indexOf("/")==0){HJB=PJL.getPath();}else{var HBp=this.getPath().split("/");HBp.pop();HBp.pushAll(PJL.getPath().split("/"));xJh.normalizeTokens(HBp);HJB=HBp.join("/");}}return xJh.fromParts(vLp,Gmz,JkG,tKH,HJB,Clc,BDl);};xJh.prototype.relativize=function(pPK){if(!(pPK instanceof xJh))pPK=new xJh(pPK);if(this.isOpaque()||pPK.isOpaque())return pPK;if(this.getScheme()!=pPK.getScheme())return pPK;if(this.getAuthority()!=pPK.getAuthority())return pPK;var Mrq=this.getPath()||"";var djk=pPK.getPath()||"";var Bgt=Mrq.split("/");Bgt.pop();var GcG=djk.split("/");var rBs=[];var tGJ=0;while(tGJ<Bgt.length&&tGJ<GcG.length){if(Bgt[tGJ]!=GcG[tGJ])break;tGJ++;}if(tGJ<2&&Mrq.indexOf("/")==0)return pPK;for(var pgJ=tGJ;pgJ<Bgt.length;pgJ++)rBs.push("..");for(var pgJ=tGJ;pgJ<GcG.length;pgJ++)rBs.push(GcG[pgJ]);var mgg=rBs.join("/");return xJh.fromParts(null,null,null,null,mgg,pPK.nwFw,pPK.xFCC);};xJh.prototype.getAuthority=function(){return this.rNvP;};xJh.prototype.getFragment=function(){return this.xFCC;};xJh.prototype.getHost=function(){return this.gJsc;};xJh.prototype.getPath=function(){return this.NNqN;};xJh.prototype.getPort=function(){return this.Pgws;};xJh.prototype.getQuery=function(){return this.nwFw;};xJh.prototype.getQueryParam=function(Kql){var FCM=this.nwFw;if(FCM){var Gzx=0;var Plf=Kql.length;var tNv=null;while((tNv=FCM.indexOf(Kql,Gzx))>=0){if(tNv==0||FCM.charAt(tNv-1)=="&"){var tHM=FCM.charAt(tNv+Plf);if(tHM=="&"||tHM==""||tHM==null){return true;}else{if(tHM=="="){var MMx=FCM.indexOf("&",tNv+Plf+1);return MMx>=0?FCM.substring(tNv+Plf+1,MMx):FCM.substring(tNv+Plf+1);}}}Gzx=tNv+Plf;}}return null;};xJh.prototype.getQueryParams=function(){var trw={};if(this.nwFw){var KNp=this.nwFw.split("&");for(var MlJ=0;MlJ<KNp.length;MlJ++){var lqt=KNp[MlJ].split("=");trw[lqt[0]]=lqt[1];}}return trw;};xJh.prototype.getScheme=function(){return this.DpCG;};xJh.prototype.getSchemeSpecificPart=function(){return this.nKxK;};xJh.prototype.getUserInfo=function(){return this.kBtk;};xJh.prototype.isAbsolute=function(){return this.DpCG!=null;};xJh.prototype.isOpaque=function(){return this.DpCG!=null&&this.nKxK.indexOf("/")!=0;};xJh.prototype.equals=function(FzC){if(this==FzC)return true;if(!(FzC instanceof jsx3.net.URI))return false;return this.PhmM==FzC.PhmM;};xJh.prototype.toString=function(){return this.PhmM;};});
jsx3.Class.defineClass("jsx3.gui.Event",null,null,function(FGD){FGD.BEFOREUNLOAD="beforeunload";FGD.BLUR="blur";FGD.CHANGE="change";FGD.CLICK="click";FGD.DOUBLECLICK="dblclick";FGD.ERROR="error";FGD.FOCUS="focus";FGD.KEYDOWN="keydown";FGD.KEYPRESS="keypress";FGD.KEYUP="keyup";FGD.LOAD="load";FGD.MOUSEDOWN="mousedown";FGD.MOUSEMOVE="mousemove";FGD.MOUSEOUT="mouseout";FGD.MOUSEOVER="mouseover";FGD.MOUSEUP="mouseup";FGD.UNLOAD="unload";FGD.KEY_ALT=18;FGD.KEY_ARROW_DOWN=40;FGD.KEY_ARROW_LEFT=37;FGD.KEY_ARROW_RIGHT=39;FGD.KEY_ARROW_UP=38;FGD.KEY_BACKSPACE=8;FGD.KEY_CONTROL=17;FGD.KEY_DELETE=46;FGD.KEY_END=35;FGD.KEY_ENTER=13;FGD.KEY_ESCAPE=27;FGD.KEY_HOME=36;FGD.KEY_INSERT=45;FGD.KEY_PAGE_DOWN=33;FGD.KEY_PAGE_UP=34;FGD.KEY_SHIFT=16;FGD.KEY_SPACE=32;FGD.KEY_TAB=9;FGD.Bjzd=window;FGD.xGmH=[];FGD.PjFf={};FGD.CwPs=jsx3.util.EventDispatcher.jsxclass.newInnerClass();FGD.subscribe=function(GqC,gsf,vHP){FGD.CwPs.subscribe(GqC,gsf,vHP);var Dpj="on"+GqC;var Jjf=FGD.wlfC(GqC);if(Jjf[Dpj]!=FGD._eventHandler){if(Jjf[Dpj]!=null)FGD.PjFf[Dpj]=Jjf[Dpj];Jjf[Dpj]=FGD._eventHandler;}};FGD.unsubscribe=function(DdC,dgf){FGD.CwPs.unsubscribe(DdC,dgf);if(FGD.CwPs.getSubscriberCount(DdC)==0)FGD.sbKg(DdC);};FGD.unsubscribeAll=function(wJB){FGD.CwPs.unsubscribeAll(wJB);FGD.sbKg(wJB);};FGD.publish=function(Lgp){var dHs={subject:Lgp.getType(),target:FGD,event:Lgp};FGD.Gpvf(dHs);};FGD.Gpvf=function(cBs){var Nsh="on"+cBs.subject.toLowerCase();if(FGD.PjFf[Nsh]!=null)FGD.PjFf[Nsh]();FGD.CwPs.publish(cBs);};FGD._eventHandler=function(CkF){var bsb=new FGD(CkF!=null?CkF:event);var xDr={subject:bsb.getType(),target:FGD,event:bsb};FGD.Gpvf(xDr);if(xDr.returnValue)return xDr.returnValue;};FGD.sbKg=function(BcB){var Pbg="on"+BcB;var DJc=FGD.wlfC(BcB);if(FGD.PjFf[Pbg]!=null){DJc[Pbg]=FGD.PjFf[Pbg];delete FGD.PjFf[Pbg];}else{DJc[Pbg]=null;}};FGD.wlfC=function(nFz){return nFz==FGD.BEFOREUNLOAD||nFz==FGD.UNLOAD?FGD.Bjzd:FGD.Bjzd.document;};FGD.prototype.init=function(rzb,krb){this._event=rzb;if(krb)this._clone=jsx3.clone(rzb);};FGD.prototype.lshtv=function(){if(this._clone==null)this._clone=jsx3.clone(this._event);};FGD.wrap=function(czm,hfb){return czm instanceof FGD?czm:new FGD(czm,hfb);};FGD.getCurrent=function(CKN){return event?new FGD(event,CKN):null;};FGD.prototype.event=function(){if(this._event==null)return this._clone;else{if(typeof(this._event.type)=="string")return this._event;}this._event=null;return this._clone;};FGD.prototype.getType=function(){return this.event().type;};FGD.prototype.srcElement=function(){var nsN=this.event();return nsN.srcElement;};FGD.prototype.toElement=function(){var bmN=this.event();return bmN.toElement;};FGD.prototype.fromElement=function(){var ChN=this.event();return ChN.fromElement;};FGD.prototype.keyCode=function(){var qcN=this.event();return qcN.keyCode;};FGD.prototype.clientX=function(){var dLM=this.event();return dLM?dLM.clientX:Number.NaN;};FGD.prototype.clientY=function(){var FFM=this.event();return FFM?FFM.clientY:Number.NaN;};FGD.prototype.getOffsetX=function(){return this.event().offsetX;};FGD.prototype.getOffsetY=function(){return this.event().offsetY;};FGD.prototype.getScreenX=function(){return this.event().screenX;};FGD.prototype.getScreenY=function(){return this.event().screenY;};FGD.prototype.getTrueX=function(){return this.event().clientX;};FGD.prototype.getTrueY=function(){return this.event().clientY;};FGD.prototype.shiftKey=function(){var djM=this.event();return djM.shiftKey;};FGD.prototype.ctrlKey=function(){var FcM=this.event();return FcM.ctrlKey;};FGD.prototype.altKey=function(){var sLL=this.event();return sLL.altKey;};FGD.prototype.enterKey=function(){return this.event().keyCode==FGD.KEY_ENTER;};FGD.prototype.spaceKey=function(){return this.event().keyCode==FGD.KEY_SPACE;};FGD.prototype.tabKey=function(){return this.event().keyCode==FGD.KEY_TAB;};FGD.prototype.rightArrow=function(){return this.event().keyCode==FGD.KEY_ARROW_RIGHT;};FGD.prototype.leftArrow=function(){return this.event().keyCode==FGD.KEY_ARROW_LEFT;};FGD.prototype.upArrow=function(){return this.event().keyCode==FGD.KEY_ARROW_UP;};FGD.prototype.downArrow=function(){return this.event().keyCode==FGD.KEY_ARROW_DOWN;};FGD.prototype.deleteKey=function(){return this.event().keyCode==FGD.KEY_DELETE;};FGD.prototype.backspaceKey=function(){return this.event().keyCode==FGD.KEY_BACKSPACE;};FGD.prototype.insertKey=function(){return this.event().keyCode==FGD.KEY_INSERT;};FGD.prototype.homeKey=function(){return this.event().keyCode==FGD.KEY_HOME;};FGD.prototype.endKey=function(){return this.event().keyCode==FGD.KEY_END;};FGD.prototype.pageUpKey=function(){return this.event().keyCode==FGD.KEY_PAGE_UP;};FGD.prototype.pageDownKey=function(){return this.event().keyCode==FGD.KEY_PAGE_DOWN;};FGD.prototype.escapeKey=function(){return this.event().keyCode==FGD.KEY_ESCAPE;};FGD.prototype.exists=function(){this.event()!=null;};FGD.prototype.cancelBubble=function(){this.event().cancelBubble=true;};FGD.prototype.cancelReturn=function(){this.event().returnValue=false;};FGD.prototype.cancelKey=function(){this.event().keyCode=0;};FGD.prototype.leftButton=function(){var zlJ=this.event();return zlJ.button==0;};FGD.prototype.rightButton=function(){var ngJ=this.event();return ngJ.button==2;};FGD.prototype.button=function(){var bNH=this.event();return bNH.button;};FGD.prototype.setReturn=function(dCJ){this.event().returnValue=dCJ;};FGD.prototype.setKeyCode=function(gsf){this.event().keyCode=gsf;};FGD.prototype.isModifierKey=function(){var MBH=this.event();return MBH.keyCode==FGD.KEY_SHIFT||MBH.keyCode==FGD.KEY_CONTROL||MBH.keyCode==FGD.KEY_ALT;};FGD.prototype.isArrowKey=function(){var skw=this.keyCode();return skw>=FGD.KEY_ARROW_LEFT&&skw<=FGD.KEY_ARROW_DOWN;};FGD.prototype.cancelKeyEventInModal=function(){var gwm=this.ctrlKey();var LxB=this.altKey();var wKd=this.shiftKey();var Fjv=!gwm&&!LxB;if(!Fjv&&gwm&&!LxB&&!wKd){var Jmb=this.keyCode();if(Jmb=="A".charCodeAt(0)||Jmb=="X".charCodeAt(0)||Jmb=="C".charCodeAt(0)||Jmb=="V".charCodeAt(0))Fjv=true;}if(!Fjv){this.cancelBubble();this.cancelReturn();}};FGD.prototype.toString=function(){var pJG=this.event();if(pJG==null)return "@jsx3.gui.Event <empty>";var jBl=[];for(var MtF in pJG)jBl.push(MtF);jBl.sort();var ClF="@jsx3.gui.Event ";for(var JjD=0;JjD<jBl.length;JjD++)ClF=ClF+(jBl[JjD]+":"+pJG[jBl[JjD]]+" ");return ClF;};});
jsx3.Class.defineClass("jsx3.EVT",null,[jsx3.util.EventDispatcher],function(DfN){DfN.prototype.init=function(spf){if(spf)this.e=jsx3.clone(spf);};DfN.prototype.handleEvent=function(cfH,gkt){var Gqr=jsx3.gui.Event.getCurrent();if(Gqr==null){jsx3.util.Logger.getLogger(DfN.jsxclass.getName()).warn("handleEvent called when current event null: "+cfH);return;}if(Gqr.getType()!=cfH.substring(2))jsx3.util.Logger.getLogger(DfN.jsxclass.getName()).warn("handleEvent called for type that does not match the current event's type: "+Gqr.getType()+" "+cfH);jsx3.gui.Event.publish(Gqr);};DfN.prototype.registerEvent=function(jqj,FvB){if(jqj.indexOf("on")==0)jqj=jqj.substring(2);jsx3.gui.Event.subscribe(jqj,function(){jsx3.eval(FvB);});};DfN.prototype.event=function(){return this.e||event;};DfN.prototype.srcElement=function(){var phd=this.event();return phd&&phd.srcElement;};DfN.prototype.toElement=function(){var Fcd=this.event();return Fcd&&Fcd.toElement;};DfN.prototype.fromElement=function(){var hMc=this.event();return hMc&&hMc.fromElement;};DfN.prototype.keyCode=function(){var xHc=this.event();return xHc&&xHc.keyCode;};DfN.prototype.clientX=function(){var NCc=this.event();return NCc?NCc.clientX:Number.NaN;};DfN.prototype.clientY=function(){var qPc=this.event();return qPc?qPc.clientY:Number.NaN;};DfN.prototype.getTrueX=function(){return this.event().screenX-window.screenLeft;};DfN.prototype.getTrueY=function(){return this.event().screenY-window.screenTop;};DfN.prototype.shiftKey=function(){var Plc=this.event();return Plc&&Plc.shiftKey;};DfN.prototype.ctrlKey=function(){var bhc=this.event();return bhc&&bhc.ctrlKey;};DfN.prototype.altKey=function(){var rcc=this.event();return rcc&&rcc.altKey;};DfN.prototype.enterKey=function(){return this.event().keyCode==13;};DfN.prototype.spaceKey=function(){return this.event().keyCode==32;};DfN.prototype.tabKey=function(){return this.event().keyCode==9;};DfN.prototype.rightArrow=function(){return this.event().keyCode==39;};DfN.prototype.leftArrow=function(){return this.event().keyCode==37;};DfN.prototype.upArrow=function(){return this.event().keyCode==38;};DfN.prototype.downArrow=function(){return this.event().keyCode==40;};DfN.prototype.deleteKey=function(){return this.event().keyCode==46;};DfN.prototype.backspaceKey=function(){return this.event().keyCode==8;};DfN.prototype.insertKey=function(){return this.event().keyCode==45;};DfN.prototype.homeKey=function(){return this.event().keyCode==36;};DfN.prototype.endKey=function(){return this.event().keyCode==35;};DfN.prototype.pageUpKey=function(){return this.event().keyCode==33;};DfN.prototype.pageDownKey=function(){return this.event().keyCode==34;};DfN.prototype.escapeKey=function(){return this.event().keyCode==27;};DfN.prototype.exists=function(){this.event()!=null;};DfN.prototype.cancelBubble=function(){this.event().cancelBubble=true;};DfN.prototype.cancelReturn=function(){this.event().returnValue=false;};DfN.prototype.cancelKey=function(){this.event().keyCode=0;};DfN.prototype.leftButton=function(){var CKN=this.event();return CKN&&CKN.button==0;};DfN.prototype.rightButton=function(){var fGN=this.event();return fGN&&fGN.button==2;};DfN.prototype.button=function(){var vBN=this.event();return vBN?vBN.button:null;};DfN.prototype.setReturn=function(zKd){this.event().returnValue=zKd;};DfN.prototype.setKeyCode=function(dhl){this.event().keyCode=dhl;};DfN.prototype.isModifierKey=function(){var KqN=this.event();return KqN.keyCode==16||KqN.keyCode==17||KqN.keyCode==18;};DfN.prototype.cancelKeyEventInModal=function(){var wss=this.ctrlKey();var nvH=this.altKey();var MGk=this.shiftKey();var hgB=!wss&&!nvH;if(!hgB&&wss&&!nvH&&!MGk){var lkh=this.keyCode();if(lkh=="A".charCodeAt(0)||lkh=="X".charCodeAt(0)||lkh=="C".charCodeAt(0)||lkh=="V".charCodeAt(0))hgB=true;}if(!hgB){this.cancelBubble();this.cancelReturn();}};DfN.prototype.toString=function(){var MlN="";var tdM=this.event();if(tdM==null)return "jsx3.EVT <empty>";var nKq=[];for(var dDK in tdM)nKq.push(dDK);nKq.sort();for(var lgK=0;lgK<nKq.length;lgK++)MlN=MlN+(nKq[lgK]+":"+tdM[nKq[lgK]]+" ");return MlN;};});jsx3.EVENT=new jsx3.EVT();jsx3.EVENT.MOUSEOVER="onmouseover";jsx3.EVENT.MOUSEOUT="onmouseout";jsx3.EVENT.MOUSEDOWN="onmousedown";jsx3.EVENT.MOUSEUP="onmouseup";jsx3.EVENT.MOUSEMOVE="onmousemove";jsx3.EVENT.CLICK="onclick";jsx3.EVENT.DOUBLECLICK="ondblclick";jsx3.EVENT.KEYPRESS="onkeypress";jsx3.EVENT.KEYUP="onkeyup";jsx3.EVENT.KEYDOWN="onkeydown";jsx3.EVENT.FOCUS="onfocus";jsx3.EVENT.ACTIVATE="onactivate";jsx3.EVENT.BLUR="onblur";jsx3.EVENT.SCROLL="onscroll";jsx3.EVENT.UNLOAD="onunload";jsx3.EVENT.BEFOREUNLOAD="onbeforeunload";jsx3.EVENT.JSXKEYUP="jsxkeyup";jsx3.EVENT.JSXKEYDOWN="jsxkeydown";jsx3.EVENT.JSXKEYUP="jsxkeyup";jsx3.EVENT.JSXKEYPRESS="jsxkeypress";jsx3.EVENT.JSXBLUR="jsxblur";jsx3.EVENT.JSXCLICK="jsxclick";jsx3.EVENT.JSXDOUBLECLICK="jsxdblclick";jsx3.EVENT.JSXMOUSEDOWN="jsxmousedown";jsx3.EVENT.SPYGLASS="jsxspy";jsx3.EVENT.DROP="jsxdrop";jsx3.EVENT.BEFOREDROP="jsxbeforedrop";jsx3.EVENT.CANCELDROP="jsxcanceldrop";jsx3.EVENT.CTRLDROP="jsxctrldrop";jsx3.EVENT.DRAG="jsxdrag";jsx3.EVENT.ADOPT="jsxadopt";jsx3.EVENT.SHOW="jsxshow";jsx3.EVENT.HIDE="jsxhide";jsx3.EVENT.MENU="jsxmenu";jsx3.EVENT.SELECT="jsxselect";jsx3.EVENT.TOGGLE="jsxtoggle";jsx3.EVENT.EXECUTE="jsxexecute";jsx3.EVENT.BEFORERESIZE="jsxbeforeresize";jsx3.EVENT.AFTERRESIZE="jsxafterresize";jsx3.EVENT.BEFOREMOVE="jsxbeforemove";jsx3.EVENT.AFTERMOVE="jsxaftermove";jsx3.EVENT.DESTROY="jsxdestroy";jsx3.EVENT.SORT="jsxsort";jsx3.EVENT.BEFORESORT="jsxbeforesort";jsx3.EVENT.AFTERSORT="jsxaftersort";jsx3.EVENT.PAINT="jsxpaint";jsx3.EVENT.PAGE="jsxpage";jsx3.EVENT.INTERVAL="jsxinterval";jsx3.EVENT.DRAW="jsxdraw";jsx3.EVENT.DATA="jsxdata";jsx3.EVENT.BEFOREEDIT="jsxbeforeedit";jsx3.EVENT.AFTEREDIT="jsxafteredit";jsx3.EVENT.CHANGE="jsxchange";jsx3.EVENT.INCCHANGE="jsxincchange";jsx3.EVENT.BEFOREAPPEND="jsxbeforeappend";jsx3.EVENT.AFTERAPPEND="jsxafterappend";jsx3.Class.defineClass("jsx3.EventHelp",null,null,function(qfD){qfD.ONBEFOREDROP=0;qfD.ONDROP=1;qfD.ONCANCELDROP=2;qfD.DRAGICONINDEX=32000;qfD.DEFAULTSPYLEFTOFFSET=5;qfD.DEFAULTSPYTOPOFFSET=5;qfD.SPYDELAY=300;qfD.FLAG=0;qfD.yOff=0;qfD.xOff=0;qfD.objMyRange=null;qfD.curDragObject=null;qfD.beginTrackMouse=function(){jsx3.gui.Event.subscribe(jsx3.gui.Event.MOUSEMOVE,qfD.mouseTracker);};qfD.endTrackMouse=function(){jsx3.gui.Event.unsubscribe(jsx3.gui.Event.MOUSEMOVE,qfD.mouseTracker);};qfD.mouseTracker=function(Bxh){qfD.doMouseMove(Bxh.event);};qfD.drag=function(jrH,NBs,rhh,wPL){return "<span style='background-color:#f6f6ff;border:solid 1px #a8a8af;font-family:Verdana;font-size:10px;padding:2px;height:11px;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70, FinishOpacity=0, Style=0, StartX=0,  FinishX=100, StartY=0, FinishY=100);'><nobr>"+jrH.innerText+"</nobr></span>";};qfD.doMouseMove=function(xfh){if(qfD.FLAG==1||qfD.FLAG==3){var Jqk=qfD.curDragObject.document;if(qfD.FLAG==1){if(!qfD.constrainX)qfD.curDragObject.style.pixelLeft=xfh.getTrueX()+qfD.xOff;if(!qfD.constrainY)qfD.curDragObject.style.pixelTop=xfh.getTrueY()+qfD.yOff;}else{var MPm=xfh.getTrueX()-qfD.startX;var HMl=xfh.getTrueY()-qfD.startY;var skc=qfD["dragRounder"](qfD.xOff+MPm,qfD.yOff+HMl);if(skc[0]!=qfD.offsetLeft||skc[1]!=qfD.offsetTop){qfD.curDragObject.style.pixelLeft=skc[0];qfD.curDragObject.style.pixelTop=skc[1];}}if(qfD.objMyRange!=null&&typeof(qfD.objMyRange.text)!="undefined"){try{qfD.objMyRange.moveToElementText(Jqk.all.body);qfD.objMyRange.select();qfD.objMyRange.collapse();}catch(e){try{Jqk.selection.empty();}catch(e){}}finally{qfD.objMyRange=null;}}}else{if(qfD.FLAG==2){var Jqk=qfD.JSXID.getDocument();var KhF=Jqk.getElementsByTagName("BODY")[0];qfD.xOff=0;qfD.yOff=0;qfD.objMyRange=Jqk.selection.createRange();var dlq="<div id=\"_jsxdrag\" style=\"position:absolute;left:"+(qfD.constrainX?qfD.curDragObject.style.pixelLeft:xfh.getTrueX()+qfD.xOff)+"px;top:"+(qfD.constrainY?qfD.curDragObject.style.pixelTop:xfh.getTrueY()+qfD.yOff)+"px;width:expression(10);z-index:"+qfD.DRAGICONINDEX+";\">"+qfD.dragItemHTML+"</div>";KhF.insertAdjacentHTML("beforeEnd",dlq);qfD.curDragObject=Jqk.getElementById("_jsxdrag");qfD.FLAG=1;}else{qfD.endTrackMouse();}}};qfD.reset=function(){qfD.DRAGTYPE=null;qfD.DRAGID=null;qfD.FLAG=0;qfD.endTrackMouse();if(qfD.curDragObject!=null){if(qfD.curDragObject.id=="_jsxdrag")qfD.curDragObject.outerHTML="";qfD.curDragObject.releaseCapture();qfD.curDragObject=null;qfD.constrainX=false;qfD.constrainY=false;}};qfD.isDragging=function(){return qfD.curDragObject!=null;};});jsx3.gui.Event.subscribe(jsx3.gui.Event.MOUSEUP,function(){jsx3.EventHelp.reset();});jsx3.gui.Event.subscribe(jsx3.gui.Event.CLICK,function(){jsx3.EventHelp.reset();});
jsx3.Class.defineClass("jsx3.lang.NativeError",jsx3.lang.Exception,null,function(bjK){bjK.wrap=function(Hcb){if(Hcb instanceof Error)return new bjK(Hcb);else{if(Hcb instanceof jsx3.Exception)return Hcb;else{if(Hcb instanceof Object)return new jsx3.Exception(Hcb.toString());else return new jsx3.Exception(""+Hcb);}}};bjK.initErrorCapture=function(){window.onerror=bjK.knLn;};bjK.knLn=function(cdq,kLb,bkH){if(jsx3.Class.forName("jsx3.util.Logger")!=null&&jsx3.util.Logger.GLOBAL!=null){if(cdq.indexOf("thrown and not caught")>=0){if(jsx3.Exception.pxHsN!=null){var gfk=jsx3.app.Browser.getStack(0);if(gfk.contentsEqual(jsx3.Exception.pxHsN.getStack())){jsx3.util.Logger.GLOBAL.logError(jsx3.util.Logger.ERROR,"Uncaught Exception",jsx3.Exception.pxHsN);return true;}}}jsx3.util.Logger.GLOBAL.logStack(jsx3.util.Logger.ERROR,"Uncaught Exception: "+cdq+" (line: "+(bkH-1)+", file: "+kLb+")");return true;}else{return false;}};bjK.prototype.tDlG=null;bjK.prototype.init=function(lBM){if(!(lBM instanceof Error))throw new jsx3.IllegalArgumentException("objError",lBM);this.jsxsuper();this.tDlG=lBM;};bjK.prototype.getMessage=function(){return this.tDlG.message!=null?this.tDlG.message:"";};bjK.prototype.getFileName=function(){return this.tDlG.fileName;};bjK.prototype.getLineNumber=function(){return this.tDlG.lineNumber-1;};bjK.prototype.getCode=function(){return "";};bjK.prototype.getName=function(){return this.tDlG.name;};bjK.prototype.isStructural=function(){return this.tDlG&&(this.tDlG.number&65535)==1009;};bjK.prototype.toString=function(){var PhF=this.getLineNumber();var xzH=this.getFileName();var Kqb=this.getMessage();if(PhF||xzH){Kqb=Kqb+" (";if(PhF)Kqb=Kqb+("line: "+PhF);if(xzH){if(PhF)Kqb=Kqb+", ";Kqb=Kqb+("file: "+xzH);}Kqb=Kqb+")";}return Kqb;};});
jsx3.Class.defineInterface("jsx3.gui.Interactive",null,function(xnn){var nFD=jsx3.gui.Event;xnn.JSXBLUR="jsxblur";xnn.JSXCHANGE="jsxchange";xnn.JSXCLICK="jsxclick";xnn.JSXDOUBLECLICK="jsxdblclick";xnn.JSXFOCUS="jsxfocus";xnn.JSXKEYDOWN="jsxkeydown";xnn.JSXKEYPRESS="jsxkeypress";xnn.JSXKEYUP="jsxkeyup";xnn.JSXMOUSEDOWN="jsxmousedown";xnn.JSXMOUSEOUT="jsxmouseover";xnn.JSXMOUSEOVER="jsxmouseout";xnn.JSXMOUSEUP="jsxmouseup";xnn.ADOPT="jsxadopt";xnn.AFTER_APPEND="jsxafterappend";xnn.AFTER_EDIT="jsxafteredit";xnn.AFTER_MOVE="jsxaftermove";xnn.AFTER_RESIZE="jsxafterresize";xnn.AFTER_SORT="jsxaftersort";xnn.BEFORE_APPEND="jsxbeforeappend";xnn.BEFORE_DROP="jsxbeforedrop";xnn.BEFORE_EDIT="jsxbeforeedit";xnn.BEFORE_MOVE="jsxbeforemove";xnn.BEFORE_RESIZE="jsxbeforeresize";xnn.BEFORE_SORT="jsxbeforesort";xnn.CANCEL_DROP="jsxcanceldrop";xnn.CHANGE="jsxchange";xnn.CTRL_DROP="jsxctrldrop";xnn.DESTROY="jsxdestroy";xnn.DRAG="jsxdrag";xnn.DROP="jsxdrop";xnn.EXECUTE="jsxexecute";xnn.HIDE="jsxhide";xnn.INCR_CHANGE="jsxincchange";xnn.MENU="jsxmenu";xnn.SELECT="jsxselect";xnn.SHOW="jsxshow";xnn.SPYGLASS="jsxspy";xnn.TOGGLE="jsxtoggle";xnn.prototype.doBlur=function(mPp,sCb){this.doEvent(xnn.JSXBLUR,{objEVENT:mPp});};xnn.prototype.doChange=function(rvp,xPb){this.doEvent(xnn.JSXCHANGE,{objEVENT:rvp});};xnn.prototype.doClick=function(wrp,Cvb){this.doEvent(xnn.JSXCLICK,{objEVENT:wrp});};xnn.prototype.doDoubleClick=function(Bnp,Hrb){this.doEvent(xnn.JSXDOUBLECLICK,{objEVENT:Bnp});};xnn.prototype.doFocus=function(Gkp,Mnb){this.doEvent(xnn.JSXFOCUS,{objEVENT:Gkp});};xnn.prototype.doKeyDown=function(cdp,jhb){var Mwl=false;if(this.hasHotKey())Mwl=this.checkHotKeys(cdp);if(!Mwl)this.doEvent(xnn.JSXKEYDOWN,{objEVENT:cdp});return Mwl;};xnn.prototype.doKeyPress=function(gHn,mLN){this.doEvent(xnn.JSXKEYPRESS,{objEVENT:gHn});};xnn.prototype.doKeyUp=function(lDn,rHN){this.doEvent(xnn.JSXKEYUP,{objEVENT:lDn});};xnn.prototype.doMouseDown=function(qzn,wDN){this.doEvent(xnn.JSXMOUSEDOWN,{objEVENT:qzn});};xnn.prototype.doMouseOut=function(vwn,BzN){this.doEvent(xnn.JSXMOUSEOUT,{objEVENT:vwn});};xnn.prototype.doMouseOver=function(zsn,GwN){this.doEvent(xnn.JSXMOUSEOVER,{objEVENT:zsn});};xnn.prototype.doMouseUp=function(Fpn,LsN){var GKt=null;this.doEvent(xnn.JSXMOUSEUP,{objEVENT:Fpn});if(Fpn.rightButton()&&(GKt=this.getMenu())!=null){var sfv=this.getServer().getJSXByName(GKt);if(sfv!=null){var zDH=this.doEvent(xnn.MENU,{objEVENT:Fpn,objMENU:sfv});if(zDH!==false){if(zDH instanceof Object&&zDH.objMENU instanceof jsx3.gui.Menu)sfv=zDH.objMENU;sfv.showContextMenu(Fpn,this);}}}};xnn.prototype.setEvent=function(zpC,NhC){this.getEvents()[NhC]=zpC;return this;};xnn.prototype.getEvents=function(){if(this.jsxevents==null)this.jsxevents=new Object();return this.jsxevents;};xnn.prototype.getEvent=function(DzB){return this.jsxevents!=null?this.jsxevents[DzB]:null;};xnn.prototype.hasEvent=function(lsB){return this.jsxevents!=null&&this.jsxevents[lsB]!=null;};xnn.prototype.doEvent=function(tfB,vdl){var tFh=this.getEvent(tfB);if(typeof(this.publish)=="function")this.publish({subject:tfB,context:vdl});return this.eval(tFh,vdl);};xnn.prototype.removeEvent=function(gHz){if(this.jsxevents!=null)delete this.jsxevents[gHz];return this;};xnn.prototype.removeEvents=function(){this.jsxevents={};return this;};xnn.prototype.setCanMove=function(jzg){this.jsxmove=jzg;return this;};xnn.prototype.getCanMove=function(){return this.jsxmove||jsx3.Boolean.FALSE;};xnn.prototype.setCanDrag=function(fJl){this.jsxdrag=fJl;return this;};xnn.prototype.getCanDrag=function(){return this.jsxdrag||jsx3.Boolean.FALSE;};xnn.prototype.setCanDrop=function(MqF){this.jsxdrop=MqF;return this;};xnn.prototype.getCanDrop=function(){return this.jsxdrop||jsx3.Boolean.FALSE;};xnn.prototype.setCanSpy=function(Czs){this.jsxspy=Czs;return this;};xnn.prototype.getCanSpy=function(){return this.jsxspy||jsx3.Boolean.FALSE;};xnn.prototype.getMenu=function(){return this.jsxmenu;};xnn.prototype.setMenu=function(bkp){this.jsxmenu=bkp;return this;};xnn.bvllk=[nFD.BLUR,nFD.CHANGE,nFD.CLICK,nFD.DOUBLECLICK,nFD.FOCUS,nFD.KEYDOWN,nFD.KEYPRESS,nFD.KEYUP,nFD.MOUSEDOWN,nFD.MOUSEOUT,nFD.MOUSEOVER,nFD.MOUSEUP];xnn.BRIDGE_EVENTS_MAP={};xnn.BRIDGE_EVENTS_MAP[nFD.BLUR]="doBlur";xnn.BRIDGE_EVENTS_MAP[nFD.CHANGE]="doChange";xnn.BRIDGE_EVENTS_MAP[nFD.CLICK]="doClick";xnn.BRIDGE_EVENTS_MAP[nFD.DOUBLECLICK]="doDoubleClick";xnn.BRIDGE_EVENTS_MAP[nFD.FOCUS]="doFocus";xnn.BRIDGE_EVENTS_MAP[nFD.KEYDOWN]="doKeyDown";xnn.BRIDGE_EVENTS_MAP[nFD.KEYPRESS]="doKeyPress";xnn.BRIDGE_EVENTS_MAP[nFD.KEYUP]="doKeyUp";xnn.BRIDGE_EVENTS_MAP[nFD.MOUSEDOWN]="doMouseDown";xnn.BRIDGE_EVENTS_MAP[nFD.MOUSEOUT]="doMouseOut";xnn.BRIDGE_EVENTS_MAP[nFD.MOUSEOVER]="doMouseOver";xnn.BRIDGE_EVENTS_MAP[nFD.MOUSEUP]="doMouseUp";xnn.isBridgeEventHandler=function(xCb){if(xnn.BRIDGE_EVENT_HANDLER_MAP==null){xnn.BRIDGE_EVENT_HANDLER_MAP={};for(var dLJ=0;dLJ<xnn.bvllk.length;dLJ++){xnn.BRIDGE_EVENT_HANDLER_MAP["on"+xnn.bvllk[dLJ]]=true;}}return xnn.BRIDGE_EVENT_HANDLER_MAP[xCb];};xnn.prototype.renderHandlers=function(qcG,sGJ){var LNd={};if((qcG==null||!qcG[nFD.KEYDOWN])&&(this.hasHotKey()||this.getAlwaysCheckHotKeys()))LNd[nFD.KEYDOWN]=true;if((qcG==null||!qcG[nFD.MOUSEUP])&&this.getMenu())LNd[nFD.MOUSEUP]=true;var KDk=sGJ?sGJ instanceof Object?sGJ:{}:"";var sHF=this.instanceOf(jsx3.gui.Painted);for(var hvG=0;hvG<xnn.bvllk.length;hvG++){var PGH=xnn.bvllk[hvG];var CMF="on"+PGH;var nvf="";var chw=sHF?this.getAttribute(CMF):null;if(chw){nvf=nvf+chw.replace(/\"/g,"&quot;");if(!chw.match(/;\s*$/))nvf=nvf+";";}var LFp=qcG&&qcG[PGH]||LNd[PGH];if(LFp){if(typeof(LFp)!="string")LFp=xnn.BRIDGE_EVENTS_MAP[PGH];nvf=nvf+("jsx3.GO('"+this.getId()+"').bridge(event,this,'"+LFp+"');");}if(nvf){if(sGJ)KDk[CMF]=nvf;else KDk=KDk+(" "+CMF+"=\""+nvf+"\"");}}return KDk;};xnn.prototype.renderHandler=function(NBK,Btv,KcK){var pwJ="on"+NBK;var Ndj="";if(KcK){var CDP=this.getAttribute(pwJ);if(CDP){Ndj=Ndj+CDP;if(!CDP.match(/;\s*$/))Ndj=Ndj+";";}}return " "+pwJ+"=\""+Ndj+"jsx3.GO('"+this.getId()+"').bridge(event,this,'"+Btv+"');\"";};xnn.prototype.bridge=function(Htf,gkx,hgv){var vBd=this[hgv];if(vBd){vBd.call(this,jsx3.gui.Event.wrap(Htf),gkx);}else{throw new jsx3.Exception("no method "+hgv+" on DOM object of id "+objJSX.getId());}};xnn.beginMove=function(Lkf,dpF,crs,jss){var jwh=dpF.document;jsx3.EventHelp.objMyRange=jwh.selection.createRange();var fsc=Lkf.getTrueX();var cDz=dpF.offsetLeft;jsx3.EventHelp.constrainY=jss;jsx3.EventHelp.xOff=cDz-fsc;var Cdb=Lkf.getTrueY();var zpP=dpF.offsetTop;jsx3.EventHelp.constrainX=crs;jsx3.EventHelp.yOff=zpP-Cdb;jsx3.EventHelp.curDragObject=dpF;jsx3.EventHelp.FLAG=1;jsx3.EventHelp.beginTrackMouse();dpF.setCapture();Lkf.cancelReturn();Lkf.cancelBubble();};xnn.beginMoveConstrained=function(HFd,NJD,dhs){var fdh=NJD.document;jsx3.EventHelp.objMyRange=fdh.selection.createRange();jsx3.EventHelp.startX=HFd.getTrueX();jsx3.EventHelp.startY=HFd.getTrueY();jsx3.EventHelp.xOff=NJD.offsetLeft;jsx3.EventHelp.yOff=NJD.offsetTop;jsx3.EventHelp.dragRounder=dhs;jsx3.EventHelp.curDragObject=NJD;jsx3.EventHelp.FLAG=3;jsx3.EventHelp.beginTrackMouse();NJD.setCapture();HFd.cancelReturn();HFd.cancelBubble();};xnn.endMove=function(nsD){nsD.releaseCapture();};xnn.prototype.doBeginMove=function(xkd,DnD){if(DnD==null)DnD=this.getRendered();var Jvg=DnD.document;var Lng=this.doEvent(xnn.BEFORE_MOVE,{objEVENT:xkd});var LPJ=Lng===false;if(DnD!=null&&!LPJ){DnD.style.zIndex=this.getServer().ZRANGE[jsx3.app.Server.Z_DRAG]++;jsx3.EventHelp.objMyRange=Jvg.selection.createRange();var jcN=xkd.getTrueX();var gnx=DnD.offsetLeft;if(Lng&&Lng.bCONSTRAINY)jsx3.EventHelp.constrainY=true;jsx3.EventHelp.xOff=gnx-jcN;var GBL=xkd.getTrueY();var DMv=DnD.offsetTop;if(Lng&&Lng.bCONSTRAINX)jsx3.EventHelp.constrainX=true;jsx3.EventHelp.yOff=DMv-GBL;jsx3.EventHelp.curDragObject=DnD;jsx3.EventHelp.FLAG=1;jsx3.EventHelp.beginTrackMouse();DnD.setCapture();}};xnn.prototype.doEndMove=function(fnc,lrC){if(lrC==null)lrC=this.getRendered();if(lrC!=null){lrC.style.zIndex=this.getZIndex();lrC.releaseCapture();this.setLeft(lrC.style.pixelLeft);this.setTop(lrC.style.pixelTop);this.doEvent(xnn.AFTER_MOVE,{objEVENT:fnc});}};xnn.prototype.doDrag=function(DJb,KMB,nlc,bwb){DJb.cancelBubble();if(KMB==null){KMB=DJb.srcElement();while(KMB!=null&&KMB.JSXDragId==null){KMB=KMB.parentElement;if(KMB=KMB.document.getElementsByTagName("BODY")[0])KMB=null;}if(KMB==null)return;}var lnc=KMB.JSXDragId;var HCJ=KMB.JSXDragType;if(bwb==null)bwb={};bwb.strDRAGID=KMB.JSXDragId;bwb.strDRAGTYPE=KMB.JSXDragType;bwb.objGUI=KMB;bwb.objEVENT=DJb;if(this.doEvent(xnn.DRAG,bwb)===false)return;jsx3.EventHelp.DRAGTYPE=bwb.strDRAGTYPE;jsx3.EventHelp.DRAGID=bwb.strDRAGID;jsx3.EventHelp.JSXID=this;if(nlc==null)nlc=jsx3.EventHelp.drag;var lCs=nlc(KMB,this,jsx3.EventHelp.DRAGTYPE,jsx3.EventHelp.DRAGID);if(lCs==null){return false;}else{jsx3.EventHelp.dragItemHTML=lCs;jsx3.EventHelp.FLAG=2;jsx3.EventHelp.beginTrackMouse();}jsx3.EventHelp.constrainX=false;jsx3.EventHelp.constrainY=false;};xnn.prototype.doDrop=function(ssN,Pwz,qdr){if(jsx3.EventHelp.DRAGID!=null){var GHw=jsx3.EventHelp.JSXID;var CjN=jsx3.EventHelp.DRAGID;var lPG=jsx3.EventHelp.DRAGTYPE;var tMN={objEVENT:ssN,objSOURCE:GHw,strDRAGID:CjN,strDRAGTYPE:lPG};if(qdr==jsx3.EventHelp.ONDROP&&ssN.ctrlKey()){tMN.objGUI=ssN.srcElement();this.doEvent(xnn.CTRL_DROP,tMN);jsx3.EventHelp.reset();}else{if(qdr==jsx3.EventHelp.ONDROP){tMN.objGUI=ssN.srcElement();this.doEvent(xnn.DROP,tMN);jsx3.EventHelp.reset();}else{if(qdr==jsx3.EventHelp.ONBEFOREDROP){tMN.objGUI=ssN.toElement();this.doEvent(xnn.BEFORE_DROP,tMN);}else{if(qdr==jsx3.EventHelp.ONCANCELDROP){tMN.objGUI=ssN.fromElement();this.doEvent(xnn.CANCEL_DROP,tMN);}}}}}};xnn.prototype.doSpyOver=function(hFM,nJP,srM){var fLd=hFM.getTrueX();var Nkd=hFM.getTrueY();if(this._jsxspytimeout)return;if(srM==null)srM={};srM.objEVENT=hFM;var Kfr=this;this._jsxspytimeout=window.setTimeout(function(){Kfr._jsxspytimeout=null;var kjl=Kfr.doEvent(xnn.SPYGLASS,srM);if(kjl)Kfr.showSpy(kjl,fLd,Nkd);},jsx3.EventHelp.SPYDELAY);};xnn.prototype.doSpyOut=function(GmM,MqP){window.clearTimeout(this._jsxspytimeout);this._jsxspytimeout=null;xnn.hideSpy();};xnn.prototype.showSpy=function(zPl,CsG,jJK){if(zPl!=null){xnn.hideSpy();zPl="<span onmouseout=\"if (event.toElement != this.children(0)) jsx3.gui.Interactive.hideSpy();\" class=\"jsx30spyglassbuffer\"><span id=\"_jsxspychild\" class=\"jsx30spyglass\">"+zPl+"</span></span>";var jxK=new jsx3.gui.Heavyweight("_jsxspy",this);jxK.setHTML(zPl);jxK.addRule(CsG,"W",-2,"X");jxK.addRule(CsG,"E",12,"X");jxK.addRule(null,"W",-24,"X");jxK.addRule(jJK,"N",-2,"Y");jxK.addRule(jJK,"S",12,"Y");jxK.addRule(null,"N",-224,"Y");jxK.setOverflow(jsx3.gui.Block.OVERFLOWEXPAND);jxK.show();var Pqx=jxK.getRendered();var bDf=Pqx.document.getElementsByTagName("BODY")[0];if((myHeight=bDf.offsetHeight-(Pqx.children(0).offsetHeight+Pqx.style.pixelTop))<0)Pqx.style.pixelTop=Pqx.style.pixelTop+myHeight;if(Pqx.style.pixelWidth+Pqx.style.pixelLeft>bDf.offsetWidth)jxK.applyRules("X");}};xnn.hideSpy=function(){if(objGUI=jsx3.gui.Heavyweight.GO("_jsxspy"))objGUI.destroy();};xnn.prototype.getSpyStyles=function(){if(this.jsxspystylekeys==null)return {textDecoration:"underline"};var LgF=(this.jsxspystylekeys||"").split(/ *; */);var HKK=(this.jsxspystylevalues||"").split(/ *; */);var Plk={};for(var pHw=0;pHw<LgF.length;pHw++)Plk[LgF[pHw]]=HKK[pHw];return Plk;};xnn.prototype.setSpyStyles=function(qJb){objCSS=qJb.split(/ *; */);var nJn="";var knL="";var Nzv=/(-\S)/gi;for(var gsw=0;gsw<objCSS.length;gsw++){var Fzd=objCSS[gsw].split(/ *: */);if(Fzd&&Fzd.length==2){var Krp=Fzd[0].replace(Nzv,function(CxF,JPF){return JPF.substr(1).toUpperCase();});nJn=nJn+(Krp+";");knL=knL+(Fzd[1]+";");}}if(nJn.length>0){this.jsxspystylekeys=nJn;this.jsxspystylevalues=knL;}else{delete this.jsxspystylekeys;delete this.jsxspystylevalues;}delete this._jsxzddG;delete this._jsxnJrC;};xnn.prototype.applySpyStyle=function(zfw){if(this._jsxzddG==null)this._jsxzddG=this.getSpyStyles();if(this._jsxnJrC==null){this._jsxnJrC={};for(var MDx in this._jsxzddG)this._jsxnJrC[MDx]=zfw.style[MDx];}for(var MDx in this._jsxzddG)zfw.style[MDx]=this._jsxzddG[MDx];};xnn.prototype.removeSpyStyle=function(lBv){for(var xmx in this._jsxnJrC)lBv.style[xmx]=this._jsxnJrC[xmx];};xnn.prototype.checkHotKeys=function(jnJ){if(this._jsxjpvx==null)return false;if(jnJ.isModifierKey())return false;var rzG=false;for(var qpw in this._jsxjpvx){var rxr=this._jsxjpvx[qpw];if(rxr instanceof jsx3.gui.HotKey){if(rxr.isDestroyed()){delete this._jsxjpvx[qpw];continue;}else{if(!rxr.isEnabled()){continue;}}if(rxr.isMatch(jnJ)){rxr.invoke(this,[jnJ]);rzG=true;}}}if(rzG){jnJ.cancelBubble();jnJ.cancelReturn();jnJ.cancelKey();}return rzG;};xnn.prototype.registerHotKey=function(CJJ,bvB,wNH,FvD,zNq){var jmg=typeof(CJJ)=="function"?CJJ:this[CJJ];if(!(jmg instanceof Function))throw new jsx3.IllegalArgumentException("vntCallback",CJJ);var vnr=new jsx3.gui.HotKey(jmg,bvB,wNH,FvD,zNq);if(this._jsxjpvx==null)this._jsxjpvx={length:0};var NpK=vnr.getKey();this._jsxjpvx.length+=(this._jsxjpvx[NpK]?0:1);this._jsxjpvx[NpK]=vnr;return vnr;};xnn.prototype.hasHotKey=function(){return this._jsxjpvx!=null&&this._jsxjpvx.length>0;};xnn.prototype.setAlwaysCheckHotKeys=function(ncB){this.jsxalwayscheckhk=ncB;return this;};xnn.prototype.getAlwaysCheckHotKeys=function(){return this.jsxalwayscheckhk;};xnn.prototype.clearHotKeys=function(){this._jsxjpvx=null;};xnn.MISC_KEY_CODES={39:222,44:188,45:189,46:190,47:191,59:186,61:187,91:219,92:220,93:221,96:192};xnn.getKeyDownCharCode=function(gmp){var xfK=gmp.charCodeAt(0);var GCx=null;if(xfK>=65&&xfK<=90)GCx=xfK;else{if(xfK>=97&&xfK<=122)GCx=xfK-("a".charCodeAt(0)-"A".charCodeAt(0));else{if(xfK>=48&&xfK<=57)GCx=xfK;else{if(xnn.MISC_KEY_CODES[xfK])GCx=xnn.MISC_KEY_CODES[xfK];else{if(gmp=="esc")GCx=27;}}}}return GCx;};xnn.getVersion=function(){return "3.00.00";};xnn.prototype.isOldEventProtocol=function(){var GbN=this.getServer();return GbN&&GbN.getEnv("EVENTSVERS")<3.1;};});jsx3.gui.Event.subscribe(jsx3.gui.Event.MOUSEDOWN,jsx3.gui.Interactive.hideSpy);
jsx3.Class.defineInterface("jsx3.gui.Alerts",null,function(mbl){var bqn=jsx3.gui.Interactive;mbl.prototype.getAlertsParent=jsx3.Method.newAbstract();mbl.prototype.alert=function(JNm,jKb,xfM,GGN,mfF){var bnk=this.getAlertsParent().load("JSX/xml/components/dialog_alert.xml");var JMM=bnk.getDescendantOfName("ok");if(JNm!=null)bnk.getDescendantOfName("title").setText(JNm,true);if(jKb!=null)bnk.getDescendantOfName("message").setText(jKb,true);if(GGN===false)bnk.hideButton();else{if(GGN!=null)JMM.setText(GGN,true);}if(xfM!=null){JMM._onExecute=xfM;JMM.setEvent("this._onExecute(this.getAncestorOfType(jsx3.gui.Dialog));",bqn.EXECUTE);}this.configureAlert(bnk,mfF);bnk.repaint();window.setTimeout(function(){bnk.focus();},1);return bnk;};mbl.prototype.prompt=function(Cjm,cfb,rnL,fnj,zbM,nfK,gnD){var Jwj=this.getAlertsParent().load("JSX/xml/components/dialog_prompt.xml");var ChM=Jwj.getDescendantOfName("ok");var fjp=Jwj.getDescendantOfName("cancel");if(Cjm!=null)Jwj.getDescendantOfName("title").setText(Cjm,true);if(cfb!=null)Jwj.getDescendantOfName("message").setText(cfb,true);if(zbM!=null)ChM.setText(zbM,true);if(nfK!=null)fjp.setText(nfK,true);if(rnL!=null){ChM._onExecute=rnL;ChM.setEvent("var d = this.getAncestorOfType(jsx3.gui.Dialog); this._onExecute(d, d.getDescendantOfName('value').getValue());",bqn.EXECUTE);}if(fnj!=null){fjp._onExecute=fnj;fjp.setEvent("this._onExecute(this.getAncestorOfType(jsx3.gui.Dialog));",bqn.EXECUTE);}this.configureAlert(Jwj,gnD);Jwj.repaint();window.setTimeout(function(){Jwj.getDescendantOfName("value").focus();},1);return Jwj;};mbl.prototype.confirm=function(kml,xhN,MqK,zqh,hfM,JhJ,lpm,DrJ,MfL,BqC){var qzh=this.getAlertsParent().load("JSX/xml/components/dialog_confirm.xml");var klL=qzh.getDescendantOfName("ok");var zln=qzh.getDescendantOfName("cancel");var sKH=qzh.getDescendantOfName("no");var hqj=[klL,zln,sKH];lpm=lpm!=null?lpm-1:0;if(kml!=null)qzh.getDescendantOfName("title").setText(kml,true);if(xhN!=null)qzh.getDescendantOfName("message").setText(xhN,true);if(hfM!=null)klL.setText(hfM,true);if(JhJ!=null)zln.setText(JhJ,true);if(zqh!=null){zln._onExecute=zqh;zln.setEvent("this._onExecute(this.getAncestorOfType(jsx3.gui.Dialog));",bqn.EXECUTE);}if(MqK!=null){klL._onExecute=MqK;klL.setEvent("this._onExecute(this.getAncestorOfType(jsx3.gui.Dialog));",bqn.EXECUTE);}if(DrJ!=null||MfL!=null||lpm==3){if(MfL)sKH.setText(MfL);if(DrJ){sKH._onExecute=DrJ;sKH.setEvent("this._onExecute(this.getAncestorOfType(jsx3.gui.Dialog));",bqn.EXECUTE);}sKH.setDisplay(jsx3.gui.Block.DISPLAYBLOCK,true);}var MxG=hqj[lpm];if(MxG){MxG.setFontWeight("bold").repaint();qzh.registerHotKey(function(xJn){if(xJn.enterKey()){this.getDescendantOfName(MxG.getName()).doClick();xJn.cancelBubble();}},jsx3.gui.Event.KEY_ENTER,false,false,false);}this.configureAlert(qzh,BqC);qzh.repaint();window.setTimeout(function(){qzh.focus();},1);return qzh;};mbl.prototype.configureAlert=function(mHC,NdB){if(NdB==null)return;if(NdB.width)mHC.setWidth(NdB.width,false);if(NdB.height)mHC.setHeight(NdB.height,false);if(NdB.noTitle)mHC.removeChild(mHC.getChild("title"));};});
jsx3.Class.defineClass("jsx3.app.Settings",null,null,function(hnp){hnp.DOMAIN_SYSTEM=1;hnp.DOMAIN_PROJECT=2;hnp.DOMAIN_ADDIN=3;hnp.PATH_SYSTEM="JSX/settings.xml";hnp.PATH_PROJECT="/config.xml";hnp.PATH_ADDIN="/config.xml";hnp.CACHE_KEY="JSX_SETTINGS";hnp.prototype.init=function(CJt,Pcg){var cGD=null;var mwD=null;var vhb=null;if(CJt==hnp.DOMAIN_SYSTEM){cGD=jsx3.CACHE;mwD=hnp.CACHE_KEY;vhb=hnp.PATH_SYSTEM;}else{if(CJt==hnp.DOMAIN_PROJECT){if(typeof(Pcg)=="object"){cGD=Pcg.getCache();mwD=hnp.CACHE_KEY;vhb=Pcg.getAppPath()+hnp.PATH_PROJECT;}else{if(typeof(Pcg)=="string"){vhb=Pcg+hnp.PATH_PROJECT;}}}else{if(CJt==hnp.DOMAIN_ADDIN){cGD=jsx3.CACHE;var BwJ=typeof(Pcg)=="object"?Pcg.path:Pcg;mwD=hnp.CACHE_KEY+"_addin_"+BwJ;vhb=BwJ+hnp.PATH_ADDIN;}else{throw new jsx3.IllegalArgumentException("intDomain",CJt);}}}this.initWith(cGD,mwD,jsx3.resolveURI(vhb));};hnp.prototype.initWith=function(PbN,dgK,xsh){var zLs=null;if(PbN!=null)zLs=PbN.getDocument(dgK,true);if(zLs==null){zLs=new jsx3.xml.Document();try{zLs.load(xsh);if(zLs.getError()!=null&&zLs.getError().code!="0")zLs=jsx3.xml.CDF.newDocument();}catch(e){zLs=jsx3.xml.CDF.newDocument();}if(PbN!=null){PbN.setDocument(dgK,zLs,true);}}this.path=xsh;this.doc=zLs;this.root=zLs.getRootNode();};hnp.prototype.get=function(pqJ){var ttk=this.getNode.apply(this,arguments);if(ttk==null)return null;return this.getRecordValue(ttk);};hnp.prototype.getNode=function(sgJ){var xkk=this.root;for(var qFb=0;xkk!=null&&qFb<arguments.length;qFb++){if(qFb>0&&xkk.getAttribute("type")!="map")return null;xkk=xkk.selectSingleNode("./record[@jsxid='"+arguments[qFb]+"']");}return xkk;};hnp.prototype.getRecordValue=function(Ckl){var fgn=Ckl.getAttribute("type");if(fgn=="string"){return Ckl.getValue();}else{if(fgn=="number"){return Number(Ckl.getValue());}else{if(fgn=="boolean"){return Ckl.getValue()=="true"?true:false;}else{if(fgn=="array"){var Pcd=Ckl.selectNodes("./record");var glM=new Array(Pcd.getLength());for(var PbN=0;PbN<glM.length;PbN++){glM[PbN]=this.getRecordValue(Pcd.getItem(PbN));}return glM;}else{if(fgn=="map"){var Pcd=Ckl.selectNodes("./record");var glM={};for(var PbN=0;PbN<Pcd.getLength();PbN++){var mGC=Pcd.getItem(PbN);glM[mGC.getAttribute("jsxid")]=this.getRecordValue(mGC);}return glM;}else{return Ckl.getValue();}}}}}};hnp.prototype.toString=function(){return "[jsx3.app.Settings "+this.path+"]";};});
jsx3.Class.defineClass("jsx3.app.Browser",null,null,function(qNq){qNq.getCaller=function(qFP){var BPn=qFP+1;for(var Cxd=arguments.caller;Cxd!=null;Cxd=Cxd.caller){if(--BPn>=0)continue;return Cxd.callee;}return null;};qNq.getStack=function(ctP){var DLk=[];var czm=ctP+1;for(var dPc=arguments.caller;dPc!=null;dPc=dPc.caller){if(--czm>=0)continue;DLk.push(dPc.callee);}return DLk;};qNq.copyToClipboard=function(fKq){window.clipboardData.setData("text",fKq);};});
jsx3.Class.defineClass("jsx3.util.Collection",null,null,function(Hlf){Hlf.prototype.init=function(qgP,HrJ){this.collection=qgP;this.maxLen=qgP.length;this.iterator=-1;if(HrJ!=null&&typeof(HrJ)=="function"){this.wrapperClass=HrJ;this.bWrap=true;}};Hlf.prototype.reset=function(){this.iterator=-1;return this;};Hlf.prototype.next=function(){this.iterator=this.iterator+1;if(this.iterator<this.maxLen){var DKj=this.collection.item(this.iterator);return this.bWrap?new this.wrapperClass(DKj):DKj;}};Hlf.prototype.move=function(dtM){this.iterator=dtM;return this;};Hlf.prototype.hasNext=function(){return this.getIndex()<this.getLength()-1;};Hlf.prototype.getIndex=function(){return this.iterator;};Hlf.prototype.getItem=function(dFL){if(dFL<this.maxLen){var MHh=this.collection.item(dFL);return this.bWrap?new this.wrapperClass(MHh):MHh;}};Hlf.prototype.getLength=function(){return this.maxLen;};Hlf.prototype.toArray=function(){var fcc=new Array(this.getLength());for(var dzb=0;dzb<fcc.length;dzb++){fcc[dzb]=this.getItem(dzb);}return fcc;};Hlf.getVersion=function(){return "3.0.0";};});
jsx3.Class.defineClass("jsx3.xml.Entity",null,null,function(JJg){JJg.TYPEELEMENT=1;JJg.TYPEATTRIBUTE=2;JJg.TYPETEXT=3;JJg.TYPECDATA=4;JJg.prototype.init=function(dFs){this.hwbf=dFs;this.jgfc=dFs.nodeType;this.vPmG=new Object();if(!(this.jgfc>=1&&this.jgfc<=4)){this.setError("1","This jsx3.xml.Entity instance references an entity in the browser's native parser that is not a supported node type.");}else{this.setError("0","");}};JJg.prototype.createNode=function(vsc,gHN,KMK){var PxD=this.hwbf.ownerDocument;if(KMK==null)KMK="";if(vsc==JJg.TYPECDATA){var wCh=PxD.createCDATASection(gHN);}else{var wCh=PxD.createNode(vsc,gHN,KMK);}return new JJg(wCh);};JJg.prototype.cloneNode=function(fft){if(this.jgfc==JJg.TYPEELEMENT){var mKh=this.hwbf.cloneNode(fft);return new JJg(mKh);}else{this.setError("3","Clone Node Error. This object could not be cloned, because it is not of type, jsx3.xml.Entity.TYPEELEMENT");return;}};JJg.prototype.appendChild=function(chr){if(this.hwbf!=null&&chr.hwbf!=null){this.hwbf.appendChild(chr.hwbf);}else{this.setError("2","Append Child Error. This object and/or the reference object contained null references to respective native XML entities");}return this;};JJg.prototype.insertBefore=function(rMN,qkn){if(this.jgfc==JJg.TYPEELEMENT&&qkn.jgfc==JJg.TYPEELEMENT&&rMN.jgfc==JJg.TYPEELEMENT){if(qkn.getParent()!=null&&qkn.getParent().equals(this)){return new JJg(this.hwbf.insertBefore(rMN.hwbf,qkn.hwbf));}}return null;};JJg.prototype.replaceNode=function(zPN,Dtm){if(this.jgfc==JJg.TYPEELEMENT&&Dtm.jgfc==JJg.TYPEELEMENT&&zPN.jgfc==JJg.TYPEELEMENT){if(Dtm.getParent()!=null&&Dtm.getParent().equals(this)&&Dtm.getParent()!=null&&Dtm.getParent().equals(this)){return new JJg(this.hwbf.replaceChild(zPN.hwbf,Dtm.hwbf));}}return null;};JJg.prototype.setAttribute=function(mbD,LHn){if(LHn!=null)this.hwbf.setAttribute(mbD,LHn);else this.removeAttribute(mbD);return this;};JJg.prototype.getAttribute=function(kCD){return this.hwbf.getAttribute(kCD);};JJg.prototype.getAttributeNode=function(PrD){if(this.hwbf!=null&&this.jgfc==JJg.TYPEELEMENT){var GdP=this.hwbf.getAttributeNode(PrD);if(GdP!=null)return new JJg(GdP);}};JJg.prototype.setAttributeNode=function(DFx){this.hwbf.setAttributeNode(DFx.hwbf);return this;};JJg.prototype.getAttributes=function(){if(this.hwbf!=null&&this.jgfc==JJg.TYPEELEMENT)return new jsx3.util.Collection(this.hwbf.attributes,JJg);else return null;};JJg.prototype.getRootNode=function(){return new JJg(this.hwbf.ownerDocument.documentElement);};JJg.prototype.getParent=function(){return this.hwbf!=this.hwbf.ownerDocument.documentElement?new JJg(this.hwbf.parentNode):null;};JJg.prototype.getChildNodes=function(){return new jsx3.util.Collection(this.hwbf.childNodes,JJg);};JJg.prototype.removeChild=function(LlM){return LlM.getParent()!=null&&LlM.getParent().equals(this)?new JJg(this.hwbf.removeChild(LlM.hwbf)):null;};JJg.prototype.removeChildren=function(){var FMN=this.hwbf.childNodes;var rwc=FMN.length;for(var FLL=rwc-1;FLL>=0;FLL--){this.hwbf.removeChild(FMN.item(FLL));}};JJg.prototype.removeAttribute=function(vFM){if(this.jgfc==JJg.TYPEELEMENT)this.hwbf.removeAttribute(vFM);};JJg.prototype.removeAttributeNode=function(Bbw){this.hwbf.removeAttributeNode(Bbw.hwbf);return this;};JJg.prototype.equals=function(Nkm){return Nkm.hwbf==this.hwbf;};JJg.prototype.getNodeType=function(){return this.jgfc;};JJg.prototype.getNodeName=function(){return this.hwbf.nodeName;};JJg.prototype.getNamespaceURI=function(){return this.hwbf.namespaceURI;};JJg.prototype.getBaseName=function(){return this.hwbf.baseName;};JJg.prototype.getPrefix=function(){return this.hwbf.prefix;};JJg.prototype.getXML=function(){return this.hwbf.xml;};JJg.prototype.toString=function(){if(this.hwbf!=null){return this.hwbf.xml?this.hwbf.xml:this.hwbf.outerHTML?this.hwbf.outerHTML:"@jsx3.xml.Entity (unknown type)";}else{var Khv=this.getError();if(Khv){return "@jsx3.xml.Entity (error: "+Khv.code+" "+Khv.description+" )";}else{return "@jsx3.xml.Entity (no data)";}}};JJg.prototype.getValue=function(){return this.jgfc==JJg.TYPEELEMENT?this.hwbf.text:this.hwbf.nodeValue;};JJg.prototype.setValue=function(MMh){if(MMh==null)MMh="";if(this.jgfc==JJg.TYPEELEMENT){this.hwbf.text=MMh;}else{this.hwbf.nodeValue=MMh;}return this;};JJg.prototype.getNative=function(){return this.hwbf;};JJg.prototype.selectSingleNode=function(mnm){var Pwt=this.hwbf.selectSingleNode(mnm);return Pwt==null?null:new JJg(Pwt);};JJg.prototype.selectNodes=function(ffm){var xHr=this.hwbf.selectNodes(ffm);return xHr==null?null:new jsx3.util.Collection(xHr,JJg);};JJg.prototype.getFirstChild=function(){if(this.jgfc==JJg.TYPEELEMENT){var Mft=this.hwbf.firstChild;if(Mft!=null)return new JJg(Mft);}return null;};JJg.prototype.getLastChild=function(){if(this.jgfc==JJg.TYPEELEMENT){var nJs=this.hwbf.lastChild;if(nJs!=null)return new JJg(nJs);}return null;};JJg.prototype.getPreviousSibling=function(){if(this.jgfc==JJg.TYPEELEMENT){var Cxs=this.hwbf.previousSibling;if(Cxs!=null)return new JJg(Cxs);}return null;};JJg.prototype.getNextSibling=function(){if(this.jgfc==JJg.TYPEELEMENT){var dns=this.hwbf.nextSibling;if(dns!=null)return new JJg(dns);}return null;};JJg.prototype.transformNode=function(tNn,jms){var HJz=new jsx3.xml.Processor(this,tNn);if(jms)HJz.setParams(jms);return HJz.transform();};JJg.prototype.setError=function(Dbp,Fbl){if(this.vPmG==null)this.vPmG=new Object();this.vPmG.code=Dbp;this.vPmG.description=Fbl;};JJg.prototype.getError=function(){return this.vPmG;};JJg.prototype.hasError=function(){return this.vPmG!=null&&this.vPmG.code!="0";};JJg.prototype.getOwnerDocument=function(){return new jsx3.xml.Document(this.hwbf.ownerDocument);};JJg.getVersion=function(){return "3.0.0";};});
jsx3.Class.defineClass("jsx3.xml.Document",jsx3.xml.Entity,null,function(sdr){var CGg=jsx3.xml.Entity;sdr.prototype.init=function(zsF){if(zsF==null){try{this.mLwN=new ActiveXObject(jsx3.XMLREGKEY);}catch(e){this.setError("XDOC1","Error instancing the native XML parser. This version of the MSXML parser is identified in the registry as "+jsx3.XMLREGKEY+".");delete this.mLwN;}}else{this.mLwN=zsF;this.jsxsuper(zsF.documentElement);}};sdr.prototype.load=function(pGb){try{this.mLwN.async=this.getAsync();this.mLwN.load(jsx3.resolveURI(pGb));if(typeof(this.mLwN.parseError)!="undefined"&&this.mLwN.parseError.errorCode!=0)throw "native parse error";CGg.prototype.init.call(this,this.mLwN.documentElement);this.setError("0","");}catch(e){if(typeof(this.mLwN)!="undefined"&&typeof(this.mLwN.parseError)!="undefined"){var MLM=this.mLwN.parseError;var HCN="Error Code:"+MLM.errorCode;HCN=HCN+(", File Position:"+MLM.filepos);HCN=HCN+(", Line:"+MLM.line);HCN=HCN+(", Char:"+MLM.linepos);HCN=HCN+(", Reason:"+MLM.reason);HCN=HCN+(", Source Text:"+MLM.srcText.trim(60));HCN=HCN+(", URL:"+MLM.url);this.setError(MLM.errorCode,HCN);}else{this.setError(-1,"Unknown Error");}}return this;};sdr.prototype.loadXML=function(Jsd){try{this.mLwN.loadXML(Jsd);CGg.prototype.init.call(this,this.mLwN.documentElement);this.setError("0","");}catch(e){this.setError("XDOC3","Reason: "+this.mLwN.parseError.reason+", Line: "+this.mLwN.parseError.line+", Char: "+this.mLwN.parseError.linepos+", Source Text: "+this.mLwN.parseError.srcText.doTruncate(70));}return this;};sdr.prototype.createDocumentElement=function(tBM,ksJ){if(ksJ){var Cpz=this.mLwN.createNode(jsx3.xml.Entity.TYPEELEMENT,tBM,ksJ);}else{var Cpz=this.mLwN.createElement(tBM);}this.mLwN.appendChild(Cpz);jsx3.xml.Entity.prototype.init.call(this,this.mLwN.documentElement);return new jsx3.xml.Entity(Cpz);};sdr.prototype.createProcessingInstruction=function(rJh,nPP){var bFP=this.mLwN.createProcessingInstruction(rJh,nPP);this.mLwN.appendChild(bFP);};sdr.prototype.setAsync=function(lvC){this.jsxasync=lvC;return this;};sdr.prototype.getAsync=function(fGD){return this.jsxasync==null?false:this.jsxasync;};sdr.prototype.setSelectionLanguage=function(bhK){this.mLwN.setProperty("SelectionLanguage",bhK);return this;};sdr.prototype.getSelectionLanguage=function(){return this.mLwN.getProperty("SelectionLanguage");};sdr.prototype.setSelectionNamespaces=function(Dmm){this.mLwN.setProperty("SelectionNamespaces",Dmm);return this;};sdr.prototype.getSelectionNamespaces=function(kNC){return this.mLwN.getProperty("SelectionNamespaces");};sdr.prototype.cloneDocument=function(){var zdK=new sdr();zdK.loadXML(this.getXML());return zdK;};sdr.prototype.getNativeDocument=function(){return this.mLwN;};sdr.getVersion=function(){return "3.0.0";};});
jsx3.Class.defineClass("jsx3.xml.Processor",null,null,function(kcq){kcq.prototype.init=function(Mjl,bMs,tnF){this.lxGc=Mjl;this.Kkbd=bMs;this.rcnq=tnF;this.PdnG=new Object();};kcq.prototype.setXML=function(sJk){this.lxGc=sJk;return this;};kcq.prototype.setXSL=function(nps){this.Kkbd=nps;return this;};kcq.prototype.setParams=function(KtD){this.rcnq=KtD;return this;};kcq.prototype.transform=function(){var lkD=this.rcnq;if(lkD!=null){var fzj=new ActiveXObject(jsx3.XSLREGKEY);fzj.stylesheet=this.Kkbd.mLwN;var qFk=fzj.createProcessor;qFk.input=this.lxGc.mLwN;for(var qwb in lkD){var KFw="";if(lkD[qwb] instanceof jsx3.xml.Document){KFw=lkD[qwb].getNativeDocument();}else{if(lkD[qwb]!=null){KFw=lkD[qwb].toString();}else{KFw="";}}qFk.addParameter(qwb.toString(),KFw);}qFk.transform();return qFk.output;}else{try{if(this.lxGc.mLwN!=null){var wHw=this.lxGc.getNative().ownerDocument.transformNode(this.Kkbd.getNative());}else{var wHw=this.lxGc.getNative().transformNode(this.Kkbd.getNative());}return wHw;}catch(e){if(typeof(this.lxGc.getNative().parseError)!="undefined"&&this.lxGc.getNative().parseError.errorCode!=0){var npH=this.lxGc.getNative().parseError;var jgJ="Error Code:"+npH.errorCode;jgJ=jgJ+(", File Position:"+npH.filepos);jgJ=jgJ+(", Line:"+npH.line);jgJ=jgJ+(", Line Position:"+npH.linepos);jgJ=jgJ+(", Reason:"+npH.reason);jgJ=jgJ+(", Source Text:"+npH.srcText.doTrim(60));jgJ=jgJ+(", URL:"+npH.url);this.setError(npH.errorCode,jgJ);}else{this.setError("8","JavaScript Error: "+e.message);}return null;}}};kcq.prototype.setError=function(gHP,hHt){if(this.PdnG==null)this.PdnG=new Object();this.PdnG.code=gHP;this.PdnG.description=hHt;};kcq.prototype.getError=function(){return this.PdnG;};kcq.prototype.hasError=function(){return this.PdnG!=null&&this.PdnG.code!="0";};});
jsx3.Class.defineClass("jsx3.util.Logger",null,null,function(bwk){bwk.OFF=0;bwk.FATAL=1;bwk.ERROR=2;bwk.WARN=3;bwk.INFO=4;bwk.DEBUG=5;bwk.TRACE=6;bwk.PjKc=bwk.FATAL;bwk.pPnB=bwk.TRACE;bwk.GLOBAL=null;bwk.getLogger=function(pcG){var bCs=bwk.Manager.getManager();var jtL=bCs.getLogger(pcG);if(jtL==null){jtL=new bwk(pcG);bCs.addLogger(jtL);}return jtL;};bwk.lfpd=[null,"FATAL","ERROR","WARN","INFO","DEBUG","TRACE"];bwk.levelAsString=function(PNc){return bwk.lfpd[PNc]||"";};bwk.prototype.mFGJ=null;bwk.prototype.wfwc=null;bwk.prototype.FMBz=null;bwk.prototype.jntp=bwk.INFO;bwk.prototype.qvPv=null;bwk.prototype.pNHD=true;bwk.prototype.GbpN=null;bwk.prototype.init=function(KfF){this.mFGJ=KfF;};bwk.prototype.getName=function(){return this.mFGJ;};bwk.prototype.addHandler=function(wKc){if(this.wfwc==null)this.wfwc=[];this.wfwc.push(wKc);};bwk.prototype.removeHandler=function(dCc){if(this.wfwc!=null)this.wfwc.remove(dCc);};bwk.prototype.getLevel=function(){return this.FMBz;};bwk.prototype.getEffectiveLevel=function(){return this.jntp;};bwk.prototype.setLevel=function(Nlb){Nlb=Math.max(bwk.OFF,Math.min(bwk.pPnB,Nlb));this.FMBz=Nlb;this.Ltvw();};bwk.prototype.Ltvw=function(){var nxz=null;if(this.FMBz!=null){nxz=this.FMBz;}else{if(this.qvPv!=null){nxz=this.qvPv.jntp;}else{nxz=bwk.prototype.jntp;}}if(nxz!=this.jntp){this.jntp=nxz;if(this.GbpN!=null){for(var GvN=0;GvN<this.GbpN.length;GvN++)this.GbpN[GvN].Ltvw();}}};bwk.prototype.getParent=function(){return this.qvPv;};bwk.prototype.setParent=function(HpN){if(this.qvPv!=null)this.qvPv.GbpN.remove(this);this.qvPv=HpN;if(this.qvPv!=null){if(this.qvPv.GbpN==null)this.qvPv.GbpN=[];this.qvPv.GbpN.push(this);}this.Ltvw();};bwk.prototype.getUseParentHandlers=function(){return this.pNHD;};bwk.prototype.setUseParentHandlers=function(Kcd){this.pNHD=Kcd;};bwk.prototype.rNJr=function(FnD){var bpH=this;var jLd=FnD.getLevel();while(bpH!=null){if(bpH.wfwc!=null){for(var pnL=0;pnL<bpH.wfwc.length;pnL++){var klb=bpH.wfwc[pnL];if(klb.isLoggable(jLd))klb.handle(FnD);}}if(!bpH.getUseParentHandlers())break;bpH=bpH.getParent();}};bwk.prototype.log=function(fcM,lDH,bfP){fcM=Math.max(fcM,bwk.PjKc);if(this.jntp<fcM)return;var LPJ=bfP instanceof Array?bfP:jsx3.Method.argsAsArray(arguments,2);var jxf=new bwk.Record(lDH,LPJ,fcM,this.getName(),jsx3.app.Browser.getCaller(1),null);this.rNJr(jxf);};bwk.prototype.logError=function(nCL,tqH,CBG){nCL=Math.max(nCL,bwk.PjKc);if(this.jntp<nCL)return;var CLf=new bwk.Record(tqH,null,nCL,this.getName(),jsx3.app.Browser.getCaller(1),CBG);this.rNJr(CLf);};bwk.prototype.logStack=function(lqL,rdH){lqL=Math.max(lqL,bwk.PjKc);if(this.jntp<lqL)return;var zPf=new bwk.Record(rdH,null,lqL,this.getName(),jsx3.app.Browser.getStack(1),null);this.rNJr(zPf);};bwk.prototype.isLoggable=function(jdL){jdL=Math.max(jdL,bwk.PjKc);return this.jntp>=jdL;};bwk.prototype.fatal=function(DtG,tKw){if(tKw==null||tKw instanceof Array)this.log(bwk.FATAL,DtG,tKw);else{if(tKw instanceof jsx3.Exception)this.logError(bwk.FATAL,DtG,tKw);else{if(this.jntp>=bwk.FATAL)this.log(bwk.FATAL,DtG,jsx3.Method.argsAsArray(arguments,1));}}};bwk.prototype.error=function(kgG,Nvw){if(Nvw==null||Nvw instanceof Array)this.log(bwk.ERROR,kgG,Nvw);else{if(Nvw instanceof jsx3.Exception)this.logError(bwk.ERROR,kgG,Nvw);else{if(this.jntp>=bwk.ERROR)this.log(bwk.ERROR,kgG,jsx3.Method.argsAsArray(arguments,1));}}};bwk.prototype.warn=function(DFF,thw){if(thw==null||thw instanceof Array)this.log(bwk.WARN,DFF,thw);else{if(thw instanceof jsx3.Exception)this.logError(bwk.WARN,DFF,thw);else{if(this.jntp>=bwk.WARN)this.log(bwk.WARN,DFF,jsx3.Method.argsAsArray(arguments,1));}}};bwk.prototype.info=function(krF,NGv){if(NGv==null||NGv instanceof Array)this.log(bwk.INFO,krF,NGv);else{if(NGv instanceof jsx3.Exception)this.logError(bwk.INFO,krF,NGv);else{if(this.jntp>=bwk.INFO)this.log(bwk.INFO,krF,jsx3.Method.argsAsArray(arguments,1));}}};bwk.prototype.debug=function(DcF,tsv){if(tsv==null||tsv instanceof Array)this.log(bwk.DEBUG,DcF,tsv);else{if(tsv instanceof jsx3.Exception)this.logError(bwk.DEBUG,DcF,tsv);else{if(this.jntp>=bwk.DEBUG)this.log(bwk.DEBUG,DcF,jsx3.Method.argsAsArray(arguments,1));}}};bwk.prototype.trace=function(kCD,Ndv){if(Ndv==null||Ndv instanceof Array)this.log(bwk.TRACE,kCD,Ndv);else{if(Ndv instanceof jsx3.Exception)this.logError(bwk.TRACE,kCD,Ndv);else{if(this.jntp>=bwk.TRACE)this.log(bwk.TRACE,kCD,jsx3.Method.argsAsArray(arguments,1));}}};bwk.prototype.toString=function(){return this.jsxsuper()+" "+this.getName();};jsx3.util.Logger.reset=function(){};bwk.doLog=function(jfv,zJC,Hzk,Bdv){if(Hzk==null)Hzk=bwk.INFO;else{if(Hzk<bwk.INFO)Hzk=bwk.INFO;else Hzk=bwk.DEBUG;}if(bwk.GLOBAL){var mCB=zJC!=null?"("+jfv+") "+zJC:jfv;if(Bdv||Bdv==null)bwk.GLOBAL.logStack(Hzk,mCB,1);else bwk.GLOBAL.log(Hzk,mCB);}};jsx3.util.Logger.logError=function(hzG,bgk){var tjB="";for(var cNF in hzG){if(tjB)tjB=tjB+" ";tjB=tjB+(cNF+":"+hzG[cNF]);}jsx3.util.Logger.doLog("ERRO01",tjB,bgk,false);};jsx3.util.Logger.getMinPriority=function(){return 3;};jsx3.util.Logger.getLog=function(){return [];};jsx3.util.Logger.errorToString=function(nLp){var cmG="";cmG=cmG+("TIME: "+new Date(nLp.timestamp)+"\n");cmG=cmG+("CODE: "+nLp.code+"\n");cmG=cmG+("DESC: "+nLp.description+"\n");return cmG;};jsx3.util.Logger.toString=function(){return "";};});jsx3.Class.defineClass("jsx3.util.Logger.Manager",null,null,function(KJc){var pzJ=jsx3.util.Logger;KJc.hgGq="JSX/logger.xml";KJc.gzmr="global";KJc.BjMM=null;KJc.GsFj=-1;KJc.mBsm=function(){var GjJ=new jsx3.xml.Document();GjJ.load(jsx3.resolveURI(KJc.hgGq));if(GjJ.hasError()){window.alert("Error loading logging manager configuration file: "+GjJ.getError().description);GjJ.loadXML("<configuration/>");}KJc.BjMM=new KJc(GjJ);var tsd=new pzJ(KJc.gzmr);KJc.BjMM.addLogger(tsd);pzJ.GLOBAL=tsd;};KJc.getManager=function(){return KJc.BjMM;};KJc.prototype.fxCJ=null;KJc.prototype.gBpF=null;KJc.prototype.wfwc=null;KJc.prototype.init=function(tpH){this.fxCJ=tpH;this.gBpF={};this.wfwc={};this.zmbq();};KJc.prototype.FlFq=function(hgJ){var GHs=this.zmbq("[@lazy='true' and @class='"+hgJ.getName()+"']");for(var gFB=0;gFB<GHs.length;gFB++){var Ddr=GHs[gFB];var DND=this.getHandler(Ddr);var cBF=this.fxCJ.selectNodes("/configuration/logger[handler-ref/@name='"+Ddr+"']");var LCD=null;while((LCD=cBF.next())!=null){var wPP=LCD.getAttribute("name");var wkr=this.getLogger(wPP);if(wkr!=null){wkr.addHandler(DND);}}}};KJc.prototype.zmbq=function(pNK){var lxf=[];var hzF=this.fxCJ.selectNodes("/configuration/handler"+(pNK!=null?pNK:""));var fqG=null;while((fqG=hzF.next())!=null){var Ksn=fqG.getAttribute("name");if(this.getHandler(Ksn)!=null)continue;var nJH=fqG.getAttribute("class");var qgt=fqG.getAttribute("lazy")=="true";var HvC=jsx3.Class.forName(nJH);if(HvC){var MFz=HvC.newInstance(Ksn);this.rzMk(MFz,fqG);var dbD=fqG.getAttribute("level");if(dbD&&typeof(pzJ[dbD])=="number")MFz.setLevel(pzJ[dbD]);this.addHandler(MFz);lxf.push(Ksn);}else{if(!qgt){throw new jsx3.Exception("error initializing Logger: no handler class "+nJH);}else{this.wfwc[Ksn]=KJc.GsFj;}}}return lxf;};KJc.prototype.rzMk=function(vpv,HDl){var dMG=vpv.getClass();var tjB=HDl.getChildNodes();var Dnp=null;while((Dnp=tjB.next())!=null){if(Dnp.getNodeName()=="property"){var sCm=Dnp.getAttribute("name");var GHJ=Dnp.getAttribute("value");var jdK=Dnp.getAttribute("eval")=="true";var BqG=dMG.getSetter(sCm);if(BqG!=null){if(jdK){try{GHJ=jsx3.eval(GHJ);}catch(e){throw new jsx3.Exception("Error evaluating property "+sCm+"='"+GHJ+"'",jsx3.NativeError.wrap(e));}}BqG.apply(vpv,[GHJ]);}else{throw new jsx3.Exception("error initializing Logger: no setter for property "+sCm+" in class "+dMG);}}}};KJc.prototype.addLogger=function(mBd){var xcp=mBd.getName();this.gBpF[xcp]=mBd;var Djw=this.fxCJ.selectSingleNode("/configuration/logger[@name='"+xcp+"']");if(Djw!=null){var PBG=Djw.getAttribute("level");if(PBG&&typeof(pzJ[PBG])=="number")mBd.setLevel(pzJ[PBG]);var CPB=Djw.getAttribute("useParent")!="false";mBd.setUseParentHandlers(CPB);var hcB=Djw.selectNodes("./handler-ref");var Bfh=null;while((Bfh=hcB.next())!=null){var qKg=Bfh.getAttribute("name");var GlP=this.getHandler(qKg);if(GlP!=null){mBd.addHandler(GlP);}else{if(this.wfwc[qKg]!=KJc.GsFj){throw new jsx3.Exception("error initializing Logger: logger "+xcp+" references non-existent handler "+qKg);}}}this.rzMk(mBd,Djw);}if(xcp!=KJc.gzmr){var FDg=xcp.lastIndexOf(".");var MbP=FDg>=0?xcp.substring(0,FDg):KJc.gzmr;mBd.setParent(pzJ.getLogger(MbP));}};KJc.prototype.addHandler=function(Hjz){this.wfwc[Hjz.getName()]=Hjz;};KJc.prototype.getLogger=function(tJm){return this.gBpF[tJm];};KJc.prototype.getHandler=function(DBm){var LFC=this.wfwc[DBm];return LFC==KJc.GsFj?null:LFC;};KJc.prototype.getHandlerNames=function(){var bjD=[];for(var wgx in this.wfwc)bjD.push(wgx);return bjD;};});jsx3.Class.defineClass("jsx3.util.Logger.Record",null,null,function(LLN){LLN.kJpr=1;LLN.prototype.LhcP=null;LLN.prototype.wGhp=null;LLN.prototype.nqBz=null;LLN.prototype.rdFp=null;LLN.prototype.jntp=null;LLN.prototype.fpPq=null;LLN.prototype.Dzlv=null;LLN.prototype.mNDF=null;LLN.prototype.init=function(rxs,dtt,lKw,gfJ,dkp,zJr){this.LhcP=LLN.kJpr++;this.wGhp=new Date();this.nqBz=rxs;this.rdFp=dtt;this.jntp=lKw;this.fpPq=gfJ;this.Dzlv=dkp;this.mNDF=zJr;};LLN.prototype.getSerial=function(){return this.LhcP;};LLN.prototype.getDate=function(){return this.wGhp;};LLN.prototype.getMessage=function(){return this.nqBz;};LLN.prototype.getParameters=function(){return this.rdFp;};LLN.prototype.getLevel=function(){return this.jntp;};LLN.prototype.getLoggerName=function(){return this.fpPq;};LLN.prototype.getFunction=function(){return this.Dzlv instanceof Function?this.Dzlv:null;};LLN.prototype.getStack=function(){return this.Dzlv instanceof Array?this.Dzlv:null;};LLN.prototype.getError=function(){return this.mNDF;};});jsx3.Class.defineClass("jsx3.util.Logger.Handler",null,null,function(lmt){var jBP=jsx3.util.Logger;var sjG=jsx3.util.Logger.Manager;lmt.registerHandlerClass=function(vkz){sjG.getManager().FlFq(vkz);};lmt.prototype.mFGJ="";lmt.prototype.jntp=null;lmt.prototype.init=function(fHh){this.mFGJ=fHh;};lmt.prototype.getName=function(){return this.mFGJ;};lmt.prototype.getLevel=function(){return this.jntp;};lmt.prototype.setLevel=function(Fzs){Fzs=Math.max(jBP.OFF,Math.min(jBP.pPnB,Fzs));this.jntp=Fzs;};lmt.prototype.isLoggable=function(Jqs){return this.jntp==null||this.jntp>=Jqs;};lmt.prototype.handle=jsx3.Method.newAbstract("objRecord");});jsx3.Class.defineClass("jsx3.util.Logger.MemoryHandler",jsx3.util.Logger.Handler,null,function(Fjp){Fjp.prototype.cLmD=null;Fjp.prototype.FCNn=100;Fjp.prototype.init=function(wrg){this.jsxsuper(wrg);this.cLmD=[];};Fjp.prototype.handle=function(Mmj){this.cLmD.push(Mmj);if(this.cLmD.length>this.FCNn)this.cLmD.shift();};Fjp.prototype.clearBuffer=function(){this.cLmD=[];};Fjp.prototype.getBufferSize=function(){return this.FCNn;};Fjp.prototype.setBufferSize=function(GKp){this.FCNn=Math.max(1,GKp);if(this.cLmD.length>this.FCNn)this.cLmD.splice(0,this.cLmD.length-this.FCNn);};Fjp.prototype.getRecords=function(BNJ){if(BNJ==null)BNJ=this.cLmD.length;return this.cLmD.slice(this.cLmD.length-BNJ);};});jsx3.Class.defineClass("jsx3.util.Logger.FormatHandler",jsx3.util.Logger.Handler,null,function(HfH){HfH.prototype.gtdK="%d %t %n (%l) - %M";HfH.prototype.skjs="";HfH.prototype.init=function(jCd){this.jsxsuper(jCd);};HfH.prototype.format=function(jCg){if(this.jntp!=null&&this.jntp<jCg.getLevel())return;var fws=this.gtdK;var Jxt=jCg.getDate();var KfK=jCg.getFunction();var jrh=jCg.getMessage()||"";var dmK=jCg.getError();var Gjq=jCg.getStack();fws=fws.replace(/%s/g,jCg.getSerial());fws=fws.replace(/%n/g,jCg.getLoggerName());fws=fws.replace(/%l/g,jsx3.util.Logger.levelAsString(jCg.getLevel()));fws=fws.replace(/%M/g,jrh);fws=fws.replace(/%f/g,KfK!=null?KfK.jsxmethod!=null?KfK.jsxmethod.toString():KfK.toString():"");fws=fws.replace(/%d/g,Jxt.getFullYear().zeroPad(4)+"-"+(Jxt.getMonth()+1).zeroPad(2)+"-"+Jxt.getDate().zeroPad(2));fws=fws.replace(/%t/g,Jxt.getHours().zeroPad(2)+":"+Jxt.getMinutes().zeroPad(2)+":"+Jxt.getSeconds().zeroPad(2)+"."+Jxt.getMilliseconds().zeroPad(3));if(dmK!=null){fws=fws+("\n"+dmK.printStackTrace());}else{if(Gjq!=null){fws=fws+("\n"+jsx3.Exception.formatStack(Gjq));}}return fws;};HfH.prototype.getFormat=function(){return this.gtdK;};HfH.prototype.setFormat=function(xsp){this.gtdK=xsp;};HfH.prototype.getResourceUrls=function(){return this.skjs;};HfH.prototype.setResourceUrls=function(fNd){this.skjs=fNd;};});jsx3.util.Logger.Manager.mBsm();
jsx3.Class.defineClass("jsx3.app.UserSettings",null,null,function(sDk){var DMg=jsx3.xml.Entity;var Phm=jsx3.util.Logger.getLogger(sDk.jsxclass.getName());sDk.PERSIST_SESSION=1;sDk.PERSIST_INDEFINITE=2;sDk.prototype.kzzc=null;sDk.prototype.snCp=null;sDk.prototype.wDcf=null;sDk.prototype.init=function(LLl,pDj){if(pDj==null)pDj=sDk.PERSIST_INDEFINITE;this.kzzc=LLl;this.snCp=pDj;var tnN=this.gfrJ();this.wDcf=sDk.MprN(tnN);};sDk.prototype.get=function(wnK){var MFM=this.wDcf;for(var tMc=0;tMc<arguments.length;tMc++){if(typeof(MFM)!="object"||MFM instanceof Array)return null;MFM=MFM[arguments[tMc]];}return MFM;};sDk.prototype.set=function(PLJ,dHb){var bqM=this.wDcf;for(var wwc=0;wwc<arguments.length-2;wwc++){var kpG=bqM[arguments[wwc]];if(typeof(kpG)!="object"||kpG instanceof Array){kpG=bqM[arguments[wwc]]=null;}if(kpG==null){kpG=bqM[arguments[wwc]]={};}bqM=kpG;}bqM[arguments[arguments.length-2]]=arguments[arguments.length-1];return bqM;};sDk.prototype.remove=function(LnJ){var nGL=this.wDcf;for(var JMb=0;JMb<arguments.length-1;JMb++){var wFF=nGL[arguments[JMb]];if(wFF==null||typeof(wFF)!="object"||wFF instanceof Array)return;nGL=wFF;}delete nGL[arguments[arguments.length-1]];};sDk.prototype.clear=function(){this.wDcf={};var vNn=this.nctp();var Nbm=this.kzzc.getSettings();var Jhr=Nbm.get("user-settings","domain");var DCG=Nbm.get("user-settings","path");this.kzzc.deleteCookie(vNn,DCG,Jhr);};sDk.prototype.save=function(){var fwN=sDk.wBCk(this.wDcf);fwN=fwN.replace(/\*/g,"%2A");fwN=fwN.replace(/\+/g,"%2B");fwN=fwN.replace(/</g,"*");fwN=fwN.replace(/>/g,"+");fwN=escape(fwN);var Kpw=fwN.length;if(Kpw>4096)Phm.warn("Cookie is dangerously large: "+Kpw+" bytes.");this.fGBr(fwN);};sDk.prototype.nctp=function(){return this.kzzc.getEnv("NAMESPACE")+(this.snCp==sDk.PERSIST_SESSION?"_ses":"_ind");};sDk.prototype.gfrJ=function(){var Pbn=this.nctp();var lhM=this.kzzc.getCookie(Pbn,true);if(lhM){lhM=lhM.replace(/\*/g,"<");lhM=lhM.replace(/\+/g,">");lhM=unescape(lhM);}return lhM;};sDk.prototype.fGBr=function(Mln){var BPm=this.nctp();var gBk=this.kzzc.getSettings();var bGp=gBk.get("user-settings","domain");var KnF=gBk.get("user-settings","path");var NrJ=new Date();var Blg=this.snCp==sDk.PERSIST_SESSION?null:new Date(NrJ.getFullYear()+1,NrJ.getMonth(),NrJ.getDate());this.kzzc.setCookie(BPm,Mln,Blg,KnF,bGp,null,true);};sDk.MprN=function(sLm){if(!sLm)return {};var jbq=new jsx3.xml.Document();jbq.loadXML(sLm);return sDk.pgrx(jbq.getRootNode());};sDk.pgrx=function(bDP){var HMl=bDP.getNodeName();if(HMl=="s"){return bDP.getValue();}else{if(HMl=="n"){return Number(bDP.getValue());}else{if(HMl=="m"){var jnz={};var jNk=bDP.getChildNodes();for(var BhM=0;BhM<jNk.getLength();BhM++){var pMz=jNk.getItem(BhM);jnz[pMz.getAttribute("n")]=sDk.pgrx(pMz);}return jnz;}else{if(HMl=="a"){var PCH=[];var jNk=bDP.getChildNodes();for(var BhM=0;BhM<jNk.getLength();BhM++){PCH.push(sDk.pgrx(jNk.getItem(BhM)));}return PCH;}else{if(HMl=="b"){return bDP.getValue()=="1"?true:false;}else{if(HMl=="u"){return null;}else{Phm.warn("Cannot deserialize node name '"+HMl+"'");return null;}}}}}}};sDk.wBCk=function(mKh){var NKn=new jsx3.xml.Document();NKn.loadXML("<m/>");node=NKn.getRootNode();for(var KzM in mKh)sDk.xdCF(mKh[KzM],KzM,node);return node.getXML();};sDk.xdCF=function(vwh,HzB,PNM){var FJf=null;var ksj=typeof(vwh);if(vwh==null||ksj=="undefined"){FJf=PNM.createNode(DMg.TYPEELEMENT,"u");}else{if(ksj=="string"){FJf=PNM.createNode(DMg.TYPEELEMENT,"s");FJf.setValue(vwh);}else{if(ksj=="number"){FJf=PNM.createNode(DMg.TYPEELEMENT,"n");FJf.setValue(vwh);}else{if(ksj=="boolean"){FJf=PNM.createNode(DMg.TYPEELEMENT,"b");FJf.setValue(vwh?"1":"0");}else{if(ksj=="object"){if(vwh instanceof Array){FJf=PNM.createNode(DMg.TYPEELEMENT,"a");for(var mDL=0;mDL<vwh.length;mDL++){sDk.xdCF(vwh[mDL],mDL.toString(),FJf);}}else{FJf=PNM.createNode(DMg.TYPEELEMENT,"m");for(var wLK in vwh)sDk.xdCF(vwh[wLK],wLK,FJf);}}else{if(ksj=="function"){}else{throw new jsx3.Exception("Cannot persist object of type "+ksj);}}}}}}FJf.setAttribute("n",HzB);PNM.appendChild(FJf);};sDk.prototype.toString=function(){return "[jsx3.app.UserSettings "+this.kzzc.getAppPath()+"]";};});
jsx3.Class.defineClass("jsx3.net.Request",null,[jsx3.util.EventDispatcher],function(Ppc){Ppc.EVENT_ON_RESPONSE="onResponse";Ppc.EVENT_ON_TIMEOUT="onTimeout";Ppc.trackArray=new Object();Ppc.intervalId;Ppc.INTERVALSIZE=100;Ppc.prototype.init=function(qzH,Dlz){this.name=qzH;try{this.regkey=Dlz==null?jsx3.HTTPREGKEY:Dlz;this.request=new ActiveXObject(this.regkey);}catch(e){this.setError("XDOC1","Error instancing the native HTTP Request object. The version of the MSXML HTTP control that could not be instanced is identified in the registry as "+jsx3.HTTPREGKEY+".");delete this.request;}};Ppc.prototype.abort=function(){if(this.name)Ppc.cancelRequest(this.name);this.request.abort();return this;};Ppc.prototype.getAllResponseHeaders=function(){return this.request.getAllResponseHeaders();};Ppc.prototype.getResponseHeader=function(pFG){return this.request.getResponseHeader(pFG);};Ppc.prototype.getStatusText=function(){return this.request.statusText;};Ppc.prototype.getStatus=function(){return this.request.status;};Ppc.prototype.getResponseText=function(){return this.request.responseText;};Ppc.prototype.getResponseXML=function(){var fgj=this.request.responseXML;var gNs=this.getResponseHeader("Content-Type");if(fgj&&gNs&&gNs.match(/xml/)){if(fgj.documentElement)return new jsx3.xml.Document(fgj);}else{var txb=this.getResponseText();var rtz=new jsx3.xml.Document();rtz.loadXML(txb);if(rtz.getError().code=="0")return rtz;}jsx3.util.Logger.doLog("HTTPREQ10","The XML structure returned from <b>"+this.url+"</b> is invalid. Use <b>getResponseText()</b> to access the content.");};Ppc.prototype.setRequestHeader=function(qtF,bnp){this.request.setRequestHeader(qtF,bnp);return this;};Ppc.prototype.getReadyState=function(){return this.request.readyState;};Ppc.prototype.open=function(PPH,glM,vnC,Hpt,FKk){this.async=vnC?true:false;this.url=glM;this.request.open(PPH,glM,this.async,Hpt,FKk);return this;};Ppc.doTrack=function(CHK){Ppc.trackArray[CHK.name]=CHK;window.clearInterval(Ppc.intervalId);Ppc.intervalId=window.setInterval(function(){Ppc.track();},Ppc.INTERVALSIZE);};Ppc.track=function(){var GLl=true;for(var fhb in Ppc.trackArray){GLl=false;var GPh=Ppc.trackArray[fhb];if(GPh.getReadyState()==4){delete Ppc.trackArray[fhb];window.clearInterval(GPh.timeoutinterval);GPh.publish({subject:Ppc.EVENT_ON_RESPONSE});}}if(GLl)window.clearInterval(Ppc.intervalId);};Ppc.cancelRequest=function(qbC){delete Ppc.trackArray[qbC];};Ppc.getRequest=function(jGB){return Ppc.trackArray[jGB];};Ppc.prototype.getURL=function(){return this.url;};Ppc.prototype.onTimeout=function(){window.clearInterval(this.timeoutinterval);Ppc.cancelRequest(this.name);this.publish({subject:Ppc.EVENT_ON_TIMEOUT});};Ppc.prototype.setTimeouts=function(tJq,GNm,rfs,KdF){try{this.request.setTimeouts(tJq,GNm,rfs,KdF);}catch(e){jsx3.util.Logger.doLog("HTTPREQ01","The ActiveX object created with the HTTP Reg Key '"+this.regkey+"' does not appear to support setting timeouts.");}return this;};Ppc.prototype.send=function(Ppb,hsz){this.request.send(Ppb);if(this.async){Ppc.doTrack(this);if(!isNaN(hsz)&&hsz>0){var kmF=this;this.timeoutinterval=window.setInterval(function(){kmF.onTimeout();},hsz);}}return this;};Ppc.getVersion=function(){return "3.00.00";};});
jsx3.Class.defineClass("jsx3.net.Form",null,[jsx3.util.EventDispatcher],function(Pdl){Pdl.SERIAL=0;Pdl.DEFAULT_POLL=250;Pdl.DEFAULT_TIMEOUT=30000;Pdl.METHOD_GET="get";Pdl.METHOD_POST="post";Pdl.ENCTYPE_NORMAL="application/x-www-form-urlencoded";Pdl.ENCTYPE_MULTIPART="multipart/form-data";Pdl.EVENT_FILE_SELECTED="fileSelected";Pdl.EVENT_ON_RESPONSE="onResponse";Pdl.EVENT_ON_ERROR="onError";Pdl.EVENT_ON_TIMEOUT="onTimeout";Pdl.prototype.init=function(tPG,FLK,kps){this.id="jsx_httpform_"+Pdl.SERIAL++;if(tPG==-1){this.jgnHb(FLK);}else{this.jgnHb();this.setMethod(tPG!=null?tPG:Pdl.METHOD_GET);this.setAction(FLK);this.setMultipart(kps);}};Pdl.newFromFragment=function(sgw){return new Pdl(-1,sgw);};Pdl.prototype.jgnHb=function(wkb){var Hcs=wkb;if(!Hcs)Hcs="<form id=\""+this.id+"_form\""+" method=\"get\" action=\"\"></form>";var DKF="<html><body>"+Hcs+"</body></html>";document.body.insertAdjacentHTML("beforeEnd","<span id='"+this.id+"_span' style='position:absolute;left:0px;top:0px;display:none;'><iframe id='"+this.id+"_iframe'></iframe></span>");this._span=document.getElementById(this.id+"_span");this._iframe=this.eval(this.id+"_iframe");this._iframe.document.open();this._iframe.document.write(DKF);this._iframe.document.close();if(!wkb){this._form=this._iframe.document.getElementById(this.id+"_form");}else{this._form=this._iframe.document.getElementsByTagName("FORM")[0];if(this._form==null)throw {description:"the HTML fragment did not contain a valid <form> tag: "+wkb};this.action=this._form.action;this.method=this._form.method;this.multipart=this._form.encoding&&this._form.encoding.toLowerCase()==Pdl.ENCTYPE_MULTIPART;}};Pdl.prototype.getMethod=function(){return this.method;};Pdl.prototype.setMethod=function(dwn){dwn=dwn!=null?dwn.toLowerCase():Pdl.METHOD_GET;this.method=dwn;this.getRenderedForm().method=dwn;};Pdl.prototype.getAction=function(){return this.action;};Pdl.prototype.setAction=function(rsr){this.action=rsr;this.getRenderedForm().action=rsr;};Pdl.prototype.getMultipart=function(){return this.multipart;};Pdl.prototype.setMultipart=function(zHz){this.multipart=zHz;this.getRenderedForm().encoding=zHz?Pdl.ENCTYPE_MULTIPART:Pdl.ENCTYPE_NORMAL;};Pdl.prototype.getRenderedSpan=function(){return this._span;};Pdl.prototype.getRenderedIFrame=function(){return this._iframe;};Pdl.prototype.getRenderedForm=function(){return this._form;};Pdl.prototype.getField=function(PrD){var Ggm=this.getRenderedForm().elements[PrD];return Ggm!=null?Ggm.value:null;};Pdl.prototype.getFields=function(){var bkg=[];var lJN=this.getRenderedForm().elements;for(var PmN in lJN){bkg[PmN]=lJN[PmN].name;}return bkg;};Pdl.prototype.setField=function(pKC,NCm,rJf){var PPw=this.getRenderedForm();var lLk=PPw.elements[pKC];if(lLk==null){PPw.insertAdjacentHTML("beforeEnd","<input type='hidden' name='"+pKC+"'/>");lLk=PPw.elements[pKC];}if(rJf&&lLk.value){lLk.value=lLk.value+" "+NCm;}else{lLk.value=NCm;}};Pdl.prototype.removeField=function(NrC){var khw=this.getRenderedForm();var Ksk=khw.elements[NrC];if(Ksk!=null)khw.removeChild(Ksk);};Pdl.prototype.addFileUploadField=function(djC){var nLv=this.getRenderedForm();var Njk=nLv.elements[djC];if(Njk==null){nLv.insertAdjacentHTML("beforeEnd","<input type='file' name='"+djC+"'/>");Njk=nLv.elements[djC];var KhD=this;Njk.onchange=function(){KhD.onFileFieldChanged(djC,Njk.value);};}else{jsx3.util.Logger.doLog("HTFM02","HttpForm already had field "+djC);}};Pdl.prototype.promptForFile=function(Kpz){var qvv=this.getRenderedForm();var cHj=qvv.elements[Kpz];if(cHj!=null&&cHj.type=="file"){cHj.click();}else{jsx3.util.Logger.doLog("HTFM03","HttpForm does not have file upload field "+Kpz);}};Pdl.prototype.onFileFieldChanged=function(ldF,Jpl){this.publish({subject:Pdl.EVENT_FILE_SELECTED,field:ldF,value:Jpl});};Pdl.prototype.NPzqK=function(qpk){try{this._iframe.document.readyState=="";}catch(e){jsx3.out("HTFM05","Form Response Security Error: "+e.description);window.clearInterval(this._intervalId);this._intervalId=null;this.jwtGb();return;}if(this._iframe.document.readyState=="complete"||this._iframe.document.readyState=="loaded"){window.clearInterval(this._intervalId);this._intervalId=null;this.rlbdd();}else{if(!qpk){window.clearInterval(this._intervalId);this._intervalId=null;this.publish({subject:Pdl.EVENT_ON_TIMEOUT});}}};Pdl.prototype.rlbdd=function(){this._form=null;this.publish({subject:Pdl.EVENT_ON_RESPONSE});};Pdl.prototype.jwtGb=function(){this._form=null;this.publish({subject:Pdl.EVENT_ON_ERROR});};Pdl.prototype.send=function(LGr,FHP){if(LGr==null)LGr=Pdl.DEFAULT_POLL;if(FHP==null)FHP=Pdl.DEFAULT_TIMEOUT;this._form.submit();var mcl=0;var mqx=FHP<=0?Number.MAX_VALUE:Math.ceil(FHP/LGr);var gxB=this;this._intervalId=window.setInterval(function(){gxB.NPzqK(++mcl<mqx);},LGr);};Pdl.prototype.abort=function(){window.clearInterval(this._intervalId);};Pdl.prototype.getResponseText=function(){var zJN=this._iframe.document;if(typeof(zJN.mimeType)!="unknown"){if(zJN.mimeType.indexOf("XML")==0){return zJN.XMLDocument.xml;}else{if(zJN.mimeType.indexOf("HTML")==0){return this._iframe.document.childNodes[0].outerHTML;}else{if(zJN.mimeType.indexOf("Text")==0){return this._iframe.document.childNodes[0].innerText;}}}}return this._iframe.document.body.innerHTML;};Pdl.prototype.getResponseXML=function(){var HpN=this._iframe.document;if(typeof(HpN.mimeType)=="string"&&HpN.mimeType.indexOf("XML")==0||HpN.XMLDocument&&HpN.XMLDocument.documentElement){var Fsv=new jsx3.xml.Document();Fsv.loadXML(HpN.XMLDocument.documentElement.xml);return Fsv;}else{var wFG=null;if(HpN.mimeType.indexOf("HTML")==0){wFG=this._iframe.document.childNodes[0].outerHTML;}else{if(HpN.mimeType.indexOf("Text")==0){wFG=this._iframe.document.childNodes[0].innerText;}else{wFG=this._iframe.document.body.innerHTML;}}var Gpj=new jsx3.xml.Document();Gpj.loadXML(wFG);if(Gpj.hasError()){jsx3.util.Logger.doLog("HTFM06","Result not a valid XML document: "+Gpj.getError().description);return null;}}return Gpj;};Pdl.prototype.destroy=function(){var DJj=this.getRenderedSpan();if(DJj!=null){DJj.parentNode.removeChild(DJj);this._span=null;this._iframe=null;this._form=null;}else{jsx3.util.Logger.doLog("HTFM01","HttpForm probably already destroyed");}};});
jsx3.BrowserDOM=function(){if(arguments[0]==jsx3.INITIALIZE){jsx3.doDefine("jsx3.BrowserDOM",DKcxh);jsx3.doInherit("jsx3.BrowserDOM","jsx3.Object");}else{if(arguments[0]!=jsx3.DESERIALIZE)this.init();}function DKcxh(){function init(){}jsx3.BrowserDOM.prototype.init=init;function getRelativePosition(LhC,zpd){var pvG={W:zpd.offsetWidth,H:zpd.offsetHeight};var hcl=zpd.scrollLeft;var qDn=zpd.scrollTop;var nrM=false;while(zpd&&zpd!=LhC){var szq=zpd.parentNode;var Dbb=zpd.tagName;var HbM=zpd.style.position;var vzs=(Dbb=="TD"||Dbb=="TABLE"||Dbb=="TR")&&HbM!=""&&HbM!="static";if(!nrM)nrM=vzs;if(Dbb=="TD"||Dbb=="TABLE"||Dbb=="TR"){if(nrM==vzs){hcl=hcl+(zpd.offsetLeft+(szq?szq.clientLeft:0));qDn=qDn+(zpd.offsetTop+(szq?szq.clientTop:0));}}else{if(Dbb!="TBODY"){hcl=hcl+(zpd.offsetLeft+(szq?szq.clientLeft:0)-zpd.scrollLeft);qDn=qDn+(zpd.offsetTop+(szq?szq.clientTop:0)-zpd.scrollTop);}}if(szq==LhC){hcl=hcl-szq.scrollLeft;qDn=qDn-szq.scrollTop;}zpd=szq;}pvG.L=hcl+LhC.scrollLeft;pvG.T=qDn+LhC.scrollTop;return pvG;}jsx3.BrowserDOM.getRelativePosition=getRelativePosition;function scrollIntoView(fgc,qMz,LcC,dfC){var qpC=fgc.parentNode;while(qpC!=null){if(qpC.tagName=="SPAN"||qpC.tagName=="DIV"){var rMl=jsx3.BrowserDOM.getRelativePosition(qpC,fgc);if(qpC.clientWidth+qpC.scrollLeft<=rMl.L){qpC.scrollLeft=rMl.L+fgc.offsetWidth-qpC.clientWidth+LcC;}else{if(qpC.clientWidth+qpC.scrollLeft<rMl.L+fgc.offsetWidth&&LcC!=null){qpC.scrollLeft=rMl.L+fgc.offsetWidth-qpC.clientWidth+LcC;}}if(qpC.scrollLeft>=rMl.L+fgc.offsetWidth){qpC.scrollLeft=rMl.L-LcC;}else{if(qpC.scrollLeft>rMl.L&&LcC!=null){qpC.scrollLeft=rMl.L-LcC;}}if(qpC.clientHeight+qpC.scrollTop<=rMl.T){qpC.scrollTop=rMl.T+fgc.offsetHeight-qpC.clientHeight+dfC;}else{if(qpC.clientHeight+qpC.scrollTop<rMl.T+fgc.offsetHeight&&dfC!=null){qpC.scrollTop=rMl.T+fgc.offsetHeight-qpC.clientHeight+dfC;}}if(qpC.scrollTop>=rMl.T+fgc.offsetHeight){qpC.scrollTop=rMl.T-dfC;}else{if(qpC.scrollTop>rMl.T&&dfC!=null){qpC.scrollTop=rMl.T-dfC;}}}if(qpC==qMz)break;qpC=qpC.parentNode;}}jsx3.BrowserDOM.scrollIntoView=scrollIntoView;function getJSXParent(JJN){while(JJN!=null){if(JJN.id&&JJN.id.indexOf("_jsx_")==0){var CBc=jsx3.GO(JJN.id);if(CBc!=null){return CBc;}}JJN=JJN.parentElement;}return null;}jsx3.BrowserDOM.getJSXParent=getJSXParent;function toString(){return "BrowserDOM";}jsx3.BrowserDOM.prototype.toString=toString;}};new jsx3.BrowserDOM(jsx3.INITIALIZE);
jsx3.Class.defineClass("jsx3.app.Cache",null,[jsx3.util.EventDispatcher],function(skp){skp.EVENT_CHANGE="cachechange";skp.prototype.init=function(){this.cacheArray=new Object();};skp.prototype.clearById=function(tFF,lgl,lsH){if(this.cacheArray[tFF]!=null&&this.cacheArray[tFF]!=null&&(this.cacheArray[tFF].jsxsystem==true&&lsH==true||this.cacheArray[tFF].jsxsystem!=true)){this.cacheArray[tFF].jsxdocument=null;this.cacheArray[tFF]=null;delete this.cacheArray[tFF];if(lgl!=false)this.onChange();}};skp.prototype.isSystem=function(wpF){return this.cacheArray[wpF]!=null&&this.cacheArray[wpF]!=null&&this.cacheArray[wpF].jsxsystem==true;};skp.prototype.clearByTimestamp=function(mqk){for(p in this.cacheArray){var LLb=this.cacheArray[p];if(LLb!=null&&+LLb["timestamp"]<mqk){this.cacheArray[p].jsxdocument=null;this.cacheArray[p]=null;delete this.cacheArray[p];}}this.onChange();};skp.prototype.getDocument=function(NBD,tMN){if(this.cacheArray[NBD]&&this.cacheArray[NBD]["jsxdocument"]){return this.cacheArray[NBD]["jsxdocument"];}else{if(!tMN){var PFx=jsx3.app.Server.allServers();for(var krc=0;krc<PFx.length;krc++){var Pzj=PFx[krc];if(this==Pzj.Cache)continue;var rjB=Pzj.Cache.getDocument(NBD,true);if(rjB!=null)return rjB;}if(this!=jsx3.CACHE)return jsx3.CACHE.getDocument(NBD,true);}}return null;};skp.prototype.openDocument=function(BtN,JcD,zDF){var Njj=new jsx3.xml.Document();Njj.load(BtN);if(Njj!=null){if(JcD!=null)this.setDocument(JcD,Njj,zDF);return Njj;}else{jsx3.util.Logger.doLog("CCH01","Error loading the XML document, "+BtN,3);}};skp.prototype.setDocument=function(FxC,CFv,wlF){if(CFv!=null){this.clearById(FxC,false);var PpN=new Object();var kgb=new Date();PpN.timestamp=kgb.valueOf();PpN.jsxdocument=CFv;PpN.jsxsystem=wlF==true;this.cacheArray[FxC]=PpN;this.onChange();}};skp.prototype.getTimestamp=function(GbB){return this.cacheArray[GbB]!=null&&this.cacheArray[GbB]["timestamp"]!=null?this.cacheArray[GbB]["timestamp"]:null;};skp.prototype.onChange=function(){this.publish({subject:skp.EVENT_CHANGE});};skp.prototype.keys=function(){var Hnh=[];for(var pmb in this.cacheArray)Hnh.push(pmb);return Hnh;};});
jsx3.Class.defineInterface("jsx3.xml.Cacheable",null,function(Khj){Khj.DEFAULTSTYLESHEET=jsx3.resolveURI("JSX/xsl/xml.xsl");Khj.DEFAULTXSLCACHEID="JSX_XML_XSL";Khj.CLEANUPRESOURCES=0;Khj.SHARERESOURCES=1;Khj.prototype.doTransform=function(tPD,HFM){var Mtk=this.getNodeSet()!=null?this.getNodeSet():this.getXML();if(tPD==null&&this.jsxxslparams!=null)tPD=this.jsxxslparams;var fnC=0;var FhC="";if(Mtk!=null){fnC=1;var hgq=this.getXSL();if(hgq!=null){fnC=2;FhC=Mtk.transformNode(hgq,tPD);if(FhC!="")fnC=3;}}if(fnC==2){}else{if(fnC==1){if(HFM!=true)jsx3.util.Logger.doLog("XML02","Transformation Failed: When attempting to load the XSL for the control, "+this.getId()+", it resulted in a null object.",3);}else{if(fnC==0){}}}return FhC;};Khj.prototype.getXSLParams=function(){if(this.jsxxslparams==null)this.jsxxslparams=new Object();return this.jsxxslparams;};Khj.prototype.setXSLParam=function(vfG,gMp){this.getXSLParams()[vfG]=gMp;return this;};Khj.prototype.removeXSLParam=function(sGF){delete this.getXSLParams()[sGF];return this;};Khj.prototype.removeXSLParams=function(){delete this.jsxxslparams;return this;};Khj.prototype.getNodeSet=function(){return this._jsxnodeset==null||this._jsxnodeset==null?null:this._jsxnodeset;};Khj.prototype.setNodeSet=function(Lxb){this._jsxnodeset=Lxb;};Khj.prototype.onDestroyCached=function(jlc){if(this.getShareResources()==Khj.CLEANUPRESOURCES)this.resetCacheData(jlc.getServer());delete this._jsxnodeset;};Khj.prototype.resetCacheData=function(FNh){var bDz=(FNh||this.getServer()).getCache();bDz.clearById(this.getXSLId());bDz.clearById(this.getXMLId());};Khj.prototype.resetXmlCacheData=function(xFh){var Hvz=(xFh||this.getServer()).getCache();Hvz.clearById(this.getXMLId());};Khj.prototype.resetXslCacheData=function(fxh){var pnz=(fxh||this.getServer()).getCache();pnz.clearById(this.getXSLId());};Khj.prototype.clearXmlData=function(NbP){this.getServer().getCache().setDocument(this.getXMLId(),jsx3.xml.CDF.newDocument());};Khj.prototype.getShareResources=function(){return this.jsxshare==null?Khj.CLEANUPRESOURCES:this.jsxshare;};Khj.prototype.setShareResources=function(PHk){this.jsxshare=PHk;return this;};Khj.prototype.getXML=function(){var Ffv=this.getServer();if(Ffv==null)return jsx3.xml.CDF.newDocument();var bGd=Ffv.getCache().getDocument(this.getXMLId());if(bGd==null){if(this.getXMLString()!=null){bGd=new jsx3.xml.Document();bGd.loadXML(this.getXMLString());}else{if(this.getXMLURL()!=null){bGd=new jsx3.xml.Document();bGd.load(jsx3.resolveURI(this.getXMLURL()));}else{bGd=jsx3.xml.CDF.newDocument();}}if(bGd.getError().code!="0"){jsx3.util.Logger.doLog("XML07","Error parsing or loading the XML file for the JSX GUI object, "+this.getId()+".",2);return;}this.getServer().getCache().setDocument(this.getXMLId(),bGd);}return bGd;};Khj.prototype.getXMLId=function(){return this.jsxxmlid==null||this.jsxxmlid==""?this.getId()+"_XML":this.jsxxmlid;};Khj.prototype.setXMLId=function(kDG){this.jsxxmlid=kDG;return this;};Khj.prototype.getXMLString=function(){return this.jsxxml==null||this.jsxxml==""?null:this.jsxxml;};Khj.prototype.setXMLString=function(zFL){if(zFL==null||zFL==""){delete this.jsxxml;}else{this.jsxxml=zFL;}return this;};Khj.prototype.getXMLURL=function(){return this.jsxxmlurl==null||this.jsxxmlurl==""?null:this.jsxxmlurl;};Khj.prototype.setXMLURL=function(grh){if(grh==null||grh==""){delete this.jsxxmlurl;}else{this.jsxxmlurl=grh;}return this;};Khj.prototype.getXSL=function(HmF){var hNx=this.getXSLId();var nJx;var spj=this.getServer().getCache().getDocument(hNx);if(spj==null){spj=new jsx3.xml.Document();if(this.getXSLString()!=null){spj.loadXML(this.getXSLString());}else{if(this.getXSLURL()!=null){spj.load(jsx3.resolveURI(this.getXSLURL()));}else{if(HmF!=true){spj.load(Khj.DEFAULTSTYLESHEET);hNx=Khj.DEFAULTXSLCACHEID;nJx=true;}else{return null;}}}if(spj.getError().code!="0"){jsx3.util.Logger.doLog("XML05","Error parsing or loading the XSL file for the JSX GUI object, "+this.getId()+".",2);return;}this.getServer().getCache().setDocument(hNx,spj,nJx);}return spj;};Khj.prototype.getXSLId=function(){return this.jsxxslid==null||this.jsxxslid==""?this.getId()+"_XSL":this.jsxxslid;};Khj.prototype.setXSLId=function(Fzw){this.jsxxslid=Fzw;return this;};Khj.prototype.getXSLString=function(){return this.jsxxsl==null||this.jsxxsl==""?null:this.jsxxsl;};Khj.prototype.setXSLString=function(hHc){if(hHc==null||hHc==""){delete this.jsxxsl;}else{this.jsxxsl=hHc;}return this;};Khj.prototype.getXSLURL=function(){return this.jsxxslurl==null||this.jsxxslurl==""?null:this.jsxxslurl;};Khj.prototype.setXSLURL=function(lkJ){if(lkJ==null||lkJ==""){delete this.jsxxslurl;}else{this.jsxxslurl=lkJ;}return this;};Khj.getVersion=function(){return "3.00.00";};});jsx3.xml.Cacheable.prototype.resetData=jsx3.xml.Cacheable.prototype.clearXmlData;
jsx3.Class.defineInterface("jsx3.xml.CDF",null,function(Fbh){Fbh.PLMv=jsx3.util.Logger.getLogger(Fbh.jsxclass.getName());Fbh.DELETE=0;Fbh.INSERT=1;Fbh.UPDATE=2;Fbh.ELEM_ROOT="data";Fbh.ELEM_RECORD="record";Fbh.ATTR_ID="jsxid";Fbh.ATTR_TEXT="jsxtext";Fbh.ATTR_EXECUTE="jsxexecute";Fbh.ATTR_DISABLED="jsxdisabled";Fbh.ATTR_SELECTED="jsxselected";Fbh.ATTR_UNSELECTABLE="jsxunselectable";Fbh.ATTR_IMG="jsximg";Fbh.ATTR_TIP="jsxtip";Fbh.cndr=1;Fbh.prototype.insertRecord=function(pFJ,jqD,bnq){if(pFJ instanceof Object){var fJj=this.getXML();var lfs=Fbh.INSERT;var ffr=fJj.selectSingleNode("//*[@jsxid='"+pFJ.jsxid+"']");if(ffr!=null){lfs=Fbh.UPDATE;}else{ffr=fJj.createNode(jsx3.xml.Entity.TYPEELEMENT,Fbh.ELEM_RECORD);var rLb=jqD!=null?fJj.selectSingleNode("//*[@jsxid='"+jqD+"']"):null;if(rLb==null)rLb=fJj.getRootNode();rLb.appendChild(ffr);}for(var tPb in pFJ){if(pFJ[tPb]!=null)ffr.setAttribute(tPb,pFJ[tPb].toString());}if(bnq!=false)this.redrawRecord(pFJ["jsxid"],lfs);return ffr;}else{throw new IllegalArgumentException("objRecord",pFJ);}};Fbh.prototype.insertRecordNode=function(glr,BgC,tdp){if(glr instanceof jsx3.xml.Entity){var xPh=this.getXML();var sdc=BgC!=null?xPh.selectSingleNode("//*[@jsxid='"+BgC+"']"):null;if(sdc==null)sdc=xPh.getRootNode();sdc.appendChild(glr);if(tdp!=false)this.redrawRecord(glr.getAttribute("jsxid"),Fbh.INSERT);}else{throw new IllegalArgumentException("objRecordNode",glr);}};Fbh.prototype.insertRecordProperty=function(qvG,CzD,qbm,Fnn){var JJg=this.getXML();var gHp=JJg.selectSingleNode("//*[@jsxid='"+qvG+"']");if(gHp!=null){gHp.setAttribute(CzD,qbm);if(Fnn!=false)this.redrawRecord(qvG,Fbh.UPDATE);}else{Fbh.PLMv.debug("insertRecordProperty() no existing record with jsxid: "+qvG);}return this;};Fbh.prototype.deleteRecordProperty=function(lKF,xbD,zCm){var Dkg=this.getXML();var bjp=Dkg.selectSingleNode("//*[@jsxid='"+lKF+"']");if(bjp!=null){bjp.removeAttribute(xbD);if(zCm!=false)this.redrawRecord(lKF,Fbh.UPDATE);}else{Fbh.PLMv.debug("deleteRecordProperty() no existing record with jsxid: "+lKF);}};Fbh.prototype.redrawRecord=jsx3.Method.newAbstract("strRecordId","intAction");Fbh.prototype.adoptRecord=function(KCb,nFD,KzP){var wgg=typeof(KCb)=="string"?jsx3.GO(KCb):KCb;if(wgg!=null){var FnD=wgg.getRecordNode(nFD);if(FnD!=null){var qKL=KzP==null?this.getXML().getRootNode():this.getRecordNode(KzP);if(qKL!=null){objTemp=qKL;while(objTemp!=null&&!objTemp.equals(FnD))objTemp=objTemp.getParent();if(objTemp==null){if(wgg!=this){var pzC=this.getRecordNode(nFD);if(pzC!=null){Fbh.PLMv.debug("adoptRecord() already exists record with jsxid: "+nFD);return;}}var kNk=wgg.deleteRecord(nFD);this.insertRecordNode(kNk,KzP);return kNk;}else{}}else{Fbh.PLMv.debug("adoptRecord() no record in destination object with jsxid: "+KzP);}}else{Fbh.PLMv.debug("adoptRecord() no record in source object with jsxid: "+nFD);}}else{Fbh.PLMv.debug("adoptRecord() no object with id: "+KCb);}};Fbh.prototype.deleteRecord=function(GvC,hpk){var lKc=this.getXML();if(lKc!=null){var KMv=lKc.selectSingleNode("//*[@jsxid='"+GvC+"']");if(KMv!=null){KMv=KMv.getParent().removeChild(KMv);if(hpk!=false)this.redrawRecord(GvC,Fbh.DELETE);return KMv;}}return null;};Fbh.prototype.getRecord=function(pFB){var DKv=this.getRecordNode(pFB);if(DKv!=null){var trc=new Object();var BLh=DKv.getAttributes();var zzF=BLh.getLength();for(var fzH=0;fzH<zzF;fzH++){var Nfq=BLh.getItem(fzH);trc[Nfq.getNodeName()]=Nfq.getValue();}return trc;}};Fbh.prototype.getRecordNode=function(LNz){var qpb=this.getXML();if(qpb!=null){var brt=qpb.selectSingleNode("//*[@jsxid='"+LNz+"']");if(brt!=null)return brt;}return null;};Fbh.prototype.resetData=function(NCs){if(this.instanceOf(jsx3.xml.Cacheable)){this.clearXmlData();if(NCs)this.repaint();}};Fbh.prototype.reloadFromSource=function(xMw){if(this.instanceOf(jsx3.xml.Cacheable))this.resetXmlCacheData();};Fbh.newDocument=function(){var bjN=new jsx3.xml.Document();bjN.loadXML("<"+Fbh.ELEM_ROOT+" jsxid=\"jsxroot\"/>");return bjN;};Fbh.getKey=function(){return "jsx_"+Fbh.cndr++;};Fbh.getVersion=function(){return "3.00.00";};});
jsx3.Class.defineClass("jsx3.app.DOM",null,[jsx3.util.EventDispatcher],function(Dpz){Dpz.INC={};Dpz.TYPEADD=0;Dpz.TYPEREMOVE=1;Dpz.EVENT_CHANGE="domchange";Dpz.newId=function(Kmn){if(Dpz.INC[Kmn]==null)Dpz.INC[Kmn]=0;return "_jsx_"+Kmn+"_"+ ++Dpz.INC[Kmn];};Dpz.prototype.init=function(){this.SYSTEMHASH=new Object();this.USERHASH=new Object();};Dpz.prototype.get=function(fnF){return this.SYSTEMHASH[fnF]||this.USERHASH[fnF];};Dpz.prototype.getByName=function(zfF){return this.USERHASH[zfF];};Dpz.prototype.getById=function(hLD){return this.SYSTEMHASH[hLD];};Dpz.prototype.add=function(mLk){this.SYSTEMHASH[mLk.getId()]=mLk;var lKp=mLk.getName();if(lKp!=null&&lKp!=="")this.USERHASH[lKp]=mLk;};Dpz.prototype.remove=function(qBk){delete this.SYSTEMHASH[qBk.getId()];delete this.USERHASH[qBk.getName()];};Dpz.prototype.onNameChange=function(jsk,lfj){if(this.USERHASH[lfj]==jsk)delete this.USERHASH[lfj];var hrp=jsk.getName();if(hrp!=null&&hrp!=="")this.USERHASH[hrp]=jsk;};Dpz.prototype.onChange=function(srb,vGk,MHH){this.publish({subject:Dpz.EVENT_CHANGE,type:srb,parentId:vGk,jsxId:MHH});};});
jsx3.Class.defineClass("jsx3.app.Server",null,[jsx3.util.EventDispatcher,jsx3.gui.Alerts],function(PkL){var FMm=jsx3.util.Logger.GLOBAL;PkL.Z_DIALOG=2;PkL.Z_DRAG=3;PkL.Z_MENU=4;PkL.EVENT_PAINT="paint";PkL.EVENT_SERVER_INITED="serverInited";PkL.EVENT_SERVER_CREATED="serverCreated";PkL.BODY_NAME="JSXBODY";PkL.Dngq=new Array();PkL.prototype.JSXROOT=null;PkL.prototype.JSXBODY=null;PkL.prototype.Cache=null;PkL.prototype.ENVIRONMENT=null;PkL.prototype.DOM=null;PkL.prototype.init=function(wfN,Ksc,zBH,DtM,HjK){this.DOM=new jsx3.app.DOM();this.Cache=new jsx3.app.Cache();this.onpaintqueue=new Array();this.ZRANGE=new Array();this.ZRANGE[0]=0;this.ZRANGE[1]=1000;this.ZRANGE[PkL.Z_DIALOG]=5000;this.ZRANGE[PkL.Z_DRAG]=7500;this.ZRANGE[PkL.Z_MENU]=10000;this.ZRANGE[5]=25000;this.strAppPath=wfN;var nNt=new jsx3.app.Settings(jsx3.app.Settings.DOMAIN_PROJECT,this);var Dtl=(nNt.get("version")||"3.0").split(/\./);for(var fGb=0;fGb<Dtl.length;fGb++)Dtl[fGb]=parseInt(Dtl[fGb]);if(Dtl[0]==3){PkL.Dngq.push(this);var JfJ=new Object();JfJ.VERSION=Dtl.join(".");JfJ.APPPATH=wfN;JfJ.ABSPATH=jsx3.ABSOLUTEPATH;JfJ.CAPTION=nNt.get("caption");if(Ksc&&!HjK&&JfJ.CAPTION)Ksc.document.title=JfJ.CAPTION+"";JfJ.MODE=nNt.get("mode");JfJ.SYSTEM=nNt.get("system");JfJ.NAMESPACE=nNt.get("namespace");JfJ.CANCELERROR=nNt.get("cancelerror");JfJ.CANCELRIGHTCLICK=nNt.get("cancelrightclick");JfJ.BODYHOTKEYS=nNt.get("bodyhotkeys");jsx3.XMLREGKEY=nNt.get("xmlregkey");jsx3.HTTPREGKEY=nNt.get("httpregkey");JfJ.WIDTH=nNt.get("width");JfJ.HEIGHT=nNt.get("height");JfJ.LEFT=nNt.get("left");JfJ.TOP=nNt.get("top");JfJ.POSITION=nNt.get("position");JfJ.OVERFLOW=nNt.get("overflow");JfJ.WATERMARK=nNt.get("watermark");JfJ.EVENTSVERS=parseFloat(nNt.get("eventsvers"))||3;JfJ.UNICODE=nNt.get("unicode");if(JfJ.UNICODE==null)JfJ.UNICODE=false;JfJ.GUIREF=Ksc;if(DtM!=null)JfJ.COMPONENTURL=DtM;this.ENVIRONMENT=JfJ;if(Ksc&&this.ENVIRONMENT.CANCELRIGHTCLICK!=false)Ksc.document.oncontextmenu=new Function("return false;");if(this.ENVIRONMENT.CANCELERROR!=false)jsx3.NativeError.initErrorCapture();jsx3.MODE=JfJ.MODE;jsx3.registerApp(this);this.JSS=new Object();var fNg=this.Cache.openDocument(jsx3.resolveURI(jsx3.lang.ClassLoader.SYSTEM_RESOURCE_LIST)).selectNodes("//preferences/includes/include[@onLoad='true' and @type='jss']");var vcL=fNg.getLength();for(var fGb=0;fGb<vcL;fGb++){var BBN=fNg.getItem(fGb);this.loadInclude(BBN.getAttribute("src"),BBN.getAttribute("id"),"jss",false);}var nwJ=jsx3.getAddins();for(var Lmf in nwJ){var BkN=nwJ[Lmf];if(!BkN.enabled)continue;var ldn=new jsx3.app.Settings(jsx3.app.Settings.DOMAIN_ADDIN,BkN);var Kdt=ldn.get("includes");if(Kdt!=null){for(var fGb=0;fGb<Kdt.length;fGb++){var ggj=Kdt[fGb];if(ggj.onLoad&&(ggj.type=="jss"||ggj.type=="xml"||ggj.type=="xsl"))this.loadInclude(ggj.src,ggj.id,ggj.type,false);}}}var Kdt=nNt.get("includes");if(Kdt!=null){for(var fGb=0;fGb<Kdt.length;fGb++){var ggj=Kdt[fGb];if(ggj.onLoad&&ggj.type=="jss")this.loadInclude(this.resolveURI(ggj.src),ggj.id,ggj.type,false);}for(var fGb=0;fGb<Kdt.length;fGb++){var ggj=Kdt[fGb];if(ggj.onLoad&&ggj.owner=="application"&&(ggj.type=="xml"||ggj.type=="xsl"))this.Cache.openDocument(this.resolveURI(ggj.src),ggj.id);}}this.JSXROOT=this.Gqdg("JSXROOT");this.JSXROOT.setDynamicProperty("jsxbgcolor","@Solid DarkShadow");this.JSXROOT.setRelativePosition(jsx3.gui.Block.ABSOLUTE);this.JSXROOT.setOverflow(jsx3.gui.Block.OVERFLOWEXPAND);this.JSXROOT.setAlwaysCheckHotKeys(true);this.JSXBODY=new jsx3.gui.Block("JSXBODY",0,0,"100%","100%","");this.JSXBODY.setDynamicProperty("jsxbgcolor","@Solid Light");this.JSXBODY.setDynamicProperty("jsxcursor","@Default");this.JSXBODY.setRelativePosition(jsx3.gui.Block.ABSOLUTE);this.JSXBODY.setZIndex(-1);this.JSXBODY.setOverflow(jsx3.gui.Block.OVERFLOWEXPAND).setIndex(0);this.JSXROOT.setChild(this.JSXBODY);if(JfJ.BODYHOTKEYS)jsx3.gui.Event.subscribe(jsx3.gui.Event.KEYDOWN,this,"checkHotKeys");PkL.publish({subject:PkL.EVENT_SERVER_INITED,target:this});if(zBH==true)this.paint(DtM);}else{window.alert("The General Interface Environment cannot initialize because the specified configuration file for the application does not follow the required schema.");}};PkL.allServers=function(){return PkL.Dngq;};PkL.prototype.Gqdg=function(xHB){if(this._jsxroots==null)this._jsxroots=[];var vzd=new jsx3.gui.Block(xHB,0,0,"100%","100%","");vzd._jsxns=this.ENVIRONMENT.NAMESPACE;vzd._jsxid=jsx3.app.DOM.newId(this.ENVIRONMENT.NAMESPACE);vzd._jsxserver=this;this.DOM.add(vzd);this._jsxroots.push(vzd);return vzd;};PkL.prototype.getInvisibleRoot=function(){if(this.INVISIBLE==null)this.INVISIBLE=this.Gqdg("JSXINVISIBLE");return this.INVISIBLE;};PkL.prototype.getEnv=function(Dgn){return this.ENVIRONMENT[Dgn.toUpperCase()];};PkL.xvCs=function(wfk){myVars=["TkFNRVNQQUNF".fromBase64(),"QVBQUEFUSA==".fromBase64(),"QUJTUEFUSA==".fromBase64()];var DqF="PGRpdiBzdHlsZT0icG9zaXRpb246cmVsYXRpdmU7cGFkZGluZzs4cHg7Zm9udC1mYW1pbHk6VmVyZGFuYTtmb250LXNpemU6MTBweDsiPg==".fromBase64();DqF=DqF+("PGRpdiBzdHlsZT0icG9zaXRpb246cmVsYXRpdmU7d2hpdGUtc3BhY2U6bm93cmFwO3BhZGRpbmctYm90dG9tOjhweDt3aGl0ZS1zcGFjZTpub3dyYXA7Zm9udC1zaXplOjExcHg7Zm9udC13ZWlnaHQ6Ym9sZCI+".fromBase64()+PkL.bGhs()+"PC9kaXY+".fromBase64());var Kjm="";for(var bGK in jsx3.pChgk){var zDp=jsx3.pChgk[bGK].getRootBlock();if(zDp&&zDp.getRendered()){var rxx=zDp.getRendered();for(var dtH=0;dtH<myVars.length;dtH++){DqF=DqF+(Kjm+"PGRpdiBzdHlsZT0icG9zaXRpb246cmVsYXRpdmU7d2hpdGUtc3BhY2U6bm93cmFwO3BhZGRpbmc6M3B4OyI+PHNwYW4gc3R5bGU9InBvc2l0aW9uOnJlbGF0aXZlO3dpZHRoOjEzMHB4OyI+PGk+".fromBase64()+myVars[dtH]+"PC9pPjwvc3Bhbj48c3BhbiBzdHlsZT0icG9zaXRpb246cmVsYXRpdmU7d2hpdGUtc3BhY2U6bm93cmFwOyI+".fromBase64()+jsx3.pChgk[bGK].getEnv(myVars[dtH])+"PC9zcGFuPjwvZGl2Pg==".fromBase64());Kjm="";}}Kjm="PGhyIHN0eWxlPSJib3JkZXItYm90dG9tOmRhc2hlZCAxcHggIzk4OThhNTsiLz4=".fromBase64();}DqF=DqF+"PC9kaXY+".fromBase64();if(rxx)zDp["c2hvd1NweQ==".fromBase64()](DqF,rxx.clientWidth/2,rxx.clientHeight/2-100);};PkL.bGhs=function(){return "Professional Edition (version 3.1.1; build 5.2)";};PkL.prototype.getSettings=function(){return new jsx3.app.Settings(jsx3.app.Settings.DOMAIN_PROJECT,this);};PkL.prototype.getAppPath=function(){return this.strAppPath;};PkL.prototype.getTaskBar=function(xrc){if(xrc==null)xrc=this.JSXROOT;if(xrc instanceof jsx3.gui.WindowBar&&xrc.getType()==jsx3.gui.WindowBar.TYPETASK)return xrc;var scf=xrc.getChildren();var jnG=scf.length;for(var BmJ=0;BmJ<jnG;BmJ++){var dvB=dvB=this.getTaskBar(scf[BmJ]);if(dvB!=null)return dvB;}};PkL.prototype.destroy=function(){this.Cache.unsubscribeAll(jsx3.app.Cache.EVENT_CHANGE);this.DOM.unsubscribeAll(jsx3.app.DOM.EVENT_CHANGE);for(var DnK=0;DnK<this._jsxroots;DnK++){var pNM=this._jsxroots[DnK];pNM.removeChildren();}this.Cache.onChangeArray=new Array();for(p in this.Cache.cacheArray){this.Cache.cacheArray[p].jsxdocument=null;this.Cache.cacheArray[p]=null;delete this.Cache.cacheArray[p];}if(objGUI=this.JSXROOT.getRendered()){if(objGUI.parentElement.id=="JSXWINDOW_"+this.ENVIRONMENT.NAMESPACE)objGUI=objGUI.parentElement;objGUI.parentElement.removeChild(objGUI);}jsx3.deregisterApp(this);PkL.Dngq.remove(this);jsx3.gui.Event.unsubscribe(jsx3.gui.Event.KEYDOWN,this,"checkHotKeys");};PkL.prototype.paint=function(KzC){try{var czG=this.getEnv("GUIREF");var Kfj=this.getRootDocument();var fPm="";if(KzC==null){var hdd=160;var DKx=12;var cKc=2;var zgL=4;var qvM=Kfj.body.offsetHeight-DKx-cKc;var rLN="this.parentElement.offsetHeight-"+(DKx+cKc);var Bkj=null,ccG=null,FmK=null;var BGP=this.getEnv("d2F0ZXJtYXJr".fromBase64());if(BGP=="left"){Bkj=jsx3.gui.Block.ALIGNLEFT;ccG=zgL;FmK=zgL;}else{if(BGP=="center"){Bkj=jsx3.gui.Block.ALIGNCENTER;ccG=Math.round((Kfj.body.offsetWidth-hdd)/2);FmK="Math.round((this.parentElement.offsetWidth-this.offsetWidth)/2)";}else{Bkj=jsx3.gui.Block.ALIGNRIGHT;ccG=Kfj.body.offsetWidth-hdd-zgL;FmK="this.parentElement.offsetWidth-this.offsetWidth-"+zgL;}}var fwx=new jsx3.gui.Block(this.eval("\"SlNYT1BFTlNPVVJDRQ==\"").fromBase64(),ccG,qvM,hdd,DKx,"<span unselectable='on' style='cursor:default;white-space:nowrap;'>"+"VElCQ08gU29mdHdhcmUmcmVnOyAtIFByb2Zlc3Npb25hbCBFZGl0aW9u".fromBase64()+"</span>");fwx[this.eval("\"anN4Zm9udHNpemU=\"").fromBase64()]=9;fwx[this.eval("\"anN4emluZGV4\"").fromBase64()]=32000;fwx[this.eval("\"anN4dGV4dGFsaWdu\"").fromBase64()]=Bkj;fwx.setRelativePosition(0);fwx[this.eval("\"anN4c3R5bGVvdmVycmlkZQ==\"").fromBase64()]="left:expression("+FmK+");top:expression("+rLN+");";fPm=fwx.paint();if(this.ENVIRONMENT.OVERFLOW==0){var scx="";}else{if(this.ENVIRONMENT.OVERFLOW==1){var scx="scroll";}else{if(this.ENVIRONMENT.OVERFLOW==2){var scx="hidden";}else{var scx="auto";}}}if(this.ENVIRONMENT.POSITION==0){var lbG="relative";var Btc="";var lxp="";}else{var lbG="absolute";var Btc="left:"+this.ENVIRONMENT.LEFT+";";var lxp="top:"+this.ENVIRONMENT.TOP+";";}var zlM="width:"+this.ENVIRONMENT.WIDTH+";";var HsC="height:"+this.ENVIRONMENT.HEIGHT+";";var xPd="JSXWINDOW_"+this.ENVIRONMENT.NAMESPACE;czG.innerHTML="<div id=\""+xPd+"\" style=\"position:"+lbG+";overflow:"+scx+";"+Btc+lxp+zlM+HsC+"\" xmlns:v=\"urn:schemas-microsoft-com:vml\"></div>";czG=czG.lastChild;this.registerHotKey(function(){PkL.xvCs();},74,true,true,true);}czG.innerHTML=this.JSXROOT.paint()+fPm;}catch(e){FMm.fatal("The view for this jsx3.app.Server instance cannot be generated, because the specified GUI object (an HTML object) did not exist for the environment to load into.");}this.doLoad(KzC);PkL.publish({subject:PkL.EVENT_SERVER_CREATED,target:this});};PkL.prototype.onPaint=function(){var ckx=this;window.setTimeout(function(){ckx.publish({subject:PkL.EVENT_PAINT});ckx.unsubscribeAll(PkL.EVENT_PAINT);},1);};PkL.prototype.doLoad=function(fhz){if(!this.getEnv("system")){try{this.doLoadCaught(fhz);}catch(e){FMm.error("Initialization of application "+this.getEnv("namespace")+" raised an error.",jsx3.NativeError.wrap(e));}}else{this.doLoadCaught(fhz);}};PkL.prototype.doLoadCaught=function(nHP){if(nHP==null){var Lmh=this.getSettings();var lHz=Lmh.get("objectseturl");if(lHz!="")this.JSXBODY.load(lHz,true,jsx3.app.Model.PERSISTEMBED);this.eval(Lmh.get("onload"));}else{this.JSXBODY.load(nHP,true,jsx3.app.Model.PERSISTEMBED);}};PkL.prototype.setDimensions=function(NqJ,htt,HxJ,NGw){if(NqJ instanceof Array){htt=NqJ[1];HxJ=NqJ[2];NGw=NqJ[3];NqJ=NqJ[0];}if(NqJ)this.JSXROOT.getRendered().parentNode.style.left=NqJ+"px";if(htt)this.JSXROOT.getRendered().parentNode.style.top=htt+"px";if(HxJ)this.JSXROOT.getRendered().parentNode.style.width=HxJ+"px";if(NGw)this.JSXROOT.getRendered().parentNode.style.height=NGw+"px";};PkL.prototype.loadInclude=function(PzP,vNp,pmr,JjJ){var qKd=this.getRootDocument();PzP=jsx3.resolveURI(PzP);vNp=vNp==null?"":vNp;var dgL=JjJ?"?timestamp="+(new Date()).valueOf():"";if(pmr=="css"){var bkc=qKd.createElement("link");bkc.id=vNp;bkc.href=jsx3.resolveURI(PzP+dgL);bkc.rel="stylesheet";bkc.type="text/css";qKd.getElementsByTagName("body")[0].appendChild(bkc);}else{if(pmr=="jss"){var Mbb=this.Cache.openDocument(PzP);if(Mbb!=null){objXSSNodes=Mbb.selectNodes("/data/record");var hNw=objXSSNodes.getLength();for(var GNP=0;GNP<hNw;GNP++){var rdF=objXSSNodes.getItem(GNP);var Mbl=rdF.getAttribute("jsxtext");if(rdF.getAttribute("eval")=="1"){try{Mbl=this.eval(Mbl);}catch(e){Mbl=null;FMm.warn("Evaluating the dynamic property '"+rdF.getAttribute("name")+"' in resource file '"+PzP+" raised an error.",jsx3.NativeError.wrap(e));}}this.JSS[rdF.getAttribute("jsxid")]={value:Mbl,type:rdF.getAttribute("type")};}this.tNdd();}}else{if(pmr=="xml"||pmr=="xsl"){this.Cache.openDocument(PzP,vNp);}else{if(pmr=="script"){this.unloadInclude(vNp);var bkc=qKd.createElement("script");bkc.id=vNp;bkc.src=jsx3.resolveURI(PzP+dgL);bkc.language="JavaScript";bkc.type="text/javascript";qKd.getElementsByTagName("body")[0].appendChild(bkc);}else{throw new jsx3.IllegalArgumentException("strType",pmr);}}}}};PkL.prototype.unloadInclude=function(ptn){var gmM=this.getRootDocument().getElementById(ptn);try{if(gmM)gmM.outerHTML="";}catch(e){FMm.warn("Unloading a server include raised an error.",jsx3.NativeError.wrap(e));}};PkL.prototype.loadResource=function(mhn){var KLc=false;var jCc=this.getSettings();var xFk=jCc.get("includes");if(xFk!=null){for(var NvP=0;NvP<xFk.length;NvP++){var wfM=xFk[NvP];if(wfM.id==mhn){this.loadInclude(wfM.src,wfM.id,wfM.type);KLc=true;}}}if(!KLc)FMm.warn("Failed to load the resource with ID '"+mhn+"' because no such resource was found in the application configuration file.");};PkL.prototype.setDynamicProperty=function(xvp,btp,GcP){if(btp==null&&this.JSS[xvp]!=null){delete this.JSS[xvp];}else{if(btp!=null&&xvp!=null&&xvp!=""){if(GcP==null)GcP="All";this.JSS[xvp]={value:btp,type:GcP};}}this.tNdd();};PkL.prototype.getDynamicProperty=function(zfp,cLz){var shx=this.JSS[zfp]==null?null:this.JSS[zfp].value;if(shx!=null){var tsx=/{(\d+)}/;while(tsx.test(shx)){var ccm=parseInt(RegExp.$1);if(arguments.length>=ccm+2){var Knb=RegExp.leftContext+arguments[ccm+1];shx=Knb+RegExp.rightContext;RegExp.lastIndex=Knb.length;}}}return shx;};PkL.prototype.tNdd=function(){var NHD=this.Cache.getDocument("JSX_DYNAMIC");var pKr="<data jsxid=\"jsxroot\">";for(p in this.JSS){pKr=pKr+("\n<record type=\""+this.JSS[p].type+"\" jsxid=\""+p+"\" jsxtext=\""+p+"\" />");}pKr=pKr+"\n</data>";this.Cache.setDocument("JSX_DYNAMIC",(new jsx3.xml.Document()).loadXML(pKr),true);};PkL.prototype.setCookie=function(KnK,Hhw,mtH,Mgr,GLN,FJK,fvw){this.getRootDocument().cookie=KnK+"="+(fvw?Hhw:escape(Hhw))+(mtH?"; expires="+mtH.toGMTString():"")+(Mgr?"; path="+Mgr:"")+(GLN?"; domain="+GLN:"")+(FJK?"; secure":"");};PkL.prototype.getCookie=function(HbK,cjw){var JFM=this.getRootDocument();var Bqc=JFM.cookie;var pLc=HbK+"=";var Bwm=Bqc.indexOf("; "+pLc);if(Bwm==-1){Bwm=Bqc.indexOf(pLc);if(Bwm!=0)return null;}else{Bwm=Bwm+2;}var jzL=JFM.cookie.indexOf(";",Bwm);if(jzL==-1){jzL=Bqc.length;}var Msx=Bqc.substring(Bwm+pLc.length,jzL);return cjw?Msx:unescape(Msx);};PkL.prototype.deleteCookie=function(CqJ,Fjq,PNM){this.setCookie(CqJ,"",new Date(1970,0,1),Fjq,PNM);};PkL.prototype.getRootBlock=function(){return this.JSXROOT;};PkL.prototype.getAlertsParent=function(){return this.JSXROOT;};PkL.prototype.getBodyBlock=function(){return this.JSXBODY;};PkL.prototype.getRootObjects=function(){return this.JSXBODY.getChildren().clone();};PkL.prototype.getCache=function(){return this.Cache;};PkL.prototype.getDOM=function(){return this.DOM;};PkL.prototype.getJSX=function(hMh){return this.DOM.get(hMh);};PkL.prototype.getJSXByName=function(CDh){return this.DOM.getByName(CDh);};PkL.prototype.getJSXById=function(kwh){return this.DOM.getById(kwh);};PkL.prototype.beep=function(){var MBC=this.JSXROOT.findDescendants(function(Gqw){return Gqw instanceof jsx3.gui.WindowBar&&Gqw.getType()==jsx3.gui.WindowBar.TYPEMENU;},false,false);if(MBC!=null)MBC.beep();};PkL.prototype.createAppWindow=function(pdk){if(this.WINDOWS==null)this.WINDOWS=this.Gqdg("JSXWINDOWS");if(this.WINDOWS.getChild(pdk)!=null)throw new jsx3.IllegalArgumentException("strName",pdk);var xcw=new jsx3.gui.Window(pdk);this.WINDOWS.setChild(xcw);return xcw;};PkL.prototype.loadAppWindow=function(FDL){if(this.WINDOWS==null)this.WINDOWS=this.Gqdg("JSXWINDOWS");var rrF=null;if(FDL instanceof jsx3.xml.Entity)rrF=this.WINDOWS.loadXML(FDL,false);else rrF=this.WINDOWS.load(FDL,false);if(rrF==null)throw new jsx3.Exception("Error loading jsx3.gui.Window component file "+FDL);if(!(rrF instanceof jsx3.gui.Window)){rrF.getParent().removeChild(rrF);throw new jsx3.Exception("Error loading jsx3.gui.Window, loaded component is a "+rrF.getClass().getName());}if(this.WINDOWS.getChild(rrF.getName())!=rrF){rrF.getParent().removeChild(rrF);throw new jsx3.Exception("Loaded jsx3.gui.Window has duplicate name '"+rrF.getName()+"'");}return rrF;};PkL.prototype.getAppWindow=function(NKh){if(this.WINDOWS!=null)return this.WINDOWS.getChild(NKh);return null;};PkL.prototype.getDocumentOf=function(DHP){var wrH=DHP;while(wrH!=null){if(wrH instanceof jsx3.gui.Window)return wrH.getDocument();if(wrH._jsxserver!=null)return this.getRootDocument();wrH=wrH.getParent();}return this.getEnv("GUIREF").document;};PkL.prototype.getRootDocument=function(){var wbD=this.getEnv("GUIREF");return wbD!=null?wbD.document:null;};PkL.prototype.getRenderedOf=function(tmP){var MMd=tmP.getId();var pdD=this.getEnv("GUIREF");if(pdD==null)return null;var Grp=pdD.document.getElementById(MMd);if(Grp==null&&this.WINDOWS!=null){var pLk=this.WINDOWS.getChildren();for(var bFp=0;Grp==null&&bFp<pLk.length;bFp++){var dwC=pLk[bFp].getDocument();if(dwC)Grp=dwC.getElementById(MMd);}}return Grp;};PkL.prototype.registerHotKey=function(pCF,Bnx,jHD,rpz,mHm){return this.getRootBlock().registerHotKey(pCF,Bnx,jHD,rpz,mHm);};PkL.prototype.checkHotKeys=function(LbC){return this.getRootBlock().checkHotKeys(LbC.event);};PkL.prototype.getServer=function(){return this;};PkL.prototype.isAtLeastVersion=function(Kxz){var qmf=this.getEnv("version").split(/\./);var csq=Kxz.split(/\./);for(var zcq=0;zcq<qmf.length;zcq++){if(zcq>=csq.length)return true;var fdp=parseInt(qmf[zcq]);var Nqn=parseInt(csq[zcq]);if(fdp>Nqn)return true;if(fdp<Nqn)return false;}return qmf.length==csq.length;};PkL.prototype.resolveURI=function(tGm){if(this.isAtLeastVersion("3.1")){}else{return tGm;}};PkL.prototype.toString=function(){return this.jsxsuper()+" "+this.getAppPath();};PkL.getVersion=function(){return "3.00.00";};});jsx3.util.EventDispatcher.jsxclass.mixin(jsx3.app.Server);
jsx3.Class.defineClass("jsx3.app.Monitor",jsx3.util.Logger.FormatHandler,null,function(ckB){var shL=jsx3.app.Server;ckB.mFlP=false;ckB.sKHH=jsx3.resolveURI("JSX/html/jsx3.app.Monitor.html");ckB.ideDidLoad=function(){ckB.mFlP=true;};ckB.prototype.Pxdp=false;ckB.prototype.Jkmg=true;ckB.prototype.MdBH="";ckB.prototype.dbnD=false;ckB.prototype.tLHc=null;ckB.prototype.dgFr=null;ckB.prototype.init=function(GvH){this.jsxsuper(GvH);var xJl=null;if(jsx3.Class.forName("jsx3.lang.System"))xJl=jsx3.System.getApp(this.MdBH);if(xJl!=null){this.tgqM(xJl);}else{shL.subscribe(shL.EVENT_SERVER_INITED,this,"Hxdw");}};ckB.prototype.tgqM=function(Nvl){this.Pxdp=true;this.tLHc=Nvl;if(this.dbnD){var BwK=this;Nvl.registerHotKey(function(pzq){BwK.wgtt();},"m",false,true,true);}else{this.pNNt();}};ckB.prototype.Hxdw=function(ntq){var Ljl=ntq.target;if(Ljl.getEnv("namespace")==this.MdBH){if(!ckB.mFlP||!this.Jkmg)this.tgqM(Ljl);shL.unsubscribe(shL.EVENT_SERVER_INITED,this);}};ckB.prototype.handle=function(PxJ){if(this.Pxdp&&(!ckB.mFlP||!this.Jkmg)){if(this.dgFr){if(this.dgFr.closed){if(!this.dbnD)this.pNNt();}else{if(this.dgFr.appendMessage){var GwN=this.format(PxJ).escapeHTML();this.dgFr.appendMessage(GwN);}}}}};ckB.prototype.wgtt=function(){if(this.dgFr==null||this.dgFr.closed)this.pNNt();};ckB.prototype.pNNt=function(){this.dgFr=window.open(ckB.sKHH,"Monitor_"+this.getName(),"directories=no,location=no,menubar=no,status=yes,personalbar=no,titlebar=yes,toolbar=no,resizable=yes,scrollbars=no,width=500,height=400");if(this.dgFr){if(this.dgFr.setName)this.dgFr.setName(this.tLHc.getEnv("namespace"));else this.dgFr._jsxname=this.tLHc.getEnv("namespace");window.focus();}};ckB.prototype.getDisableInIDE=function(){return this.Jkmg;};ckB.prototype.setDisableInIDE=function(LmP){this.Jkmg=LmP;};ckB.prototype.getServerNamespace=function(){return this.MdBH;};ckB.prototype.setServerNamespace=function(LKF){this.MdBH=LKF;};ckB.prototype.getActivateOnHotKey=function(){return this.dbnD;};ckB.prototype.setActivateOnHotKey=function(JFG){this.dbnD=JFG;};});jsx3.util.Logger.Handler.registerHandlerClass(jsx3.app.Monitor.jsxclass);
jsx3.Class.defineClass("jsx3.app.Model",null,[jsx3.util.EventDispatcher],function(BLj){BLj.PERSISTNONE=0;BLj.PERSISTEMBED=1;BLj.PERSISTREF=2;BLj.PERSISTREFASYNC=3;BLj.CURRENT_VERSION="urn:tibco.com/v3.0";BLj.FRAGMENTNS="JSXFRAGMENTNS";BLj.wDlP=new Object();BLj.sGbM=0;BLj.prototype._jsxid=null;BLj.prototype._jsxxbfp=null;BLj.prototype._jsxrnqw=null;BLj.prototype._jsxns=null;BLj.prototype._jsxserver=null;BLj.prototype._jsxFdPj=null;BLj.prototype._jsxBvql=null;BLj.prototype._jsxKgNb=null;BLj.prototype._jsxDkpd=null;BLj.prototype.init=function(vHG,BpF){this.jsxsuper();this.jsxinstanceof=BpF==null?"jsx3.app.Model":BpF;this.jsxname=vHG;};BLj.prototype.getChild=function(wrm){var qKL=null;if(this._jsxrnqw!=null){if(typeof(wrm)=="string"||isNaN(wrm)){var sbD=-1;var KJk=this.getChildren();var DgM=KJk.length;for(var jgb=0;jgb<DgM;jgb++){if(wrm==KJk[jgb].getName()){qKL=jgb;break;}}}else{qKL=wrm;}return this._jsxrnqw[qKL];}return null;};BLj.prototype.getChildren=function(){if(this._jsxrnqw==null)this._jsxrnqw=[];return this._jsxrnqw;};BLj.prototype.getPersistence=function(){return this._jsxBvql;};BLj.prototype.getPersistenceUrl=function(){return this._jsxKgNb;};BLj.prototype.setPersistence=function(rtf){this._jsxBvql=rtf;return this;};BLj.prototype.setPersistenceUrl=function(bpf){this._jsxKgNb=bpf;return this;};BLj.prototype.setChild=function(rgc,rFd,fln,dnH){if(!this.onSetChild(rgc)||!rgc.onSet(this))return false;var swF=false;if(dnH==null&&this._jsxns==null){throw new jsx3.Exception("The object "+rgc.getId()+" could not be bound as a child of the object "+this.getId()+" because "+this.getName()+" is a DOM fragment.");}else{if(dnH!=null){swF=true;}else{dnH=this._jsxns;}}var rNg=this.getServer();if(dnH!=BLj.FRAGMENTNS){this.bcNx(rgc,dnH,rgc._jsxFdPj!=null,this._jsxns==dnH?rNg:null);}else{this._jsxFdPj=1;}if(this._jsxrnqw==null)this._jsxrnqw=new Array();this._jsxrnqw.push(rgc);rgc._jsxxbfp=this;if(rFd==null)rFd=BLj.PERSISTNONE;rgc._jsxBvql=rFd;if(rFd==BLj.PERSISTREF||rFd==BLj.PERSISTREFASYNC)rgc._jsxKgNb=fln;if(!swF&&dnH!=BLj.FRAGMENTNS)rNg.getDOM().onChange(jsx3.app.DOM.TYPEADD,this.getId(),rgc.getId());return this;};BLj.prototype.onSetChild=function(tbN){return true;};BLj.prototype.onSet=function(BmN){return true;};BLj.prototype.spBnC=function(FlN,sKG){};BLj.prototype.bcNx=function(rNM,dhF,HGn,Cvf){rNM._jsxns=dhF;if(Cvf==null)Cvf=jsx3.getApp(dhF);rNM._jsxid=jsx3.app.DOM.newId(dhF);Cvf.getDOM().add(rNM);if(HGn){delete rNM._jsxFdPj;var lNg=rNM.getChildren();var bkJ=lNg.length;for(var tkL=0;tkL<bkJ;tkL++)rNM.bcNx(lNg[tkL],dhF,true,Cvf);}};BLj.prototype.removeChild=function(kGb,kpF){var pCF=-1;if(typeof(kGb)=="object"){var rHx=-1;var JBd=this._jsxrnqw;var CMF=JBd.length;for(var hMH=0;hMH<CMF;hMH++){if(kGb==JBd[hMH]){pCF=hMH;break;}}}else{pCF=kGb;}var lPH=this.getChild(pCF);if(lPH!=null){var lsM=this.getServer();this.bdsB(pCF,lsM);this.spBnC(lPH,pCF);lsM.getDOM().onChange(jsx3.app.DOM.TYPEREMOVE,this.getId(),lPH.getId());}};BLj.prototype.bdsB=function(dbD,BLc,svF){if(dbD>=0&&dbD<this.getChildren().length){var qqL=this.getChild(dbD);var NzG=qqL.getChildren().length;for(var szJ=NzG-1;szJ>=0;szJ--)qqL.bdsB(szJ,BLc,true);BLc.getDOM().remove(qqL);delete qqL._jsxxbfp;if(!svF)this._jsxrnqw.splice(dbD,1);else{if(dbD==0)this._jsxrnqw.splice(0,this._jsxrnqw.length);}qqL.onDestroy(this,false);}else{throw new jsx3.IllegalArgumentException("intIndex",dbD);}};BLj.prototype.removeChildren=function(){var dfc=this.getServer();var xgK=this.getChildren().clone();var fgF=xgK.length;for(var xfH=fgF-1;xfH>=0;xfH--)this.bdsB(xfH,dfc,true);if(fgF>0)this.spBnC(xgK,null);return this;};BLj.prototype.getServer=function(){var vcN=this.findAncestor(BLj.GKKC,true);return vcN!=null?vcN._jsxserver:null;};BLj.GKKC=function(nhb){return nhb._jsxserver!=null;};BLj.prototype.adoptChild=function(grJ,FPr,FfM){this.pCcn(grJ.getChildIndex(),grJ,FPr,FfM,false);};BLj.prototype.adoptChildrenFrom=function(tFH,Dsr,DML){var nsv=tFH.getChildren().clone();if(nsv.length>0){for(var sjH=nsv.length-1;sjH>=0;sjH--)this.pCcn(sjH,nsv[sjH],Dsr,DML,true);tFH.spBnC(nsv,null);}};BLj.prototype.pCcn=function(PzB,LbH,wkr,wDL,Dcr){if(wDL){this.onSetChild(LbH);LbH.onSet(this);}else{if(!this.onSetChild(LbH)||!LbH.onSet(this))return false;}var mwH=LbH.getParent();delete LbH._jsxxbfp;if(mwH._jsxrnqw!=null)mwH._jsxrnqw.splice(PzB,1);if(!Dcr)mwH.spBnC(LbH,PzB);LbH.destroyView(mwH);var nmp=mwH.getServer();var cJr=this.getServer();var xnG=nmp!=cJr;if(xnG)this.BphN(LbH,mwH,nmp,cJr);nmp.getDOM().onChange(jsx3.app.DOM.TYPEREMOVE,mwH.getId(),LbH.getId());if(this._jsxrnqw==null)this._jsxrnqw=new Array();this._jsxrnqw.push(LbH);LbH._jsxxbfp=this;if(wkr!=false)this.insertHTML(LbH,Dcr&&PzB!=0);cJr.getDOM().onChange(jsx3.app.DOM.TYPEADD,this.getId(),LbH.getId());return this;};BLj.prototype.destroyView=function(PkG){var dzD=PkG.getServer().getRenderedOf(this);if(dzD&&dzD.tagName!="TD")dzD.outerHTML="";};BLj.prototype.BphN=function(ntG,pDN,bsn,bBr){bsn.getDOM().remove(ntG);if(ntG.getServer()!=this.getServer()||pDN==null){if(typeof(ntG.resetCacheData)=="function"){var wHK=bsn.getCache().getDocument(ntG.getXMLId());var wBs=wHK!=null&&bsn.getCache().isSystem(ntG.getXMLId());var chd=bsn.getCache().getDocument(ntG.getXSLId());var cbz=chd!=null&&bsn.getCache().isSystem(ntG.getXSLId());if(ntG.getShareResources()!=jsx3.Boolean.TRUE)ntG.resetCacheData(bsn);if(wHK)bBr.getCache().setDocument(ntG.getXMLId(),wHK,wBs);if(chd&&!cbz)bBr.getCache().setDocument(ntG.getXSLId(),chd);}}ntG._jsxns=this._jsxns;bBr.getDOM().add(ntG);var dBP=ntG.getChildren().length;for(var wzB=0;wzB<dBP;wzB++)ntG.BphN(ntG.getChild(wzB),null,bsn,bBr);};BLj.prototype.doClone=function(NdH,Bxc,zzw){var pND=this.getParent();var Ckg;if(pND!=null){try{Ckg=pND.loadXML(this.toXML(),true,NdH,Bxc,zzw);}catch(e){jsx3.util.Logger.doLog("IDED31","error cloning object: "+e.description);return null;}}else{throw new jsx3.Exception("The JSX GUI Object, "+this.getId()+", can not be cloned because it is a DOM fragment.");}return Ckg;};BLj.prototype.getDescendantOfName=function(Kcs,JGL,sDf){return this.findDescendants(function(wcF){return wcF.getName()==Kcs;},JGL,false,sDf,false);};BLj.prototype.getFirstChildOfType=function(Kdr,Cbn){if(Cbn){var nLJ=null;if(typeof(Kdr)=="string")nLJ=jsx3.Class.forName(Kdr);else{if(typeof(Kdr)=="function"&&Kdr.jsxclass instanceof jsx3.Class)nLJ=Kdr.jsxclass;else{if(Kdr instanceof jsx3.Class)nLJ=Kdr;}}return this.findDescendants(function(KPD){return KPD.getClass().equals(nLJ);},false,false,true,false);}else{return this.findDescendants(function(DwD){return DwD.instanceOf(Kdr);},false,false,true,false);}};BLj.prototype.getDescendantsOfType=function(dPq,hzB){return this.findDescendants(function(qlD){return qlD.instanceOf(dPq);},false,true,hzB,false);};BLj.prototype.findDescendants=function(wtj,tzK,MGb,MkB,MbL){var GKN=tzK?"unshift":"push";var HLh=MGb?[]:null;var lJw=MbL?[this]:this.getChildren().concat();while(lJw.length>0){var PbG=lJw.shift();if(wtj.call(null,PbG)){if(MGb)HLh.push(PbG);else return PbG;}if(!MkB)lJw[GKN].apply(lJw,PbG.getChildren());}return HLh;};BLj.prototype.onDestroy=function(KPB){this.destroyView(KPB);if(this.instanceOf(jsx3.gui.Interactive))this.doEvent(jsx3.gui.Interactive.DESTROY,{objPARENT:KPB});};BLj.prototype.getId=function(){return this._jsxid;};BLj.prototype.getChildIndex=function(){var GgB=this.getParent();if(GgB!=null)return GgB.getChildren().indexOf(this);return -1;};BLj.prototype.getName=function(){return this.jsxname;};BLj.prototype.setName=function(pqp){if(pqp!=null){var GkF=this.jsxname;this.jsxname=pqp;this.getServer().getDOM().onNameChange(this,GkF);}return this;};BLj.prototype.getParent=function(){return this._jsxxbfp;};BLj.prototype.getAncestorOfType=function(shn){return this.findAncestor(function(FHz){return FHz.instanceOf(shn);},false);};BLj.prototype.getAncestorOfName=function(zzn){return this.findAncestor(function(mzz){return mzz.getName()==zzn;},false);};BLj.prototype.findAncestor=function(FNf,hwJ){var LhN=hwJ?this:this.getParent();while(LhN!=null){if(FNf.call(null,LhN))return LhN;LhN=LhN.getParent();}return null;};BLj.prototype.toXML=function(HHq){o=HHq==null?this._jsxDkpd!=null?this._jsxDkpd:new Object():HHq;var ffJ="";if(o.children!=null&&o.children){var zbt=this.getChildren().length;for(var fbw=0;fbw<zbt;fbw++){ffJ=ffJ+this.getChild(fbw).vmfk("  ");}}else{ffJ=this.vmfk("  ");}strXML="<?xml version=\"1.0\""+(o.unicode=="true"?" encoding=\"utf-16\"":"")+" ?>\r\n";strXML=strXML+"<serialization xmlns=\"urn:tibco.com/v3.0\" >\r\n";strXML=strXML+(" <unicode>"+(o.unicode!=null?o.unicode:"")+"</unicode>\r\n");strXML=strXML+(" <name><![CDATA["+(o.name!=null?o.name:"")+"]]></name>\r\n");strXML=strXML+(" <icon><![CDATA["+(o.icon!=null?o.icon:"")+"]]></icon>\r\n");strXML=strXML+(" <description><![CDATA["+(o.description!=null?o.description:"")+"]]></description>\r\n");strXML=strXML+(" <onBeforeDeserialize><![CDATA["+(o.onbefore!=null?o.onbefore:"")+"]]></onBeforeDeserialize>\r\n");strXML=strXML+(" <onAfterDeserialize><![CDATA["+(o.onafter!=null?o.onafter:"")+"]]></onAfterDeserialize>\r\n");strXML=strXML+(" <objects>\r\n"+ffJ+" </objects>\r\n");strXML=strXML+"</serialization>";return strXML;};BLj.prototype.vmfk=function(Njv){var HJk=Njv+" <variants ";var DnB=Njv+" <strings ";var nMk="";var xLP="";var gGK="";var PDd="";var PmK="";for(p in this){if(typeof(this[p])!="function"&&(p.toString()=="_jsxrnqw"||p.toString().indexOf("_jsx")!=0)){if(this[p]!=null&&typeof(this[p])=="object"){if(p.toString()=="_jsxrnqw"){if(!(this[p] instanceof Array)){jsx3.util.Logger.doLog("MODL39","The children array of "+this.getName()+" is an object but invalid: "+this[p],null,false);continue;}var vHg=this[p];var ftn=vHg.length;xLP=Njv+" <children>\r\n";for(var xsq=0;xsq<ftn;xsq++){var llf=vHg[xsq];var qcr=llf._jsxBvql;if(qcr==BLj.PERSISTREF||qcr==BLj.PERSISTREFASYNC){if(qcr==BLj.PERSISTREFASYNC&&xsq!=ftn-1){jsx3.util.Logger.doLog("MODL19",this.getServer().getDynamicProperty("jsxerr_async_child_placement",this.getName(),this.getId()),null,false);qcr=llf._jsxBvql=BLj.PERSISTREF;}xLP=xLP+(Njv+"  <include src=\""+llf._jsxKgNb+"\" async=\""+(qcr==BLj.PERSISTREFASYNC)+"\"/>\r\n");}else{if(qcr==BLj.PERSISTEMBED){xLP=xLP+llf.vmfk(Njv+"  ");}}}xLP=xLP+(Njv+" </children>\r\n");}else{if(this[p] instanceof Array&&this[p].length>0){vHg=this[p];var ftn=vHg.length;HJk=HJk+(p+"=\"[");var PGv="";for(var xsq=0;xsq<ftn;xsq++){HJk=HJk+(PGv+"'"+vHg[xsq]+"'");PGv=",";}HJk=HJk+"]\" ";}else{if(p.toString()=="jsxdynamic"){nMk=BLj.kCKh("dynamics",this[p],Njv);}else{if(p.toString()=="jsxcustom"){PDd=BLj.kCKh("properties",this[p],Njv);}else{if(p.toString()=="jsxevents"){gGK=BLj.kCKh("events",this[p],Njv);}else{if(p.toString()=="jsxxslparams"){PmK=BLj.kCKh("xslparameters",this[p],Njv);}}}}}}}else{if(this[p]!=null&&(this.jsxdynamic==null||this.jsxdynamic[p]==null)){if(typeof(this[p])=="boolean"||typeof(this[p])=="number"){HJk=HJk+(p+"=\""+this[p]+"\" ");}else{DnB=DnB+(p+"=\""+this[p].toString().escapeHTML()+"\" ");}}}}}DnB=DnB+"/>\r\n";HJk=HJk+"/>\r\n";var jps=this.getClass();var tHM=jps!=null?jps.getName():this.jsxinstanceof;return Njv+"<object type=\""+tHM+"\">\r\n"+nMk+HJk+DnB+gGK+PDd+PmK+xLP+Njv+"</object>\r\n";};BLj.kCKh=function(JHL,cvC,bks){oTemp=bks+" <"+JHL+" ";var hJK;for(var sCq in cvC){hJK=true;oTemp=oTemp+(sCq+"=\""+cvC[sCq].toString().escapeHTML()+"\" ");}oTemp=hJK?oTemp+"/>\r\n":"";return oTemp;};BLj.prototype.getNS=function(){return this._jsxns;};BLj.prototype.load=function(BGq,qqd,FGw,smG,rpm){var NvP=(new jsx3.xml.Document()).load(jsx3.resolveURI(BGq));return this.nMvB(NvP,qqd,FGw,smG,rpm,BGq);};BLj.prototype.loadXML=function(fKs,xKc,Mmw,zGF,PJl){var hcP=fKs instanceof jsx3.xml.Document?fKs:(new jsx3.xml.Document()).loadXML(fKs);return this.nMvB(hcP,xKc,Mmw,zGF,PJl);};BLj.prototype.nMvB=function(zvx,cqc,rGv,fmF,dpl,nGp){if(zvx==null)throw new jsx3.IllegalArgumentException("objXML",zvx);if(zvx.getRootNode().getNamespaceURI().indexOf(BLj.CURRENT_VERSION)!=0)throw new jsx3.Exception("Attempt to load JSX serialization file, "+fmF+", with out-of-date version "+zvx.getRootNode().getAttribute("xmlns")+".");var qwP=null;zvx.setSelectionNamespaces("xmlns:jsx1='"+BLj.CURRENT_VERSION+"'");var JnK=zvx.selectSingleNode("/jsx1:serialization/jsx1:onBeforeDeserialize").getValue();if(JnK){try{jsx3.doExecute(JnK,{objPARENT:this,objXML:zvx});}catch(e){jsx3.util.Logger.GLOBAL.error("Exception raised in onBeforeDeserialize script for component "+nGp,jsx3.NativeError.wrap(e));}}if(dpl==null)dpl=this._jsxns;var grN=zvx.selectNodes("/jsx1:serialization/jsx1:objects/jsx1:object");var scn=grN.getLength();var rNr;var MGC=new Array();for(var pzn=0;pzn<scn;pzn++){var xrL=grN.getItem(pzn);qwP=BLj.xKzz(xrL,rGv,fmF,dpl,this);if(qwP!=null){MGC.push(qwP);if(pzn==0)rNr=qwP;var JwB=this.setChild(qwP,rGv,fmF,dpl);if(JwB===false)return false;qwP.onAfterAttach();if(typeof(nGp)=="string")qwP._jsx_url=nGp;qwP.setMetaValue("name",zvx.selectSingleNode("/jsx1:serialization/jsx1:name").getValue());qwP.setMetaValue("icon",zvx.selectSingleNode("/jsx1:serialization/jsx1:icon").getValue());qwP.setMetaValue("description",zvx.selectSingleNode("/jsx1:serialization/jsx1:description").getValue());qwP.setMetaValue("onafter",zvx.selectSingleNode("/jsx1:serialization/jsx1:onAfterDeserialize").getValue());qwP.setMetaValue("onbefore",zvx.selectSingleNode("/jsx1:serialization/jsx1:onBeforeDeserialize").getValue());qwP.setMetaValue("unicode",zvx.selectSingleNode("/jsx1:serialization/jsx1:unicode").getValue());}}var xKF=this.getServer();if(rNr&&xKF)xKF.getDOM().onChange(jsx3.app.DOM.TYPEADD,this.getId(),rNr.getId());var GDK=zvx.selectSingleNode("/jsx1:serialization/jsx1:onAfterDeserialize").getValue();if(GDK){try{jsx3.doExecute(GDK,{objJSX:rNr});}catch(e){jsx3.util.Logger.GLOBAL.error("Exception raised in onAfterDeserialize script for component "+nGp,jsx3.NativeError.wrap(e));}}if(cqc!=false)for(var pzn=0;pzn<MGC.length;pzn++)this.insertHTML(MGC[pzn],pzn<MGC.length-1);return rNr;};BLj.META_FIELDS={name:1,icon:1,description:1,onafter:1,onbefore:1,unicode:1};BLj.prototype.getMetaValue=function(wnh){if(BLj.META_FIELDS[wnh])return this._jsxDkpd?this._jsxDkpd[wnh]:"";else throw new jsx3.IllegalArgumentException("strKey",wnh);};BLj.prototype.setMetaValue=function(jch,bFB){if(BLj.META_FIELDS[jch]){if(this._jsxDkpd==null)this._jsxDkpd={};this._jsxDkpd[jch]=bFB;}else{throw new jsx3.IllegalArgumentException("strKey",jch);}};BLj.xKzz=function(HJt,Pgs,mzB,lCh,Nbp){if(HJt==null)return null;var wbc=HJt.getAttribute("type");var Cgv=jsx3.Class.forName(wbc);if(Cgv==null)Cgv=jsx3.getClass(wbc);if(Cgv==null){jsx3.util.Logger.doLog("DOM2","jsx3.app.Model.doLoad(): invalid object type reference: <b>"+wbc+"</b><br>The necessary class was not loaded. Check that the serialization file is correct and that any necessary addins are enabled.");return null;}var gCn=null;if(Cgv instanceof jsx3.Class){gCn=Cgv.bless();}else{gCn=new Cgv(jsx3.DESERIALIZE);gCn.jsxinstanceof=wbc;}gCn.onBeforeAssemble(Nbp);BLj.rhwd(gCn,HJt);BLj.swNJ(gCn,HJt);BLj.jMHt(gCn,HJt,"jsxdynamic","jsx1:dynamics");BLj.jMHt(gCn,HJt,"jsxcustom","jsx1:properties");BLj.jMHt(gCn,HJt,"jsxevents","jsx1:events");BLj.jMHt(gCn,HJt,"jsxxslparams","jsx1:xslparameters");var GFK=HJt.selectNodes("jsx1:children/*");var pCj=GFK.getLength();var txr=Nbp.getServer();for(var wNk=0;wNk<pCj;wNk++){var rzf=GFK.getItem(wNk);if(rzf.getBaseName()=="object"){var whG=BLj.xKzz(rzf,BLj.PERSISTEMBED,null,lCh,Nbp);if(whG!=null)gCn.setChild(whG,BLj.PERSISTEMBED,null,lCh);}else{var fjs=rzf.getAttribute("src");var jdj=true;if(rzf.getAttribute("async")=="true"){jdj=false;if(wNk!=pCj-1){jsx3.util.Logger.doLog("MODL09",txr.getDynamicProperty("jsxerr_async_child_placement",gCn.getName(),gCn.getId()),null,false);jdj=true;}else{var DCb="a"+BLj.sGbM++;BLj.wDlP[DCb]=gCn;var PBl=lCh==this._jsxns?txr:jsx3.getApp(lCh);PBl.subscribe(jsx3.app.Server.EVENT_PAINT,function(){BLj.qnBC(DCb,fjs,lCh,gCn.getChildren().length);});}}if(jdj){var whG=gCn.load(fjs,false,BLj.PERSISTREF,fjs,lCh);}}}gCn.onAfterAssemble(Nbp);return gCn;};BLj.prototype.onBeforeAssemble=function(xNm){};BLj.prototype.onAfterAssemble=function(BDm){};BLj.prototype.onAfterAttach=function(){var hmn=this.getChildren();for(var sMl=0;sMl<hmn.length;sMl++)hmn[sMl].onAfterAttach();};BLj.qnBC=function(DkD,Nsj,Dbd,dJr){var spm=BLj.wDlP[DkD];delete BLj.wDlP[DkD];window.setTimeout(function(){spm.load(Nsj,true,BLj.PERSISTREFASYNC,Nsj,Dbd);},0);};BLj.rhwd=function(kbl,pGq){if((objProp=pGq.selectSingleNode("jsx1:strings"))!=null){var FNx=objProp.getAttributes();var jJm=FNx.getLength();for(var pDk=0;pDk<jJm;pDk++){var djG=FNx.getItem(pDk);kbl[djG.getNodeName()]=djG.getValue();}}};BLj.swNJ=function(sBl,xsq){if((objProp=xsq.selectSingleNode("jsx1:variants"))!=null){var Nzx=objProp.getAttributes();var rvm=Nzx.getLength();for(var xqk=0;xqk<rvm;xqk++){var mJF=Nzx.getItem(xqk);sBl[mJF.getNodeName()]=jsx3.eval(mJF.getValue());}}};BLj.jMHt=function(Bnl,Gfq,sbb,tGg){var vDh=new Object();if((objProp=Gfq.selectSingleNode(tGg))!=null){var LPw=objProp.getAttributes();var ptl=LPw.getLength();for(var vpj=0;vpj<ptl;vpj++){var kHD=LPw.getItem(vpj);vDh[kHD.getNodeName()]=kHD.getValue();}Bnl[sbb]=vDh;}};BLj.prototype.toString=function(DpJ){var dDJ=DpJ?"<table style='width:100%;font-family:verdana;font-size:10px;'>":"";for(p in this){if(typeof(this[p])!="function"){try{if(DpJ){dDJ=dDJ+("<tr><td>"+p+"</td><td>"+(p=="_jsxxbfp"?this.getParent()!=null?this.getParent().getName():"N/A":p=="_jsxrnqw"?"count="+this[p].length:this[p].toString().escapeHTML().doTruncate(100))+"</td></tr>");}else{var dCc="";for(var Cxj=40-p.length;Cxj>=0;Cxj--)dCc=dCc+" ";dDJ=dDJ+(p+dCc+(p=="_jsxxbfp"?this.getParent()!=null?this.getParent().getName():"N/A":p=="_jsxrnqw"?"count="+this[p].length:this[p].toString().doTruncate(100))+"\r\n");}}catch(e){}}}if(DpJ)dDJ=dDJ+"</table>";return dDJ;};BLj.getVersion=function(){return "3.00.00";};});
jsx3.Class.defineInterface("jsx3.gui.Form",null,function(Fgl){Fgl.DEFAULTDISABLEDCOLOR="#a8a8b5";Fgl.DEFAULTDISABLEDBACKGROUNDCOLOR="#d8d8e5";Fgl.STATEINVALID=0;Fgl.STATEVALID=1;Fgl.STATEDISABLED=0;Fgl.STATEENABLED=1;Fgl.OPTIONAL=0;Fgl.REQUIRED=1;Fgl._KEY_NAMES={enter:jsx3.gui.Event.KEY_ENTER,esc:jsx3.gui.Event.KEY_ESCAPE,tab:jsx3.gui.Event.KEY_TAB,del:jsx3.gui.Event.KEY_DELETE,space:jsx3.gui.Event.KEY_SPACE};Fgl.prototype.doKeyBinding=function(wrN,MvB){var KrC=MvB.split("+");var LFw=KrC.indexOf("ctrl")!=-1;var PHp=KrC.indexOf("shift")!=-1;var rgL=KrC.indexOf("alt")!=-1;var dwH=KrC[KrC.length-1];dwH=Fgl._KEY_NAMES[dwH]||dwH;if(typeof(dwH)=="string"&&dwH.match(/^\[(\d+)\]$/))dwH=parseInt(RegExp.$1);return this.getServer().registerHotKey(wrN,dwH,PHp,LFw,rgL);};Fgl.prototype.getKeyBinding=function(){return this.jsxkeycode==null?null:this.jsxkeycode;};Fgl.prototype.setKeyBinding=function(wGC){this.jsxkeycode=wGC;return this;};Fgl.prototype.getDisabledBackgroundColor=function(){return this.jsxdisabledbgcolor;};Fgl.prototype.setDisabledBackgroundColor=function(sxb){this.jsxdisabledbgcolor=sxb;return this;};Fgl.prototype.gdtqB=function(){if(this.getEnabled()!=Fgl.STATEDISABLED){return this.getBackgroundColor()?"background-color:"+this.getBackgroundColor()+";":"";}else{return this.getDisabledBackgroundColor()?"background-color:"+this.getDisabledBackgroundColor()+";":"";}};Fgl.prototype.getDisabledColor=function(){return this.jsxdisabledcolor;};Fgl.prototype.setDisabledColor=function(bHN){this.jsxdisabledcolor=bHN;return this;};Fgl.prototype.getEnabled=function(){return this.jsxenabled==null?Fgl.STATEENABLED:this.jsxenabled;};Fgl.prototype.getValue=function(){return this.jsxvalue;};Fgl.prototype.setValue=function(jkD){this.jsxvalue=jkD;return this;};Fgl.prototype.setEnabled=function(bxw,lbP){if(this.jsxenabled!=bxw){this.jsxenabled=bxw;if(lbP)this.repaint();}return this;};Fgl.prototype.nnPmr=function(){if(this.getEnabled()!=Fgl.STATEDISABLED){return "color:"+(this.getColor()?this.getColor():jsx3.gui.Block.DEFAULTCOLOR)+";";}else{return "color:"+(this.getDisabledColor()?this.getDisabledColor():Fgl.DEFAULTDISABLEDCOLOR)+";";}};Fgl.prototype.paintEnabled=function(){return this.getEnabled()==Fgl.STATEENABLED?"":" DISABLED='true' ";};Fgl.prototype.BxCtt=function(){var mwH=this.getIndex();return " tabindex=\""+(mwH!=null?mwH:0)+"\" ";};Fgl.prototype.getRequired=function(){return this.jsxrequired==null?Fgl.OPTIONAL:this.jsxrequired;};Fgl.prototype.setRequired=function(xGs){this.jsxrequired=xGs;return this;};Fgl.prototype.getValidationState=function(){return this._jsxvalidationstate==null?Fgl.STATEVALID:this._jsxvalidationstate;};Fgl.prototype.setValidationState=function(fdw){this._jsxvalidationstate=fdw;return this;};Fgl.prototype.doValidate=jsx3.Method.newAbstract();Fgl.prototype.doReset=function(){this.setValidationState(Fgl.STATEVALID);return this;};Fgl.validate=function(tHG,cBM){var DkL=Fgl.STATEVALID;if(typeof(tHG.doValidate)=="function"){DkL=tHG.doValidate();if(cBM)cBM(tHG,DkL);return DkL;}else{var sxH=tHG.getChildren().length;for(var LwK=0;LwK<sxH;LwK++){var Fpp=Fgl.validate(tHG.getChild(LwK),cBM);if(Fpp==Fgl.STATEINVALID)DkL=Fgl.STATEINVALID;}}return DkL;};Fgl.reset=function(dkG){if(typeof(dkG.getRequired)=="function")dkG.doReset();var nBH=dkG.getChildren().length;for(var GzK=0;GzK<nBH;GzK++)_Form.reset(dkG.getChild(GzK));};Fgl.getVersion=function(){return "3.00.00";};});
jsx3.Class.defineClass("jsx3.gui.HotKey",null,[jsx3.util.EventDispatcher],function(MhD){MhD.WAS_INVOKED="invoked";MhD.prototype._callback=null;MhD.prototype._keycode=null;MhD.prototype._shift=false;MhD.prototype._ctrl=false;MhD.prototype._alt=false;MhD.prototype._enabled=true;MhD.prototype._destroyed=false;MhD.prototype.init=function(mhp,pxF,Hpq,clm,LNg){if(!(mhp instanceof Function))throw new jsx3.IllegalArgumentException("callback",mhp);this._callback=mhp;this._shift=Hpq==null?null:Hpq?true:false;this._ctrl=clm==null?null:clm?true:false;this._alt=LNg==null?null:LNg?true:false;this._keycode=typeof(pxF)=="number"?pxF:jsx3.gui.Interactive.getKeyDownCharCode(pxF);if(this._keycode==null)throw new jsx3.IllegalArgumentException("key",pxF);};MhD.prototype.getKey=function(){return this._keycode+"-"+this._shift+"-"+this._ctrl+"-"+this._alt;};MhD.prototype.getKeyCode=function(){return this._keycode;};MhD.prototype.isMatch=function(hgr){var twM=(this._keycode==null||hgr.keyCode()==this._keycode)&&(this._shift==null||hgr.shiftKey()==this._shift)&&(this._ctrl==null||hgr.ctrlKey()==this._ctrl)&&(this._alt==null||hgr.altKey()==this._alt);return twM;};MhD.prototype.invoke=function(vKg,Ltk){if(this._destroyed||!this._enabled)throw new jsx3.Exception("HotKey destroyed or not enabled");this._callback.apply(vKg,Ltk);this.publish({subject:MhD.WAS_INVOKED});};MhD.prototype.isEnabled=function(){return this._enabled;};MhD.prototype.setEnabled=function(hnl){this._enabled=hnl;};MhD.prototype.isDestroyed=function(){return this._destroyed;};MhD.prototype.destroy=function(){this._destroyed=true;delete this._callback;};MhD.prototype.toString=function(){return "@HotKey key:"+this._keycode+" shift:"+this._shift+" ctrl:"+this._ctrl+" alt:"+this._alt;};});
jsx3.Class.defineClass("jsx3.gui.Painted",jsx3.app.Model,null,function(ktk){ktk.MASK_NO_EDIT={NN:false,EE:false,SS:false,WW:false,MM:false};ktk.MASK_ALL_EDIT={NN:true,EE:true,SS:true,WW:true,MM:true};ktk.prototype.init=function(JHH){this.jsxsuper(JHH);};ktk.prototype.getAbsolutePosition=function(cfC,Fld){if(Fld==null)Fld=this.getRendered();if(Fld==null)return {L:0,T:0,W:0,H:0};if(cfC==null)cfC=this.getAncestorRootBlock().getRendered();return jsx3.BrowserDOM.getRelativePosition(cfC,Fld);};ktk.prototype.applyDynamicProperties=function(){if(this.jsxdynamic==null){this.jsxdynamic=new Object();}else{var DGp=this.getServer();if(DGp==null)return;for(p in this.jsxdynamic){try{this[p]=DGp.JSS[this.jsxdynamic[p]].value;}catch(e){jsx3.util.Logger.doLog("dyn9","The GUI object, <b>"+this.getName()+"</b>, with the id, <b>"+this.getId()+"</b>, is referencing a dynamic property that does not exist (<b>"+this.jsxdynamic[p]+"</b>). <br>Note: This is most likely due to a dynamic properties resource file not being loaded when the application first initializes.");}}}};ktk.prototype.setDynamicProperty=function(fLF,HNm){if(this.jsxdynamic==null)this.jsxdynamic=new Object();if(HNm==null&&this.jsxdynamic[fLF]!=null){delete this.jsxdynamic[fLF];}else{if(HNm!=null&&fLF!=null&&fLF!=""){this.jsxdynamic[fLF]=HNm;}}return this;};ktk.prototype.getDynamicProperty=function(stF){if(this.jsxdynamic==null){this.jsxdynamic=new Object();}else{return this.jsxdynamic[stF]==null?null:this.jsxdynamic[stF];}};ktk.prototype.setAttribute=function(nKF,MCp){this.getAttributes()[nKF]=MCp;return this;};ktk.prototype.getAttribute=function(NxF){return this.getAttributes()[NxF];};ktk.prototype.getAttributes=function(){if(this.jsxcustom==null)this.jsxcustom=new Object();return this.jsxcustom;};ktk.prototype.renderAttributes=function(qKM,Nmx){var xLJ="";if(this.jsxcustom!=null){var CGf=this.instanceOf(jsx3.gui.Interactive);for(p in this.jsxcustom){var vxP=qKM!=null&&(qKM instanceof Array&&qKM.indexOf(p)>=0||qKM[p])||Nmx&&jsx3.gui.Interactive.isBridgeEventHandler(p);if(!vxP)xLJ=xLJ+(" "+p+"=\""+this.jsxcustom[p]+"\"");}}return xLJ;};ktk.prototype.removeAttribute=function(ctD){delete this.getAttributes()[ctD];return this;};ktk.prototype.removeAttributes=function(){delete this.jsxcustom;return this;};ktk.prototype.focus=function(){var jDM=this.getRendered();if(jDM!=null)jDM.focus();return jDM;};ktk.prototype.insertHTML=function(lKg){var grM=this.getRendered();if(grM!=null){grM.insertAdjacentHTML("beforeEnd",lKg.paint());this.getServer().onPaint();}return this;};ktk.prototype.getMaskProperties=function(){return ktk.MASK_NO_EDIT;};ktk.prototype.getRendered=function(){var mcp=this.getDocument();return mcp!=null?mcp.getElementById(this.getId()):null;};ktk.prototype.getDocument=function(){var pDn=this;while(pDn!=null){if(pDn instanceof jsx3.gui.Window)return pDn.getDocument();else{if(pDn._jsxserver!=null)return pDn._jsxserver.getRootDocument();}pDn=pDn.getParent();}return null;};ktk.prototype.getAncestorRootBlock=function(){var gpn=this;while(gpn!=null){if(gpn instanceof jsx3.gui.Window)return gpn.getRootBlock();else{if(gpn._jsxserver!=null)return gpn._jsxserver.getRootBlock();}gpn=gpn.getParent();}return null;};ktk.prototype.repaint=function(){strHTML=this.paint();objGUI=this.getRendered();if(objGUI!=null){objGUI.outerHTML=strHTML;this.getServer().onPaint();var ffn=this.getDocument();if(ffn!=null&&ffn.recalc!=null)window.setTimeout(function(){ffn.recalc(true);},0);}return strHTML;};ktk.prototype.paint=jsx3.Method.newAbstract();});
jsx3.Class.defineClass("jsx3.gui.Block",jsx3.gui.Painted,[jsx3.gui.Interactive],function(hKr){var jJD=jsx3.gui.Event;hKr.SCROLLSIZE=16;hKr.OVERFLOWSCROLL=1;hKr.OVERFLOWHIDDEN=2;hKr.OVERFLOWEXPAND=3;hKr.DEFAULTFONTNAME="Verdana";hKr.DEFAULTFONTSIZE=10;hKr.DEFAULTCOLOR="#000000";hKr.DEFAULTTEXT="&nbsp;";hKr.DEFAULTCLASSNAME="jsx30block";hKr.DEFAULTTAGNAME="SPAN";hKr.FONTBOLD="bold";hKr.FONTNORMAL="normal";hKr.DISPLAYBLOCK="";hKr.DISPLAYNONE="none";hKr.VISIBILITYVISIBLE="";hKr.VISIBILITYHIDDEN="hidden";hKr.NULLSTYLE=-1;hKr.ALIGNLEFT="left";hKr.ALIGNCENTER="center";hKr.ALIGNRIGHT="right";hKr.ABSOLUTE=0;hKr.RELATIVE=1;hKr.MASK_NO_EDIT=jsx3.gui.Painted.MASK_NO_EDIT;hKr.MASK_ALL_EDIT=jsx3.gui.Painted.MASK_ALL_EDIT;hKr.MASK_EAST_ONLY={NN:false,EE:true,SS:false,WW:false,MM:false};hKr.SPACE=jsx3.resolveURI("JSX/images/spc.gif");hKr.prototype.init=function(HvF,LJH,pBm,bvM,Lwc,HFB){this.jsxsuper(HvF);if(LJH!=null)this.setLeft(LJH);if(pBm!=null)this.setTop(pBm);if(bvM!=null)this.setWidth(bvM);if(Lwc!=null)this.setHeight(Lwc);if(HFB!=null)this.setText(HFB);};hKr.prototype.getBackgroundColor=function(){return this.jsxbgcolor;};hKr.prototype.setBackgroundColor=function(JDN,sMP){this.jsxbgcolor=JDN;if(sMP)this.updateGUI("backgroundColor",JDN==hKr.NULLSTYLE?"":JDN);return this;};hKr.prototype.getBackground=function(){return this.jsxbg;};hKr.prototype.setBackground=function(Bwq){this.jsxbg=Bwq;return this;};hKr.prototype.getBorder=function(){return this.jsxborder;};hKr.prototype.setBorder=function(BFr){this.jsxborder=BFr;return this;};hKr.prototype.getColor=function(){return this.jsxcolor;};hKr.prototype.setColor=function(mpM,Kwx){this.jsxcolor=mpM;if(Kwx)this.updateGUI("color",mpM==hKr.NULLSTYLE?"":mpM);return this;};hKr.prototype.getCursor=function(){return this.jsxcursor;};hKr.prototype.setCursor=function(tcK,Gdx){this.jsxcursor=tcK;if(Gdx)this.updateGUI("cursor",tcK);return this;};hKr.prototype.getCSSOverride=function(){return this.jsxstyleoverride;};hKr.prototype.setCSSOverride=function(qpq){this.jsxstyleoverride=qpq;return this;};hKr.prototype.getClassName=function(){return this.jsxclassname;};hKr.prototype.setClassName=function(DvN){this.jsxclassname=DvN;return this;};hKr.prototype.getDisplay=function(){return this.jsxdisplay;};hKr.prototype.setDisplay=function(Jjr,MCv){this.jsxdisplay=Jjr;if(MCv)this.updateGUI("display",Jjr);return this;};hKr.prototype.getFontName=function(){return this.jsxfontname;};hKr.prototype.setFontName=function(Dgf){this.jsxfontname=Dgf;return this;};hKr.prototype.getFontSize=function(){return this.jsxfontsize;};hKr.prototype.setFontSize=function(fFP){this.jsxfontsize=fFP;return this;};hKr.prototype.getFontWeight=function(){return this.jsxfontweight;};hKr.prototype.setFontWeight=function(GPG){this.jsxfontweight=GPG;return this;};hKr.prototype.getHeight=function(){return this.jsxheight;};hKr.prototype.setHeight=function(FzC,DKs){this.jsxheight=FzC;if(DKs)this.updateGUI("pixelHeight",FzC);return this;};hKr.prototype.getIndex=function(){return this.jsxindex;};hKr.prototype.setIndex=function(lGC,jqs){this.jsxindex=lGC;if(jqs){var rdH=this.getRendered();if(rdH!=null)rdH.tabIndex=lGC;}return this;};hKr.getJSXParent=function(zDG){return jsx3.BrowserDOM.getJSXParent(zDG);};hKr.prototype.getLeft=function(){return this.jsxleft;};hKr.prototype.setLeft=function(HLP,FPr){this.jsxleft=HLP;if(FPr&&!isNaN(HLP))this.updateGUI("pixelLeft",HLP);return this;};hKr.prototype.setDimensions=function(BgM,Jjx,vnM,Bwz,Nlr){if(BgM instanceof Array){this.setLeft(BgM[0],Nlr);this.setTop(BgM[1],Nlr);this.setWidth(BgM[2],Nlr);this.setHeight(BgM[3],Nlr);}else{this.setLeft(BgM,Nlr);this.setTop(Jjx,Nlr);this.setWidth(vnM,Nlr);this.setHeight(Bwz,Nlr);}};hKr.prototype.getDimensions=function(){return [this.getLeft(),this.getTop(),this.getWidth(),this.getHeight()];};hKr.prototype.getMargin=function(){return this.jsxmargin;};hKr.prototype.setMargin=function(vkk){this.jsxmargin=vkk;return this;};hKr.prototype.getMaskProperties=function(){var Ccj=new Object();Ccj.NN=true;Ccj.SS=true;Ccj.EE=true;Ccj.WW=true;Ccj.MM=this.getRelativePosition()==hKr.ABSOLUTE;return Ccj;};hKr.prototype.doBeginDrag=function(dPd,kCD){if(!dPd.rightButton())this.doDrag(dPd,kCD,null);};hKr.prototype.getOverflow=function(){return this.jsxoverflow;};hKr.prototype.setOverflow=function(wkc){this.jsxoverflow=wkc;return this;};hKr.prototype.getPadding=function(){return this.jsxpadding;};hKr.prototype.setPadding=function(qKh){this.jsxpadding=qKh;return this;};hKr.prototype.getPropertiesPath=function(){var gGF=this.getClass().getName();return "GI_Builder/components/properties/templates/"+gGF.substring(gGF.lastIndexOf(".")+1)+".xml";};hKr.prototype.getModelEventsPath=function(){var kwF=this.getClass().getName();return "GI_Builder/components/modelevents/templates/"+kwF.substring(kwF.lastIndexOf(".")+1)+".xml";};hKr.prototype.getRelativePosition=function(){return this.jsxrelativeposition;};hKr.prototype.setRelativePosition=function(lCt,Ghn){this.jsxrelativeposition=lCt;if(Ghn)this.updateGUI("position",lCt==hKr.RELATIVE?"":"absolute");return this;};hKr.prototype.getTagName=function(){return this.jsxtagname;};hKr.prototype.setTagName=function(ljg){this.jsxtagname=ljg;return this;};hKr.prototype.getText=function(){return this.jsxtext;};hKr.prototype.setText=function(svN,hjm){this.jsxtext=svN;if(hjm)this.repaint();return this;};hKr.prototype.getTextAlign=function(){return this.jsxtextalign;};hKr.prototype.setTextAlign=function(hhv){this.jsxtextalign=hhv;return this;};hKr.prototype.getTip=function(){return this.jsxtip;};hKr.prototype.setTip=function(mdp){this.jsxtip=mdp;if(objGUI=this.getRendered())objGUI.title=mdp;return this;};hKr.prototype.getTop=function(){return this.jsxtop;};hKr.prototype.setTop=function(NNK,tKk){this.jsxtop=NNK;if(tKk&&!isNaN(NNK))this.updateGUI("pixelTop",NNK);return this;};hKr.prototype.updateGUI=function(wFn,Jlj){var zlP=this.getRendered();if(zlP!=null){try{zlP.style[wFn]=Jlj;}catch(e){}}};hKr.prototype.getVisibility=function(){return this.jsxvisibility;};hKr.prototype.setVisibility=function(bfq,Pdk){this.jsxvisibility=bfq;if(Pdk)this.updateGUI("visibility",bfq);return this;};hKr.prototype.getWidth=function(){return this.jsxwidth;};hKr.prototype.setWidth=function(NGK,Gxj){this.jsxwidth=NGK;if(Gxj)this.updateGUI("pixelWidth",NGK);return this;};hKr.prototype.getZIndex=function(){return this.jsxzindex;};hKr.prototype.setZIndex=function(qwg,Cfj){this.jsxzindex=qwg;if(Cfj)this.updateGUI("zIndex",qwg);return this;};hKr.prototype.paint=function(sgh){this.applyDynamicProperties();sgh=sgh==null?this.pNnDp():sgh;var Kwv=this.getChildren().length;for(var pwx=0;pwx<Kwv;pwx++){sgh=sgh+this.getChild(pwx).paint();}var wqj=this.getId();var vlM=this.zdLlg();var rhn={};rhn[jJD.DOUBLECLICK]=true;var Ddp="";if(this.getCanSpy()==1){rhn[jJD.MOUSEOVER]=true;rhn[jJD.MOUSEOUT]=true;}if(this.getCanMove()==1){if(this.getCanMove()==1){rhn[jJD.MOUSEDOWN]="doBeginMove";rhn[jJD.MOUSEUP]="doEndMove";}}else{if(this.getMenu()!=null){rhn[jJD.MOUSEUP]=true;}else{if(this.getCanDrop()==1){rhn[jJD.MOUSEUP]=true;}}}if(rhn[jJD.MOUSEDOWN]==null&&this.getCanDrag()==1){rhn[jJD.MOUSEDOWN]="doBeginDrag";Ddp=Ddp+(" JSXDragId=\""+wqj+"\" JSXDragType=\"JSX_GENERIC\"");}var fLJ=this.renderHandlers(rhn)+Ddp;var fCL=this.renderAttributes(null,true);var psc="<"+vlM+" "+this.BxCtt()+this.dkmsd()+fLJ+" id='"+wqj+"' label='"+this.getName()+"' class='"+this.nbpjv()+"' style='"+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.DHnnv()+this.gdtqB()+this.rBNqD()+this.Gqgtx()+this.nhLcs()+this.nnPmr()+this.wjHzp()+this.mnbFn()+this.NHPtn()+this.nwrgK()+this.PGwwt()+this.vMFll()+this.rcPjv()+this.fgxdw()+this.Bqxnk()+this.chbLq()+this.hqPwJ()+this.jlMxm()+"'"+fCL+">";psc=psc+sgh;psc=psc+("</"+vlM+">");return psc;};hKr.prototype.doMouseOver=function(bdJ,hjv){if(this.getCanSpy()==1)this.doSpyOver(bdJ,hjv);if(this.getCanDrop()==1)this.doDrop(bdJ,hjv,jsx3.EventHelp.ONBEFOREDROP);};hKr.prototype.doMouseOut=function(NLH,gcv){if(this.getCanSpy()==1)this.doSpyOut(NLH,gcv);if(this.getCanDrop()==1)this.doDrop(NLH,gcv,jsx3.EventHelp.ONCANCELDROP);};hKr.prototype.doMouseUp=function(MFH,fKt){if(this.getCanDrop()==1)this.doDrop(MFH,fKt,jsx3.EventHelp.ONDROP);else this.jsxsupermix(MFH,fKt);};hKr.prototype.gdtqB=function(){return this.getBackgroundColor()?"background-color:"+this.getBackgroundColor()+";":"";};hKr.prototype.rBNqD=function(){return this.getBackground()?this.getBackground()+";":"";};hKr.prototype.fgxdw=function(){return this.getBorder()?this.getBorder()+";":"";};hKr.prototype.nnPmr=function(){return "color:"+(this.getColor()?this.getColor():hKr.DEFAULTCOLOR)+";";};hKr.prototype.Bqxnk=function(){return this.getCursor()?"cursor:"+this.getCursor()+";":"";};hKr.prototype.jlMxm=function(){return this.getCSSOverride()?this.getCSSOverride():"";};hKr.prototype.nbpjv=function(){return this.getClassName()?this.getClassName():hKr.DEFAULTCLASSNAME;};hKr.prototype.hqPwJ=function(){return !this.getDisplay()||this.getDisplay()==hKr.DISPLAYBLOCK?"":"display:none;";};hKr.prototype.mnbFn=function(){return "font-family:"+(this.getFontName()?this.getFontName():hKr.DEFAULTFONTNAME)+";";};hKr.prototype.DHnnv=function(){return "font-size:"+(this.getFontSize()?this.getFontSize():hKr.DEFAULTFONTSIZE)+"px;";};hKr.prototype.nwrgK=function(){return this.getFontWeight()?"font-weight:"+this.getFontWeight()+";":"";};hKr.prototype.nhLcs=function(){return this.getHeight()==null?"":isNaN(this.getHeight())?"height:"+this.getHeight()+";":"height:"+this.getHeight()+"px;";};hKr.prototype.BxCtt=function(){var CKm=this.getIndex();return CKm!=null?" tabindex=\""+CKm+"\" ":"";};hKr.prototype.nggnf=function(){return this.getLeft()==null||this.getRelativePosition()!=0&&(!this.getRelativePosition()||this.getRelativePosition()==hKr.RELATIVE)?"":isNaN(this.getLeft())?"left:"+this.getLeft()+";":"left:"+this.getLeft()+"px;";};hKr.prototype.rcPjv=function(){return this.getMargin()?this.getMargin()+";":"";};hKr.prototype.wjHzp=function(){if(this.getOverflow()==hKr.OVERFLOWSCROLL){return "overflow:auto;";}else{if(this.getOverflow()==hKr.OVERFLOWHIDDEN){return "overflow:hidden;";}else{return "";}}};hKr.prototype.vMFll=function(){return this.getPadding()?this.getPadding()+";":"";};hKr.prototype.vrKJJ=function(){return this.getRelativePosition()!=0&&(!this.getRelativePosition()||this.getRelativePosition()==hKr.RELATIVE)?"position:relative;":"position:absolute;";};hKr.prototype.zdLlg=function(){return this.getTagName()?this.getTagName():hKr.DEFAULTTAGNAME;};hKr.prototype.pNnDp=function(){return this.getText()?this.getText():"";};hKr.prototype.PGwwt=function(){return "text-align:"+(this.getTextAlign()?this.getTextAlign():hKr.ALIGNLEFT)+";";};hKr.prototype.dkmsd=function(){if((myTip=this.getTip())!=null){myTip=myTip.doReplace("'","&rsquo;");if(this.getKeyBinding!=null&&(myBinding=this.getKeyBinding())!=null)myTip=myTip+" ("+myBinding+")";myTip=" title='"+myTip+"' ";}else{if(this.getKeyBinding!=null&&(myBinding=this.getKeyBinding())!=null){myTip=" title='("+myBinding+")'";}else{myTip="";}}return myTip;};hKr.prototype.gMtsd=function(){return this.getTop()==null||this.getRelativePosition()!=0&&(!this.getRelativePosition()||this.getRelativePosition()==hKr.RELATIVE)?"":isNaN(this.getTop())?"top:"+this.getTop()+";":"top:"+this.getTop()+"px;";};hKr.prototype.chbLq=function(){return this.getVisibility()==null||this.getVisibility()==""||this.getVisibility()==hKr.VISIBILITYVISIBLE?"":"visibility:hidden;";};hKr.prototype.Gqgtx=function(){return this.getWidth()==null?"":isNaN(this.getWidth())?"width:"+this.getWidth()+";":"width:"+this.getWidth()+"px;";};hKr.prototype.NHPtn=function(){return "z-index:"+(this.getZIndex()?this.getZIndex():1)+";";};hKr.prototype.showMask=function(sll){if(this._jsxmaskid)this.hideMask();if(objGUI=this.getRendered()){var sNh=this.getAbsolutePosition().H;if(objGUI.onfocus)objGUI._jsxonfocus=objGUI.onfocus;objGUI.onfocus=function(){var xxz=jsx3.gui.Event.wrap(event||arguments[0]);if(!xxz.shiftKey()){var hMn=jsx3.GO(this.id);if(hMn.getChildren().length)hMn.getChild(hMn.getChildren().length-1).focus();}};if(objGUI.tabIndex)objGUI._jsxtabindex=objGUI.tabIndex;objGUI.tabIndex=0;this._jsxmaskid=jsx3.Heavyweight.getKey();var jLz=(new jsx3.Block(this._jsxmaskid,0,0,"100%","100%",sll)).setOverflow(jsx3.Block.OVERFLOWHIDDEN).setFontWeight(jsx3.Block.FONTBOLD).setTextAlign(jsx3.Block.ALIGNCENTER).setPadding("padding-top:"+sNh/2+"px;").setIndex(0).setRelativePosition(0).setZIndex(32000).setTagName("DIV").setDynamicProperty("jsxbgcolor","@Solid Shadow").setDynamicProperty("jsxbg","@Mask 70%").setDynamicProperty("jsxcursor","@Wait");jLz.setEvent("if (objEVENT.tabKey() && objEVENT.shiftKey()) { this.getParent().focus(); }",jsx3.gui.Interactive.JSXKEYDOWN);jLz.setAttribute("onfocus","var objEVENT = jsx3.gui.Event.wrap(event); if (objEVENT.shiftKey()) { jsx3.GO(this.id).getParent().focus(); }");this.setChild(jLz);this.insertHTML(jLz);}};hKr.prototype.hideMask=function(){if(objMask=jsx3.GO(this._jsxmaskid)){this.removeChild(objMask);delete this._jsxmaskid;if(objGUI=this.getRendered()){if(objGUI._jsxtabindex){objGUI.tabIndex=objGUI._jsxtabindex;}else{objGUI.removeAttribute("tabIndex");}if(objGUI._jsxonfocus){objGUI.onfocus=objGUI._jsxonfocus;delete objGUI._jsxonfocus;}else{objGUI.onfocus=null;}}}};hKr.getVersion=function(){return "3.00.00";};});
jsx3.Class.defineClass("jsx3.gui.BlockX",jsx3.gui.Block,[jsx3.xml.Cacheable],function(Jhz){Jhz.prototype.init=function(ncJ,rqL,Jhq,vcc,rdg){this.jsxsuper(ncJ,rqL,Jhq,vcc,rdg);};Jhz.prototype.paint=function(){this.applyDynamicProperties();return this.jsxsuper(this.doTransform());};Jhz.prototype.onDestroy=function(hNf,djK){this.jsxsuper(hNf,djK);this.onDestroyCached(hNf);};Jhz.getVersion=function(){return "3.00.00";};});
jsx3.Class.defineClass("jsx3.gui.ToolbarButton",jsx3.gui.Block,[jsx3.gui.Form],function(lfJ){var whn=jsx3.gui.Interactive;lfJ.TYPENORMAL=0;lfJ.TYPECHECK=1;lfJ.TYPERADIO=2;lfJ.STATEOFF=0;lfJ.STATEON=1;lfJ.IMAGEDOWN=jsx3.resolveURI("JSX/images/tbb/down.gif");lfJ.IMAGEON=jsx3.resolveURI("JSX/images/tbb/on.gif");lfJ.IMAGEOVER=jsx3.resolveURI("JSX/images/tbb/over.gif");lfJ.DEFAULTIMAGE=jsx3.resolveURI("JSX/images/tbb/default.gif");lfJ.BORDERCOLOR="#9B9BB7";lfJ.prototype.init=function(wNG,ktc,DFF){this.jsxsuper(wNG,null,null,null,null);if(ktc!=null)this.setType(ktc);if(DFF!=null)this.setTip(DFF);};lfJ.prototype.getDisabledImage=function(){return this.jsxdisabledimage!=null&&this.jsxdisabledimage!=null&&this.jsxdisabledimage.trim()!=""?jsx3.resolveURI(this.jsxdisabledimage):this.getImage();};lfJ.prototype.setDisabledImage=function(KJN){this.jsxdisabledimage=KJN;return this;};lfJ.prototype.doValidate=function(){return this.setValidationState(jsx3.gui.Form.STATEVALID).getValidationState();};lfJ.prototype.getImage=function(){return this.jsximage!=null&&this.jsximage!=null&&this.jsximage.trim()!=""?jsx3.resolveURI(this.jsximage):null;};lfJ.prototype.setImage=function(tlN){this.jsximage=tlN;return this;};lfJ.prototype.getType=function(){return this.jsxtype==null?lfJ.TYPENORMAL:this.jsxtype;};lfJ.prototype.setType=function(jKN){this.jsxtype=jKN;return this;};lfJ.prototype.doKeyPress=function(mKn,sNN){if(mKn.spaceKey()||mKn.enterKey()){this.pLfF(mKn,sNN);mKn.cancelBubble();mKn.cancelReturn();}};lfJ.prototype.getMaskProperties=function(){return jsx3.gui.Block.MASK_NO_EDIT;};lfJ.prototype.doMouseDown=function(kxn,qBN){jsx3.gui.Event.publish(kxn);qBN.style.backgroundImage="url("+lfJ.IMAGEDOWN+")";qBN.children(3).style.backgroundColor=lfJ.BORDERCOLOR;if(this.getEvent(whn.MENU)!=null)qBN.children(2).style.backgroundImage="url("+lfJ.IMAGEDOWNMENU+")";kxn.cancelBubble();kxn.cancelReturn();};lfJ.prototype.doMouseUp=function(mhn,slN){mhn.cancelBubble();slN.releaseCapture();slN.style.backgroundImage="";slN.children(3).style.backgroundColor="";this.jsxsupermix(mhn,slN);};lfJ.prototype.doMouseOver=function(MJm,fNM){if(this.getState()==lfJ.STATEOFF){fNM.style.backgroundImage="url("+lfJ.IMAGEOVER+")";fNM.children(3).style.backgroundColor="#808080";}};lfJ.prototype.doMouseOut=function(czm,jDM){if(this.getState()==lfJ.STATEOFF){jDM.style.backgroundImage="";jDM.children(3).style.backgroundColor="";}};lfJ.prototype.doExecute=function(Bhm){if(Bhm==null)Bhm=true;this.pLfF(Bhm,this.getRendered());};lfJ.prototype.doClick=function(){this.pLfF(true,this.getRendered());};lfJ.prototype.pLfF=function(mDl,sHL){var Mwb=this.doEvent(whn.EXECUTE,{objEVENT:mDl instanceof jsx3.gui.Event?mDl:null});if(Mwb!==false){if(this.getType()==lfJ.TYPERADIO){this.lqBf(lfJ.STATEON,mDl);}else{if(this.getType()==lfJ.TYPECHECK){this.lqBf(this.getState()==lfJ.STATEON?lfJ.STATEOFF:lfJ.STATEON,mDl);}}}if(mDl instanceof jsx3.gui.Event){mDl.cancelBubble();mDl.cancelReturn();}};lfJ.prototype.getGroupName=function(){return this.jsxgroupname!=null?this.jsxgroupname:null;};lfJ.prototype.setGroupName=function(JHH){this.jsxgroupname=JHH;return this;};lfJ.prototype.getDivider=function(){return this.jsxdivider!=null?this.jsxdivider:0;};lfJ.prototype.setDivider=function(LcG){this.jsxdivider=LcG;return this;};lfJ.prototype.getState=function(){return this.getType()==lfJ.TYPENORMAL?lfJ.STATEOFF:this.jsxstate==null?lfJ.STATEOFF:this.jsxstate;};lfJ.prototype.setState=function(vtG){this.lqBf(vtG,this.isOldEventProtocol());return this;};lfJ.prototype.lqBf=function(kKK,cFj){var qln=false;if(this.getType()==lfJ.TYPERADIO&&kKK==lfJ.STATEON){var NCz=this.getGroupName();var lBn=this.getParent().findDescendants(function(xML){return xML instanceof lfJ&&xML.getGroupName()==NCz;},false,true,true);for(var gvJ=lBn.length-1;gvJ>=0;gvJ--){if(lBn[gvJ]!=this&&lBn[gvJ].getType()==lfJ.TYPERADIO){lBn[gvJ].jsxstate=lfJ.STATEOFF;var jgq=lBn[gvJ].getRendered();if(jgq!=null){jgq.style.backgroundImage="";jgq.children(3).style.backgroundColor="";if(lBn[gvJ].getEvent(whn.MENU)!=null)jgq.children(2).style.backgroundImage="url("+lfJ.IMAGEOFFMENU+")";}}else{if(lBn[gvJ]==this){var GpF=this.getRendered();if(GpF!=null){GpF.style.backgroundImage="url("+lfJ.IMAGEON+")";GpF.children(3).style.backgroundColor=lfJ.BORDERCOLOR;if(this.getEvent(whn.MENU)!=null)GpF.children(2).style.backgroundImage="url("+lfJ.IMAGEONMENU+")";}}}}qln=true;}else{if(this.getType()==lfJ.TYPERADIO){var GpF=this.getRendered();if(GpF!=null){GpF.style.backgroundImage="";GpF.children(3).style.backgroundColor="";if(this.getEvent(whn.MENU)!=null)GpF.children(2).style.backgroundImage="url("+lfJ.IMAGEOFFMENU+")";}qln=true;}else{if(this.getType()==lfJ.TYPECHECK){var GpF=this.getRendered();if(GpF!=null){if(kKK==lfJ.STATEON){GpF.style.backgroundImage="url("+lfJ.IMAGEON+")";GpF.children(3).style.backgroundColor=lfJ.BORDERCOLOR;if(this.getEvent(whn.MENU)!=null)GpF.children(2).style.backgroundImage="url("+lfJ.IMAGEONMENU+")";}else{GpF.style.backgroundImage="";GpF.children(3).style.backgroundColor="";if(this.getEvent(whn.MENU)!=null)GpF.children(2).style.backgroundImage="url("+lfJ.IMAGEOFFMENU+")";}}qln=true;}}}this.jsxstate=kKK;if(qln&&cFj){var khh=null;if(cFj instanceof jsx3.gui.Event)khh={objEVENT:cFj};this.doEvent(whn.CHANGE,khh);}return this;};lfJ.prototype.setEnabled=function(Ndr,kws){if(this._jsxhotkey!=null)this._jsxhotkey.setEnabled(Ndr==Form.STATEENABLED);return this.jsxsupermix(Ndr,kws);};lfJ.bvllk={};lfJ.bvllk[jsx3.gui.Event.CLICK]="pLfF";lfJ.bvllk[jsx3.gui.Event.KEYPRESS]=true;lfJ.bvllk[jsx3.gui.Event.KEYDOWN]=true;lfJ.bvllk[jsx3.gui.Event.MOUSEDOWN]=true;lfJ.bvllk[jsx3.gui.Event.MOUSEUP]=true;lfJ.bvllk[jsx3.gui.Event.MOUSEOUT]=true;lfJ.bvllk[jsx3.gui.Event.MOUSEOVER]=true;lfJ.bvllk[jsx3.gui.Event.BLUR]="doMouseOut";lfJ.bvllk[jsx3.gui.Event.FOCUS]="doMouseOver";lfJ.prototype.paint=function(){this.applyDynamicProperties();var Pcv=this.getId();if((myKeyBinding=this.getKeyBinding())!=null){var jDP=this;if(this._jsxhotkey!=null)this._jsxhotkey.destroy();this._jsxhotkey=this.doKeyBinding(function(KdJ){jDP.pLfF(KdJ,jDP.getRendered());},myKeyBinding);this._jsxhotkey.setEnabled(this.getEnabled()!=jsx3.gui.Form.STATEDISABLED);}var MqP=this.getState()==lfJ.STATEON?"background-image:url("+lfJ.IMAGEON+");":"";var pJC=this.chbLq();var ldH=this.hqPwJ();var xbh=this.getDivider()==1?"border-left:outset 2px;":"";var Nxt=this.getDivider()==1?"padding-left:4px;":"";var vKk=this.nggnf();var fNw=this.gMtsd();var lnL=this.vrKJJ();if(this.getEnabled()==jsx3.gui.Form.STATEENABLED){var tqc=this.renderHandlers(lfJ.bvllk);var jrH=this.getImage();var FLD="";}else{var tqc="";var jrH=this.getDisabledImage();var FLD="filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);";}var zHn=jrH!=null?"<span class='jsx30toolbarbutton_img' style='background-image:url("+jrH+");' unselectable='on'></span>":"<span class='jsx30toolbarbutton_img' style='width:3px;'></span>";var lfv=(myLabel=this.getText())!=null&&myLabel!=""?"<span class='jsx30toolbarbutton_lbl' unselectable='on' style='color:"+this.getColor()+";font-family:"+this.getFontName()+";font-size:"+this.getFontSize()+"px;'>"+myLabel+"</span>":"<span></span>";var CNx="<span style='position:relative;overflow:hidden;width:1px;height:22px;'></span>";var tMw="<span class='jsx30toolbarbutton_cap' style='"+(this.getState()==lfJ.STATEON?"background-color:"+lfJ.BORDERCOLOR+";":"")+"'></span>";var GNM=this.renderAttributes(null,true);return "<span  id='"+Pcv+"' "+"label='"+this.getName()+"' "+this.BxCtt()+this.dkmsd()+tqc+" class='jsx30toolbarbutton' style='"+lnL+vKk+fNw+this.Bqxnk()+this.rcPjv()+Nxt+MqP+pJC+ldH+FLD+xbh+this.jlMxm()+"' "+GNM+">"+zHn+lfv+CNx+tMw+"</span>";};lfJ.prototype.Bqxnk=function(){return this.getEnabled()==jsx3.gui.Form.STATEENABLED?"cursor:hand;":"cursor:default;";};lfJ.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.WindowBar",jsx3.gui.Block,null,function(Ppw){Ppw.DEFAULTHEIGHT=26;Ppw.DEFAULTBACKGROUND="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ccffffff, EndColorStr=#889090af);";Ppw.DEFAULTBG="#c8c8d5";Ppw.DEFAULTBGCAPTION="#ffffff";Ppw.DEFAULTBORDER="border-top:solid 1px #e8e8f5;border-bottom:solid 1px #a8a8b5;";Ppw.DEFAULTBORDERCAPTION="border:solid 1px #9898a5;";Ppw.DEFAULTFONTWEIGHT=jsx3.gui.Block.FONTBOLD;Ppw.DEFAULTFONTSIZE=11;Ppw.TYPECAPTION=0;Ppw.TYPETOOL=1;Ppw.TYPEMENU=2;Ppw.TYPETASK=3;Ppw.prototype.init=function(wNG,ktc){this.jsxsuper(wNG);this.setRelativePosition(jsx3.gui.Block.RELATIVE);if(ktc!=null)this.setType(ktc);};Ppw.prototype.getMaskProperties=function(){return jsx3.gui.Block.MASK_NO_EDIT;};Ppw.prototype.getType=function(){return this.jsxbartype==null?Ppw.TYPECAPTION:this.jsxbartype;};Ppw.prototype.setType=function(pBb){this.jsxbartype=pBb;return this;};Ppw.prototype.setText=function(dmp,GMz){this.jsxsuper(dmp,GMz);if(GMz){if(this.getType()==Ppw.TYPECAPTION){var MCr=this.getParent();if(MCr instanceof jsx3.gui.Dialog){MCr.repaintTaskBar();}}}return this;};Ppw.prototype.doBeginMove=function(vlp,Bpb){this.getParent().doBeginMove(vlp,Bpb);};Ppw.bvllk={};Ppw.bvllk[jsx3.gui.Event.MOUSEDOWN]="doBeginMove";Ppw.prototype.paint=function(){this.applyDynamicProperties();var bqC=this.getId();var Prx=this.nggnf();var jvK=this.gMtsd();var pJk=this.vrKJJ();var xFj=this.pNnDp();var HKH=null,bvn=null,JJh=null;if(this.getType()==Ppw.TYPECAPTION){HKH="cursor:move;";bvn=this.renderHandlers(Ppw.bvllk);JJh="<span style=\"position:absolute;left:6px;top:6px;white-space:nowrap;z-index:-1;color:"+this.getColor()+";"+this.nwrgK()+this.mnbFn()+this.DHnnv()+"\">"+xFj+"</span>";}else{HKH="cursor:default;";bvn="";JJh="";}var DPp=this.renderAttributes(null,true);var Npt="<div id=\""+bqC+"\" label=\""+this.getName()+"\" "+this.dkmsd()+this.BxCtt()+bvn+" class=\"jsx30windowbar\" style=\""+this.PGwwt()+Prx+jvK+pJk+this.gdtqB()+this.NHPtn()+this.nhLcs()+this.rBNqD()+this.fgxdw()+this.vMFll()+HKH+this.jlMxm()+"\""+DPp+">";Npt=Npt+JJh;var NjF=this.getChildren().length;for(var sjH=0;sjH<NjF;sjH++){Npt=Npt+this.getChild(sjH).paint();}Npt=Npt+"</div>";return Npt;};Ppw.prototype.BxCtt=function(){var kBJ=this.getIndex();return " tabindex=\""+(kBJ!=null?kBJ:0)+"\" ";};Ppw.prototype.fgxdw=function(){return this.getBorder()?this.getBorder()+";":this.getType()==Ppw.TYPECAPTION?Ppw.DEFAULTBORDERCAPTION:Ppw.DEFAULTBORDER;};Ppw.prototype.gdtqB=function(){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():this.getType()==Ppw.TYPECAPTION?Ppw.DEFAULTBGCAPTION:Ppw.DEFAULTBG)+";";};Ppw.prototype.rBNqD=function(){return this.getBackground()?this.getBackground():this.getType()!=Ppw.TYPEMENU?Ppw.DEFAULTBACKGROUND:"";};Ppw.prototype.nhLcs=function(){return "height:"+(this.getHeight()?this.getHeight():Ppw.DEFAULTHEIGHT)+";";};Ppw.prototype.nwrgK=function(){return this.getFontWeight()?"font-weight:"+this.getFontWeight()+";":"font-weight:"+jsx3.gui.Block.FONTBOLD+";";};Ppw.prototype.DHnnv=function(){return "font-size:"+(this.getFontSize()?this.getFontSize():Ppw.DEFAULTFONTSIZE)+"px;";};Ppw.prototype.PGwwt=function(){return "text-align:"+(this.getTextAlign()?this.getTextAlign():this.getType()==Ppw.TYPECAPTION?jsx3.gui.Block.ALIGNRIGHT:jsx3.gui.Block.ALIGNLEFT)+";";};Ppw.prototype.pNnDp=function(){return this.getText()?this.getText():"";};Ppw.prototype.beep=function(){jsx3.gui.bJHjG(this.getRendered(),{filter:"none",backgroundColor:"#FFFFFF"});};Ppw.getVersion=function(){return "2.4.00";};});
jsx3.Class.defineClass("jsx3.gui.Dialog",jsx3.gui.Block,[jsx3.gui.Alerts],function(kKt){var cGD=jsx3.gui.Event;var bBm=jsx3.gui.Interactive;kKt.MINIMIZED=0;kKt.MAXIMIZED=1;kKt.DEFAULTBACKGROUNDCOLOR="#e8e8f5";kKt.FIXED=0;kKt.RESIZEABLE=1;kKt.RESIZABLE=1;kKt.PqBt=jsx3.resolveURI("JSX/images/dialog/window.gif");kKt.gkKC=jsx3.resolveURI("JSX/images/dialog/close.gif");kKt.ctkk=jsx3.resolveURI("JSX/images/dialog/min.gif");kKt.MODAL=1;kKt.NONMODAL=0;kKt.cGMG="JSX/images/dialog/max.gif";kKt.xgzD="JSX/images/dialog/restore.gif";kKt.xMck=[null,32,32,32];kKt.Hmpk=[10,10,10,10];kKt.xPjw="JSXTBB_";kKt.prototype.init=function(mDF,tDM,qFc,bLk){this.jsxsuper(mDF,null,null,tDM,qFc);var xwc=new jsx3.gui.WindowBar(mDF+"_cbar");if(bLk!=null)xwc.setText(bLk);this.setChild(xwc,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);var bJd=new jsx3.gui.ToolbarButton(this.getName()+"_btn_min",null);bJd.setEvent("this.getParent().getParent().doToggleState();",bBm.EXECUTE);bJd.setDynamicProperty("jsximage","@Min Icon");bJd.setDynamicProperty("jsxtip","@Min Tip");xwc.setChild(bJd,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);bJd=new jsx3.gui.ToolbarButton(this.getName()+"_btn_close",null);bJd.setEvent("this.getParent().getParent().doClose();",bBm.EXECUTE);bJd.setDynamicProperty("jsximage","@Close Icon");bJd.setDynamicProperty("jsxtip","@Close Tip");xwc.setChild(bJd,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);};kKt.prototype.onAfterAssemble=function(wwc){if(this.getWindowState()==kKt.MAXIMIZED)this.setZIndex(wwc.getServer().ZRANGE[jsx3.app.Server.Z_DIALOG]++);};kKt.prototype.getMaskProperties=function(){return this.getModal()==kKt.NONMODAL?jsx3.gui.Block.MASK_ALL_EDIT:jsx3.gui.Block.MASK_NO_EDIT;};kKt.prototype.doToggleState=function(fxb){var fDD=fxb!=null?fxb:this.getWindowState()==kKt.MAXIMIZED?kKt.MINIMIZED:kKt.MAXIMIZED;if((myButton=this.getTaskButton())!=null){this.setWindowState(fDD);if(fDD==kKt.MAXIMIZED){this.setDisplay(jsx3.gui.Block.DISPLAYBLOCK,true);this.setZIndex(this.getServer().ZRANGE[jsx3.app.Server.Z_DIALOG]++ *this.getZMultiplier(),true);var fBl=this;}else{this.setDisplay(jsx3.gui.Block.DISPLAYNONE,true);var fBl=myButton;}myButton.setState(fDD==kKt.MAXIMIZED?jsx3.gui.ToolbarButton.STATEON:jsx3.gui.ToolbarButton.STATEOFF);fBl.focus();}else{var vgM=this.vJqC();if(fDD==kKt.MAXIMIZED){this.setWindowState(kKt.MAXIMIZED);vgM.style.pixelHeight=vgM.children(1).style.pixelHeight+35;vgM.children(1).style.display="";vgM.children(2).style.pixelHeight=vgM.children(1).style.pixelHeight+35;if(this.getResize())vgM.children(3).style.display="";this.setZIndex(this.getServer().ZRANGE[jsx3.app.Server.Z_DIALOG]++ *this.getZMultiplier(),true);}else{this.setWindowState(kKt.MINIMIZED);vgM.children(1).style.display="none";vgM.children(2).style.pixelHeight=30;if(this.getResize())vgM.children(3).style.display="none";vgM.style.pixelHeight=30;}}};kKt.prototype.focus=function(dPk){if(this.getRendered()==null){if(!dPk){var NdG=this;window.setTimeout(function(){NdG.focus(true);},0);}return;}if(this.getWindowState()==kKt.MINIMIZED){this.doToggleState(kKt.MAXIMIZED);}else{var xDL=this.vJqC();xDL.children(1).style.display="none";this.setZIndex(this.getServer().ZRANGE[jsx3.app.Server.Z_DIALOG]++ ,true);var zzB=this.getCaptionBar();if(zzB!=null)zzB.focus();else this.vJqC().focus();xDL.children(1).style.display="";}};kKt.prototype.isFront=function(){if(this.getWindowState()==kKt.MINIMIZED)return false;var zCn=this.getParent();var jMl=zCn.getDescendantsOfType(kKt,true);for(var LNL=0;LNL<jMl.length;LNL++){if(jMl[LNL]!=this&&jMl[LNL].getWindowState()==kKt.MAXIMIZED&&jMl[LNL].getZIndex()>this.getZIndex())return false;}return true;};kKt.prototype.bringForward=function(){if(!this.isFront()){var FkL=this.FKNj();var vzN=FkL.style.display;if(vzN!="none")FkL.style.display="none";this.setZIndex(this.getServer().ZRANGE[jsx3.app.Server.Z_DIALOG]++ ,true);if(vzN!="none")FkL.style.display=vzN;}};kKt.prototype.FKNj=function(){var rMK=this.vJqC();return rMK!=null?rMK.children(1):null;};kKt.prototype.getTaskButton=function(jxk){if(jxk==null){var dHs=this.getServer();if(dHs!=null)jxk=dHs.getTaskBar();}if(jxk!=null){return jxk.getChild(kKt.xPjw+this.getId());}return null;};kKt.prototype.insertHTML=function(rGd){var mnK=this.vJqC();if(mnK!=null){mnK=mnK.childNodes.item(1);mnK.insertAdjacentHTML("beforeEnd",rGd.paint());this.getServer().onPaint();}return this;};kKt.prototype.doClose=function(){this.getParent().removeChild(this);};kKt.prototype.onSet=function(Crw){var jbs=this.getServer();if(jbs!=null&&jbs!=Crw.getServer())this.xsxt(jbs);return true;};kKt.prototype.xsxt=function(npd){if(npd==null)npd=this.getServer();var MxB=this.getTaskButton(npd.getTaskBar());if(MxB!=null)MxB.getParent().removeChild(MxB);};kKt.prototype.onDestroy=function(dcL,NkB){this.xsxt(dcL.getServer());this.jsxsuper(dcL,NkB);};kKt.prototype.getWindowState=function(){return this.jsxwindowstate!=null?this.jsxwindowstate:kKt.MAXIMIZED;};kKt.prototype.setWindowState=function(FMJ){this.jsxwindowstate=FMJ;return this;};kKt.prototype.getZMultiplier=function(){return this.jsxzmultiplier!=null?this.jsxzmultiplier:1;};kKt.prototype.setZMultiplier=function(kDk){this.jsxzmultiplier=kDk;return this;};kKt.prototype.getModal=function(){return this.jsxmodal!=null?this.jsxmodal:kKt.NONMODAL;};kKt.prototype.setModal=function(FLp){this.jsxmodal=FLp;return this;};kKt.prototype.doBeginMove=function(dFg,kJG){this._jsxxwbm=true;var FLz=this.vJqC();FLz.children(1).style.display="none";this.jsxsupermix(dFg,FLz);};kKt.prototype.doEndMove=function(hvg,nPG){if(!this._jsxxwbm)return;this._jsxxwbm=false;if(nPG.children(0)==hvg.srcElement()||nPG.children(0).children(0)==hvg.srcElement()||nPG.document.getElementsByTagName("BODY")[0]){this.jsxsupermix(hvg,nPG);if(!this.getEvent(bBm.AFTER_MOVE))this.constrainPosition();if(this.getWindowState()!=kKt.MINIMIZED){nPG.children(1).style.display="";this.focus();}}else{jsx3.util.Logger.getLogger(kKt.jsxclass.getName()).error("doEndMove: "+hvg.srcElement().outerHTML);}};kKt.prototype.vJqC=function(){if(this.jsxmodal){return this.getRendered().children(1);}else{return this.getRendered();}};kKt.prototype.getAbsolutePosition=function(lrq){return this.jsxsuper(lrq,this.vJqC());};kKt.prototype.NpjK=function(zlf,GpF){cGD.publish(zlf);if(this.doEvent(bBm.BEFORE_RESIZE,{objEVENT:zlf})===false)return;this.setLeft(GpF.parentElement.offsetLeft);this.setTop(GpF.parentElement.offsetTop);kKt._jsxCxct=GpF.parentElement.children(2);kKt._jsxCxct.style.zIndex=11;GpF.style.zIndex=12;kKt._jsxCxct.style.border="dashed 2px #4070ff";this._jsxmHpN=zlf.getScreenX();this._jsxLsBf=zlf.getScreenY();this._jsxNpsG=GpF.offsetLeft-zlf.getTrueX()+13;this._jsxrqsG=GpF.offsetTop-zlf.getTrueY()+21;GpF.setCapture();zlf.cancelBubble();};kKt.prototype.mLsh=function(Lvd,dzD){if(kKt._jsxCxct!=null){this._jsxLhbG=Lvd.getTrueX()+this._jsxNpsG;this._jsxpjbG=Lvd.getTrueY()+this._jsxrqsG;if(this._jsxLhbG<this.jsxminx){this._jsxLhbG=this.jsxminx;}else{if(this._jsxLhbG>this.jsxmaxx&&this.jsxmaxx!=null){this._jsxLhbG=this.jsxmaxx;}}if(this._jsxpjbG<this.jsxminy){this._jsxpjbG=this.jsxminy;}else{if(this._jsxpjbG>this.jsxmaxy&&this.jsxmaxy!=null){this._jsxpjbG=this.jsxmaxy;}}kKt._jsxCxct.style.pixelWidth=this._jsxLhbG;kKt._jsxCxct.style.pixelHeight=this._jsxpjbG-8;kKt._jsxCxct.nextSibling.style.pixelLeft=this._jsxLhbG-13;kKt._jsxCxct.nextSibling.style.pixelTop=this._jsxpjbG-21;}};kKt.prototype.vstq=function(pJc,vMC){cGD.publish(pJc);if(kKt._jsxCxct==null)return;var ttc=kKt._jsxCxct.style.pixelWidth;var cnx=kKt._jsxCxct.style.pixelHeight;var xkl=kKt._jsxCxct.parentElement;var Msr=this.getCaptionBar();kKt._jsxCxct.style.borderColor="";kKt._jsxCxct.style.border="outset 2px";kKt._jsxCxct.style.zIndex=0;xkl.children(3).releaseCapture();kKt._jsxCxct=null;xkl.children(3).style.pixelLeft=ttc-16;xkl.children(3).style.pixelTop=cnx-13;xkl.style.pixelWidth=ttc;xkl.style.pixelHeight=cnx;xkl.children(1).style.pixelWidth=ttc-8;xkl.children(1).style.pixelHeight=cnx-(Msr!=null?35:8);this.setWidth(ttc);this.setHeight(cnx);this.doEvent(bBm.AFTER_RESIZE,{objEVENT:pJc});pJc.cancelBubble();};kKt.prototype.setLeft=function(NmK,Mkn){this.jsxleft=NmK;if(Mkn){if(NmK==null){var srP=this.getParent().getAbsolutePosition();NmK=Math.round((srP.W-this.getWidth())/2);}var KkB=this.vJqC();if(KkB&&!isNaN(NmK)){try{KkB.style.pixelLeft=NmK;}catch(e){}}}return this;};kKt.prototype.setTop=function(GfN,lBm){this.jsxtop=GfN;if(lBm){if(GfN==null){var FHx=this.getParent().getAbsolutePosition();GfN=Math.round((FHx.H-this.getHeight())/2);}var jBz=this.vJqC();if(jBz&&!isNaN(GfN)){try{jBz.style.pixelTop=GfN;}catch(e){}}}return this;};kKt.prototype.setWidth=function(tnN,mfm){this.jsxwidth=tnN;if(mfm&&(objDlg=this.vJqC())!=null){objDlg.style.pixelWidth=tnN;objDlg.children(1).style.pixelWidth=tnN-8;objDlg.children(2).style.pixelWidth=tnN;if(objDlg.children(3))objDlg.children(3).style.pixelLeft=tnN-16;}return this;};kKt.prototype.setHeight=function(Brv,zBl){this.jsxheight=Brv;if(zBl&&(objDlg=this.vJqC())!=null){var gNq=this.getCaptionBar();objDlg.style.pixelHeight=Brv;objDlg.children(1).style.pixelHeight=Brv-(gNq!=null?35:8);objDlg.children(2).style.pixelHeight=Brv;if(objDlg.children(3))objDlg.children(3).style.pixelTop=Brv-13;}return this;};kKt.prototype.doMaximize=function(wJc){if(this._jsxdwlm!=null){this.setWidth(this._jsxdwlm.jsxwidth,true);this.setHeight(this._jsxdwlm.jsxheight,true);this.setLeft(this._jsxdwlm.jsxleft,true);this.setTop(this._jsxdwlm.jsxtop,true);delete this._jsxdwlm;if(wJc)wJc.setDynamicProperty("jsxtip","@Max Tip").setImage(kKt.cGMG).repaint();}else{this._jsxdwlm=new Object();this._jsxdwlm.jsxwidth=this.getWidth();this._jsxdwlm.jsxheight=this.getHeight();this._jsxdwlm.jsxtop=this.getTop();this._jsxdwlm.jsxleft=this.getLeft();var Lsw=this.getParent().getAbsolutePosition();this.setTop(kKt.Hmpk[0],true);this.setLeft(kKt.Hmpk[3],true);this.setWidth(Lsw.W-kKt.Hmpk[1]-kKt.Hmpk[3],true);this.setHeight(Lsw.H-kKt.Hmpk[0]-kKt.Hmpk[2],true);if(wJc)wJc.setDynamicProperty("jsxtip","@Restore Tip").setImage(kKt.xgzD).repaint();}};kKt.prototype.getResize=function(){return this.jsxresize==null?kKt.RESIZABLE:this.jsxresize;};kKt.prototype.setResize=function(lzp){this.jsxresize=lzp;return this;};kKt.prototype.setResizeParameters=function(jnp,pvb,vwb,wLB,CMB,Bht){this.jsxresize=jnp;this.jsxminx=pvb;this.jsxminy=vwb;this.jsxmaxx=wLB;this.jsxmaxy=CMB;};kKt.prototype.getCaptionBar=function(){return this.findDescendants(kKt.vkml,false,false,true);};kKt.vkml=function(PFz){return PFz instanceof jsx3.gui.WindowBar&&PFz.getType()==jsx3.gui.WindowBar.TYPECAPTION;};kKt.prototype.paint=function(){this.applyDynamicProperties();var Nxl=this.getId();var sDd=this.getWindowState()==kKt.MINIMIZED&&this.getServer().getTaskBar()==null;this.repaintTaskBar();var sqs=this.getParent();if(sqs==null){sqs={H:this.getHeight(),W:this.getWidth()};}else{sqs=sqs.getAbsolutePosition();if(sqs==null||sqs.W==0)sqs={H:this.getHeight(),W:this.getWidth()};}var jNG=this.getTop()==null||this.getTop()===""?(sqs.H-this.getHeight())/2:this.getTop();var rKB=this.getLeft()==null||this.getLeft()===""?(sqs.W-this.getWidth())/2:this.getLeft();var vrG=this.getServer()!=null?this.getServer().ZRANGE[jsx3.app.Server.Z_DIALOG]++ *this.getZMultiplier():5000;var Dxm={};Dxm[cGD.MOUSEUP]="doEndMove";if(this.getEvent("jsxkeypress")!=null)Dxm[cGD.KEYPRESS]=true;if(this.getModal()!=kKt.MODAL)Dxm[cGD.CLICK]="bringForward";var CJz=this.renderHandlers(Dxm);var CGL=this.renderAttributes(null,true);var Mwc="";var JwH=sDd?"height:30px;":"height:"+this.getHeight()+"px;";var pzj=sDd?"display:none;":"";if(this.getModal()==kKt.MODAL){Mwc=Mwc+("<div id=\""+Nxl+"\" TABINDEX=\"0\""+this.renderHandler(cGD.KEYDOWN,"KPJx")+" style=\"width:100%;height:100%;position:absolute;left:0px;top:0px;z-index:"+vrG+this.chbLq()+";\""+">");Mwc=Mwc+("<span class=\"jsx30dialog_modal\""+this.renderHandler(cGD.MOUSEDOWN,"vskJ")+this.renderHandler(cGD.MOUSEUP,"rJsL")+">&nbsp;</span>");Mwc=Mwc+("<div label=\""+this.getName()+"\" "+CJz+this.BxCtt()+" class=\""+this.nbpjv()+"\" style=\"position:absolute;border:outset 2px;z-index:"+vrG+";left:"+(rKB<0?0:rKB)+"px;top:"+(jNG<0?0:jNG)+"px;"+this.Gqgtx()+JwH+this.gdtqB()+this.rBNqD()+this.hqPwJ()+this.jlMxm()+";\""+CGL+">");}else{Mwc=Mwc+("<div id=\""+Nxl+"\" label=\""+this.getName()+"\""+CJz+this.BxCtt()+" class=\""+this.nbpjv()+"\" style=\"position:absolute;border:outset 2px;left:"+(rKB<0?0:rKB)+"px;top:"+(jNG<0?0:jNG)+"px;"+this.Gqgtx()+JwH+"z-index:"+vrG+";"+this.gdtqB()+this.rBNqD()+this.chbLq()+this.hqPwJ()+this.jlMxm()+";\""+CGL+">");}var zwd=this.getCaptionBar();if(zwd!=null)Mwc=Mwc+zwd.paint();else Mwc=Mwc+"<span style='display:none;'></span>";var hHF=zwd!=null?29:2;var vnf=this.getHeight()-(zwd!=null?35:8)+"px";Mwc=Mwc+("<div style=\"position:absolute;left:2px;top:"+hHF+"px;border:inset 1px;cursor:default;z-index:1;padding:0px;width:"+(this.getWidth()-8)+"px;height:"+vnf+";"+this.PGwwt()+this.wjHzp()+pzj+"\">");var Dkn=this.getChildren();for(var bKl=0;bKl<Dkn.length;bKl++){if(Dkn[bKl]!=zwd)Mwc=Mwc+Dkn[bKl].paint();}Mwc=Mwc+"</div>";Mwc=Mwc+("<div style=\"position:absolute;left:-2px;top:-2px;border:outset 2px;z-index:0;"+this.Gqgtx()+JwH+"\"></div>");if(this.getResize()==kKt.RESIZABLE){Mwc=Mwc+("<div"+this.renderHandler(cGD.MOUSEDOWN,"NpjK")+this.renderHandler(cGD.MOUSEMOVE,"mLsh")+this.renderHandler(cGD.MOUSEUP,"vstq")+" style=\"position:absolute;width:16px;height:11px;cursor:se-resize;z-index:12;left:"+(this.getWidth()-16)+"px;top:"+(this.getHeight()-13)+"px;background-image:url("+jsx3.gui.Block.SPACE+");"+pzj+"\"></div>");}if(this.getModal()==kKt.MODAL)Mwc=Mwc+("<span TABINDEX=\"0\""+this.renderHandler(cGD.KEYDOWN,"KPJx")+" style=\"position:absolute;left:-1px;top:0px;width:1px;height:1px;overflow:hidden;\"></span></div>");Mwc=Mwc+"</div>";return Mwc;};kKt.prototype.KPJx=function(rNH,xdv){if(rNH.srcElement()==xdv&&rNH.tabKey())rNH.cancelReturn();else rNH.cancelKeyEventInModal();};kKt.prototype.vskJ=function(BGH,HKt){this.beep().focus();BGH.cancelBubble();};kKt.prototype.rJsL=function(pBH,vFt){this.focus();pBH.cancelBubble();};kKt.prototype.repaintTaskBar=function(){var mJh=this.getId();if(this.getServer()!=null&&(myTaskBar=this.getServer().getTaskBar())!=null&&this.getModal()!=kKt.MODAL){var ctk=this.getCaptionBar();var ncf=this.getTaskButton();if(ctk!=null){if(ncf==null){ctk.applyDynamicProperties();var pxt=new jsx3.gui.ToolbarButton(kKt.xPjw+mJh,jsx3.gui.ToolbarButton.TYPECHECK,ctk.getText());myTaskBar.setChild(pxt);pxt.setEvent("var d = jsx3.GO('"+mJh+"'); d.doToggleState(d.isFront() ? jsx3.gui.Dialog.MINIMIZED : jsx3.gui.Dialog.MAXIMIZED); false;","jsxexecute");pxt.setState(this.getWindowState()==kKt.MAXIMIZED?jsx3.gui.ToolbarButton.STATEON:jsx3.gui.ToolbarButton.STATEOFF);pxt.setText(ctk.getText().doTruncate(20));pxt.setImage(kKt.PqBt);if(myTaskBar.getRendered()==null){this.getServer().subscribe(jsx3.app.Server.EVENT_PAINT,myTaskBar,"repaint");}else{myTaskBar.insertHTML(pxt);}}else{ncf.setText(ctk.getText().doTruncate(20)).repaint();}}else{if(ncf!=null){ncf.getParent().removeChild(ncf);}}}};kKt.prototype.wjHzp=function(){if(this.getOverflow()==jsx3.gui.Block.OVERFLOWHIDDEN){return "overflow:hidden;";}else{return "overflow:auto;";}};kKt.prototype.getAlertsParent=function(){return this;};kKt.prototype.constrainPosition=function(jtl){var Mtl=this.getParent().getRendered().style.pixelWidth;var HNK=this.getParent().getRendered().style.pixelHeight;if(jtl){var lLp=Mtl-kKt.Hmpk[1]-kKt.Hmpk[3];var qzt=Mtl-kKt.Hmpk[0]-kKt.Hmpk[2];if(this.getWidth()>lLp)this.setWidth(lLp,true);if(this.getHeight()>qzt)this.setHeight(qzt,true);var fGh=Mtl-this.getWidth()-kKt.Hmpk[1];var Fvn=HNK-this.getHeight()-kKt.Hmpk[2];if(this.getLeft()<kKt.Hmpk[3])this.setLeft(kKt.Hmpk[3],true);else{if(this.getLeft()>fGh)this.setLeft(fGh,true);}if(this.getTop()<kKt.Hmpk[0])this.setTop(kKt.Hmpk[0],true);else{if(this.getTop()>Fvn)this.setTop(Fvn,true);}}else{var dwv=this.getDimensions();if(kKt.xMck[3]==null&&dwv[0]<0)this.setLeft(0,true);else{if(kKt.xMck[3]!=null&&dwv[0]<kKt.xMck[3]-dwv[2])this.setLeft(kKt.xMck[3]-dwv[2],true);else{if(kKt.xMck[1]==null&&dwv[0]>Mtl-dwv[2])this.setLeft(Mtl-dwv[2],true);else{if(kKt.xMck[1]!=null&&dwv[0]>Mtl-kKt.xMck[1])this.setLeft(Mtl-kKt.xMck[1],true);}}}if(kKt.xMck[0]==null&&dwv[1]<0)this.setTop(0,true);else{if(kKt.xMck[0]!=null&&dwv[1]<kKt.xMck[0]-dwv[3])this.setTop(kKt.xMck[0]-dwv[3],true);else{if(kKt.xMck[2]==null&&dwv[1]>HNK-dwv[3])this.setTop(HNK-dwv[3],true);else{if(kKt.xMck[2]!=null&&dwv[1]>HNK-kKt.xMck[2])this.setTop(HNK-kKt.xMck[2],true);}}}}};kKt.prototype.spBnC=function(nCs,bmm){this.jsxsuper(nCs,bmm);if(kKt.vkml(nCs))this.repaint();};kKt.prototype.beep=function(){var NNg=this.getCaptionBar();if(NNg!=null){NNg.beep();}else{var rCp=this.vJqC();jsx3.gui.bJHjG(rCp,{backgroundColor:"#FFFFFF"});}return this;};kKt.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.Button",jsx3.gui.Block,[jsx3.gui.Form],function(Lsx){var hCD=jsx3.gui.Event;var smk=jsx3.gui.Form;Lsx.DEFAULTBACKGROUNDCOLOR="#e8e8f5";Lsx.DEFAULTHEIGHT=18;Lsx.prototype._jsxLxFj=null;Lsx.prototype.init=function(GvH,JPl,pbp,bFq,fKq){this.jsxsuper(GvH,JPl,pbp,bFq);this.setText(fKq);};Lsx.prototype.doValidate=function(){return this.setValidationState(jsx3.gui.Form.STATEVALID).getValidationState();};Lsx.prototype.doKeyDown=function(vCq,BGc){if(vCq.spaceKey()||vCq.enterKey())this.mFhF(vCq,BGc);};Lsx.prototype.doClick=function(){var ntq=hCD.getCurrent();this.mFhF(ntq);};Lsx.prototype.doExecute=function(Nhq){this.mFhF(Nhq);};Lsx.prototype.mFhF=function(qdq,whc){this.doEvent(jsx3.gui.Interactive.EXECUTE,{objEVENT:qdq});};Lsx.prototype.doMouseDown=function(zKp,GNb){hCD.publish(zKp);GNb.setCapture();GNb.style.border="solid 1px #9898a5";GNb.style.borderRightColor="#c8c8d5";GNb.style.borderBottomColor="#c8c8d5";GNb.children(0).focus();zKp.cancelBubble();};Lsx.prototype.doMouseUp=function(rvp,xPb){xPb.releaseCapture();xPb.style.border="solid 1px #c8c8d5";xPb.style.borderRightColor="#9898a5";xPb.style.borderBottomColor="#9898a5";this.jsxsupermix(rvp,xPb);};Lsx.prototype.getValue=function(){return this.getText();};Lsx.prototype.setEnabled=function(lhB,Jwz){if(this._jsxLxFj!=null)this._jsxLxFj.setEnabled(lhB==smk.STATEENABLED);return this.jsxsupermix(lhB,Jwz);};Lsx.FCll={};Lsx.FCll[hCD.CLICK]="mFhF";Lsx.FCll[hCD.KEYDOWN]=true;Lsx.FCll[hCD.MOUSEDOWN]=true;Lsx.FCll[hCD.MOUSEUP]=true;Lsx.prototype.paint=function(){this.applyDynamicProperties();var fhC=this.getId();if((myKeyBinding=this.getKeyBinding())!=null){var CHG=this;if(this._jsxLxFj!=null)this._jsxLxFj.destroy();this._jsxLxFj=this.doKeyBinding(function(qhb){CHG.mFhF(qhb);},myKeyBinding);this._jsxLxFj.setEnabled(this.getEnabled()!=jsx3.gui.Form.STATEDISABLED);}var kdr=this.renderHandlers(this.getEnabled()==jsx3.gui.Form.STATEENABLED?Lsx.FCll:null);var zMj=this.renderAttributes(null,true);var tPx="<span id=\""+fhC+"\" label=\""+this.getName()+"\" "+this.dkmsd()+kdr+" class=\"jsx30button\" style=\""+this.chbLq()+this.hqPwJ()+this.Bqxn()+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.Gqgt()+this.nhLc()+this.DHnnv()+this.mnbFn()+this.nwrgK()+this.nnPmr()+this.gdtq()+this.NHPtn()+this.PGww()+this.vMFll()+this.rcPjv()+this.wjHzp()+this.jlMxm()+"\""+zMj+"><SPAN "+this.BxCtt()+" style=\"position:relative;width:100%;height:100%;\">"+this.pNnDp()+"</SPAN>";var tsJ=this.getChildren().length;for(var MrL=0;MrL<tsJ;MrL++){tPx=tPx+this.getChild(MrL).paint();}tPx=tPx+"</span>";return tPx;};Lsx.prototype.gdtq=function(){if(this.getEnabled()!=jsx3.gui.Form.STATEDISABLED){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():Lsx.DEFAULTBACKGROUNDCOLOR)+";";}else{return "background-color:"+(this.getDisabledBackgroundColor()?this.getDisabledBackgroundColor():jsx3.gui.Form.DEFAULTDISABLEDBACKGROUNDCOLOR)+";";}};Lsx.prototype.PGww=function(){return "text-align:"+(this.getTextAlign()?this.getTextAlign():jsx3.gui.Block.ALIGNCENTER)+";";};Lsx.prototype.nhLc=function(){return this.getHeight()==null?"height:"+Lsx.DEFAULTHEIGHT+";":isNaN(this.getHeight())?"height:"+this.getHeight()+";":"height:"+this.getHeight()+"px;";};Lsx.prototype.Gqgt=function(){return (intWidth=this.getWidth())==null||intWidth==""?"width:10px;":isNaN(this.getWidth())?"width:"+this.getWidth()+";":"width:"+this.getWidth()+"px;";};Lsx.prototype.Bqxn=function(){return this.getEnabled()==jsx3.gui.Form.STATEENABLED?"cursor:hand;":"cursor:default;";};Lsx.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.TextBox",jsx3.gui.Block,[jsx3.gui.Form],function(Hqd){var jJD=jsx3.gui.Event;var hDm=jsx3.gui.Interactive;Hqd.TYPETEXT=0;Hqd.TYPETEXTAREA=1;Hqd.TYPEPASSWORD=2;Hqd.WRAPYES="break-word";Hqd.WRAPNO="normal";Hqd.OVERFLOWNORMAL="";Hqd.OVERFLOWAUTO="auto";Hqd.OVERFLOWSCROLL="scroll";jsx3.gui.TextBox.DEFAULTBACKGROUNDCOLOR="#ffffff";Hqd.VALIDATIONNONE="none";Hqd.VALIDATIONSSN="ssn";Hqd.VALIDATIONPHONE="phone";Hqd.VALIDATIONEMAIL="email";Hqd.VALIDATIONNUMBER="number";Hqd.VALIDATIONLETTER="letter";Hqd.VALIDATIONUSZIP="uszip";Hqd.kqgH=new Object();Hqd.kqgH[Hqd.VALIDATIONNONE]=/[\s\S]*/;Hqd.kqgH[Hqd.VALIDATIONSSN]=/^\d{3}-\d{2}-\d{4}$/;Hqd.kqgH[Hqd.VALIDATIONPHONE]=/^[0-9\-\(\) ]+$/;Hqd.kqgH[Hqd.VALIDATIONEMAIL]=/([a-zA-Z0-9_~\-\.]+)@([a-zA-Z0-9]+)\.[a-zA-Z0-9]{2,}/;Hqd.kqgH[Hqd.VALIDATIONNUMBER]=/^\d+$/;Hqd.kqgH[Hqd.VALIDATIONLETTER]=/^[a-zA-Z ,-\.]+$/;Hqd.kqgH[Hqd.VALIDATIONUSZIP]=/^\d{5}(-\d{4})?$/;Hqd.prototype.init=function(cLF,glJ,xcn,kLM,gMc,BDp,Dqb){this.jsxsuper(cLF,glJ,xcn,kLM,gMc);if(BDp!=null){this.setDefaultValue(BDp);this.setValue(BDp);}if(Dqb!=null)this.setType(Dqb);};Hqd.prototype.doKeyPress=function(jgp,pkb){if(jgp.enterKey()&&this.getEvent(hDm.EXECUTE)){this.doEvent(hDm.EXECUTE,{objEVENT:jgp});}else{this.doEvent(hDm.JSXKEYPRESS,{objEVENT:jgp});}};Hqd.prototype.doChange=function(mKn,sNN){var qNb=this.doEvent(hDm.CHANGE,{objEVENT:mKn,strVALUE:sNN.value});if(qNb===false){sNN.value=this.jsxvalue;}else{this.jsxvalue=sNN.value;}};Hqd.prototype.doKeyDown=function(fBn,lFN){if(this.jsxsupermix(fBn,lFN))return;var qGH=lFN.value;if(this._jsxprevvalue!=null&&this._jsxprevvalue!=qGH){}else{this._jsxprevvalue=qGH;}};Hqd.prototype.doKeyUp=function(Djn,KmN){this.doEvent(hDm.JSXKEYUP,{objEVENT:Djn});var LqB=KmN.value;if(this._jsxprevvalue!=LqB){var wPN=this.doEvent(hDm.INCR_CHANGE,{objEVENT:Djn,strPREVIOUS:this._jsxprevvalue,strVALUE:LqB});if(wPN===false){KmN.value=this._jsxprevvalue!=null?this._jsxprevvalue:"";}else{this._jsxprevvalue=LqB;}}};Hqd.prototype.getMaxLength=function(){return this.jsxmaxlength!=null?this.jsxmaxlength:null;};Hqd.prototype.setMaxLength=function(jhw){this.jsxmaxlength=jhw;return this;};Hqd.prototype.setOverflow=function(Mml){this.jsxoverflow=Mml;return this;};Hqd.prototype.getType=function(){return this.jsxtype==null?Hqd.TYPETEXT:this.jsxtype;};Hqd.prototype.setType=function(cBL){this.jsxtype=cBL;return this;};Hqd.prototype.getValue=function(){objGUI=this.getRendered();if(objGUI!=null){return objGUI.value;}else{return this.jsxvalue!=null?this.jsxvalue:this.getDefaultValue();}};Hqd.prototype.pCcn=function(){var znL=this.getRendered();if(znL!=null){return znL.innerHTML;}else{var DDk=this.jsxvalue!=null?this.jsxvalue:this.getDefaultValue();DDk=DDk.toString().doReplace("&","&amp;").doReplace("<","&lt;").doReplace(">","&gt;");return DDk;}};Hqd.prototype.pNnDp=function(){return this.getText()?this.getText():"";};Hqd.prototype.getDefaultValue=function(){return this.pNnDp();};Hqd.prototype.setValue=function(Jzk){this.jsxvalue=Jzk;objGUI=this.getRendered();if(objGUI!=null)objGUI.value=Jzk!=null?Jzk:"";return this;};Hqd.prototype.setDefaultValue=function(vpk){this.setText(vpk);return this;};Hqd.prototype.getWrap=function(){return this.jsxwrap==null?Hqd.WRAPYES:this.jsxwrap;};Hqd.prototype.setWrap=function(CqB){this.jsxwrap=CqB;return this;};Hqd.prototype.paint=function(){this.applyDynamicProperties();var wKw=this.getId();var fvx=this.getType();var rBB={};if(this.hasEvent(hDm.EXECUTE)||this.hasEvent(hDm.JSXKEYPRESS))rBB[jJD.KEYPRESS]=true;if(this.hasEvent(hDm.JSXKEYDOWN)||this.hasEvent(hDm.INCR_CHANGE))rBB[jJD.KEYDOWN]=true;if(this.hasEvent(hDm.JSXKEYUP)||this.hasEvent(hDm.INCR_CHANGE))rBB[jJD.KEYUP]=true;if(this.hasEvent(hDm.JSXBLUR))rBB[jJD.BLUR]=true;if(this.hasEvent(hDm.JSXDOUBLECLICK))rBB[jJD.DOUBLECLICK]=true;if(this.hasEvent(hDm.JSXCLICK))rBB[jJD.CLICK]=true;if(this.hasEvent(hDm.JSXMOUSEDOWN))rBB[jJD.MOUSEDOWN]=true;rBB[jJD.MOUSEUP]=true;rBB[jJD.CHANGE]=true;var qMb=this.renderHandlers(rBB);var qKm=this.renderAttributes(null,true);if(fvx==Hqd.TYPETEXT||fvx==Hqd.TYPEPASSWORD){strHTML="<input "+this.rscr()+" id=\""+wKw+"\" label=\""+this.getName()+"\" "+this.paintEnabled()+this.wvlG()+this.BxCtt()+this.dkmsd()+qMb+" value=\""+this.getValue().toString().doReplace("\"","&quot;")+"\" class=\"jsx30textbox\" style=\""+this.mnbFn()+this.DHnnv()+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.Gqgtx()+this.nhLcs()+this.chbLq()+this.hqPwJ()+this.NHPtn()+this.gdtqB()+this.rBNqD()+this.nnPmr()+this.PGwwt()+this.vMFll()+this.rcPjv()+this.fgxdw()+this.jlMxm()+"\" "+qKm+"/>";}else{strHTML="<textarea id=\""+wKw+"\" label=\""+this.getName()+"\" "+this.paintEnabled()+this.BxCtt()+this.dkmsd()+qMb+" class=\"jsx30textbox\" style=\"padding-left:2px;"+this.mnbFn()+this.DHnnv()+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.Gqgtx()+this.nhLcs()+this.chbLq()+this.hqPwJ()+this.NHPtn()+this.tkJm()+this.wjHzp()+this.gdtqB()+this.rBNqD()+this.nnPmr()+this.PGwwt()+this.vMFll()+this.rcPjv()+this.fgxdw()+this.jlMxm()+"\" "+this.renderAttributes()+">"+this.pCcn()+"</textarea>";}return strHTML;};Hqd.prototype.wjHzp=function(){return "overflow:"+(this.getOverflow()?this.getOverflow():Hqd.OVERFLOWNORMAL)+";";};Hqd.prototype.tkJm=function(){return "word-wrap:"+(this.getWrap()?this.getWrap():Hqd.WRAPYES)+";";};Hqd.prototype.gdtqB=function(){if(this.getEnabled()!=jsx3.gui.Form.STATEDISABLED){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():Hqd.DEFAULTBACKGROUNDCOLOR)+";";}else{return "background-color:"+(this.getDisabledBackgroundColor()?this.getDisabledBackgroundColor():jsx3.gui.Form.DEFAULTDISABLEDBACKGROUNDCOLOR)+";";}};Hqd.prototype.rscr=function(){return " type=\""+(this.getType()==Hqd.TYPETEXT?"text":"password")+"\"";};Hqd.prototype.wvlG=function(zhq){return this.getMaxLength()!=null?" MAXLENGTH=\""+parseInt(this.getMaxLength())+"\" ":"";};Hqd.prototype.getValidationType=function(){return this.jsxvalidationtype==null||this.jsxvalidationtype==""?Hqd.VALIDATIONNONE:this.jsxvalidationtype;};Hqd.prototype.setValidationType=function(sFL){this.jsxvalidationtype=sFL;return this;};Hqd.prototype.getValidationExpression=function(){return this.jsxvalidationexpression==null||this.jsxvalidationexpression==""?null:this.jsxvalidationexpression;};Hqd.prototype.setValidationExpression=function(Nrc){this.jsxvalidationexpression=Nrc;return this;};Hqd.prototype.doValidate=function(){this.setValidationState(jsx3.gui.Form.STATEVALID);var tDv=this.getValue();if(tDv==null||tDv.trim()==""){if(this.getRequired()==jsx3.gui.Form.REQUIRED)this.setValidationState(jsx3.gui.Form.STATEINVALID);}else{if(typeof(tDv)=="string"){var Jmw=this.getValidationExpression();if(Jmw==null){PqD=Hqd.kqgH[this.getValidationType()];}else{var PqD=new RegExp(Jmw);}this.setValidationState(tDv.search(PqD)==0?jsx3.gui.Form.STATEVALID:jsx3.gui.Form.STATEINVALID);}}return this.getValidationState();};Hqd.prototype.beep=function(){jsx3.gui.bJHjG(this.getRendered(),{backgroundColor:"#FFFF66"});};Hqd.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.CheckBox",jsx3.gui.Block,[jsx3.gui.Form],function(xxl){xxl.UNCHECKED=0;xxl.CHECKED=1;xxl.PARTIAL=2;xxl.prototype.init=function(GvH,KJK,nBp,Nvb,Kwf,fKq,vHs){this.jsxsuper(GvH,KJK,nBp,Nvb,Kwf,fKq);this.setDefaultChecked(vHs==null?xxl.CHECKED:vHs);this.jsxchecked=vHs;this.Cldd();};xxl.prototype.getDefaultChecked=function(){return this.jsxdefaultchecked;};xxl.prototype.setDefaultChecked=function(Hks){this.jsxdefaultchecked=Hks;return this;};xxl.prototype.getChecked=function(){return this.jsxchecked!=null?this.jsxchecked:this.getDefaultChecked();};xxl.prototype.setChecked=function(vCs){if(this.jsxchecked!=vCs){this.jsxchecked=vCs;this.Cldd();if(this.isOldEventProtocol())this.doEvent(jsx3.gui.Interactive.TOGGLE,{intCHECKED:vCs});}return this;};xxl.prototype.doClick=function(xxp,DBb){if(this.getEnabled()==jsx3.gui.Form.STATEENABLED){var Jls=this.getChecked()==xxl.CHECKED?xxl.UNCHECKED:xxl.CHECKED;this.jsxchecked=Jls;this.Cldd();this.doEvent(jsx3.gui.Interactive.TOGGLE,{objEVENT:xxp,intCHECKED:Jls});}};xxl.prototype.Cldd=function(){var wsb=this.getRendered();if(wsb!=null){wsb.children(0).checked=this.jsxchecked==xxl.CHECKED;wsb.children(2).style.visibility=this.jsxchecked==xxl.PARTIAL?"visible":"hidden";}};xxl.prototype.doKeyPress=function(Fdp){if(Fdp.enterKey()){this.doClick();Fdp.cancelBubble();Fdp.cancelReturn();Fdp.cancelKey();}};xxl.bvllk={};xxl.bvllk[jsx3.gui.Event.CLICK]=true;xxl.bvllk[jsx3.gui.Event.KEYPRESS]=true;xxl.prototype.paint=function(){this.applyDynamicProperties();var GbB=this.getId();var jzr=this.renderHandlers(xxl.bvllk);var jrt=this.renderAttributes(null,true);var gkb=this.getChecked()==xxl.PARTIAL?"visible":"hidden";var dtJ=this.getEnabled()==jsx3.gui.Form.STATEENABLED?"":"background-color:#999999;";strHTML="<span id=\""+GbB+"\" label=\""+this.getName()+"\" "+this.dkmsd()+this.paintEnabled()+jzr+" style=\"padding-top:4px;padding-left:22px;"+this.Bqxnk()+this.mnbFn()+this.DHnnv()+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.Gqgtx()+this.nhLcs()+this.nnPmr()+this.nwrgK()+this.gdtqB()+this.chbLq()+this.hqPwJ()+this.NHPtn()+this.rcPjv()+this.jlMxm()+"\""+jrt+">";strHTML=strHTML+("<input type=\"checkbox\" name=\""+this.getName()+"\" "+this.paintEnabled()+this.Hpqb()+this.BxCtt()+" style=\"position:absolute;top:0px;left:0px;\"/>");strHTML=strHTML+("<span style=\"position:relative;\">"+this.pNnDp()+"</span>");strHTML=strHTML+("<span class=\"jsx30checkbox_partial\" style=\"visibility:"+gkb+";"+dtJ+"\">&nbsp;</span>");strHTML=strHTML+"</span>";return strHTML;};xxl.prototype.Bqxnk=function(){return this.getCursor()==null?"cursor:hand;":"cursor:"+this.getCursor()+";";};xxl.prototype.Hpqb=function(){return this.getChecked()==xxl.CHECKED?" CHECKED ":"";};xxl.prototype.doValidate=function(){this.setValidationState(this.getRequired()==jsx3.gui.Form.OPTIONAL||this.getChecked()==xxl.CHECKED?jsx3.gui.Form.STATEVALID:jsx3.gui.Form.STATEINVALID);return this.getValidationState();};xxl.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.RadioButton",jsx3.gui.Block,[jsx3.gui.Form],function(hbl){hbl.UNSELECTED=0;hbl.SELECTED=1;hbl.prototype.init=function(lDH,pdL,GJp,sDb,pFf,xdr,Kwr,Glb,ftt){this.jsxsuper(lDH,pdL,GJp,sDb,pFf,xdr);this.setGroupName(Glb);this.setValue(Kwr);this.setDefaultSelected(ftt==null?hbl.SELECTED:ftt);if(ftt!=null)this.setSelected(ftt);};hbl.prototype.getGroupName=function(){return this.jsxgroupname;};hbl.prototype.setGroupName=function(HCN){this.jsxgroupname=HCN;};hbl.prototype.doClick=function(GBq,MFc){if(this.getSelected()!=hbl.SELECTED){var qPq=this.doEvent(jsx3.gui.Interactive.SELECT,{objEVENT:GBq});if(qPq!==false)this.setSelected(hbl.SELECTED);}};hbl.prototype.doKeyPress=function(ntq,txc){if(ntq.enterKey())this.doClick(ntq);};hbl.prototype.getDefaultSelected=function(){return this.jsxdefaultselected;};hbl.prototype.setDefaultSelected=function(Cgs){this.jsxdefaultselected=Cgs;return this;};hbl.prototype.getSelected=function(){return this.jsxselected!=null?this.jsxselected:this.getDefaultSelected();};hbl.prototype.setSelected=function(Bvt){Bvt=Bvt!=null?Bvt:hbl.SELECTED;var DBb=this.getRendered();this.jsxselected=Bvt;var xhr=this.getDocument();var Gjs=xhr!=null?xhr.getElementsByName(this.getGroupName()):null;if(Gjs!=null){var LzL=Gjs.length;for(var qzN=0;qzN<LzL;qzN++){if(Gjs[qzN].parentElement==DBb){Gjs[qzN].checked=Bvt==hbl.SELECTED;}else{jsx3.GO(Gjs[qzN].parentElement.id).jsxselected=hbl.UNSELECTED;Gjs[qzN].checked=false;}}}return this;};hbl.getValue=function(JCL){var Cdr=document;if(Cdr!=null){var Lfs=Cdr.getElementsByName(JCL);if(Lfs!=null){var cxL=Lfs.length;for(var vwN=0;vwN<cxL;vwN++){if(Lfs[vwN].checked)return Lfs[vwN].value;}}}};hbl.setValue=function(ckL,gvn){var Kxq=document;if(Kxq==null)return null;var fzr=Kxq.getElementsByName(ckL);if(fzr!=null){var kdL=fzr.length;for(var CcN=0;CcN<kdL;CcN++){if(fzr[CcN].value==gvn){var Fdf=jsx3.GO(fzr[CcN].parentElement.id);Fdf.setSelected(hbl.SELECTED);return Fdf;}}}};hbl.prototype.getValue=function(){return this.jsxvalue;};hbl.prototype.setValue=function(NCm){this.jsxvalue=NCm;return this;};hbl.prototype.doValidate=function(){this.setValidationState(this.getRequired()==jsx3.gui.Form.OPTIONAL||hbl.getValue(this.getGroupName())!=null?jsx3.gui.Form.STATEVALID:jsx3.gui.Form.STATEINVALID);return this.getValidationState();};hbl.bvllk={};hbl.bvllk[jsx3.gui.Event.CLICK]=true;hbl.bvllk[jsx3.gui.Event.KEYPRESS]=true;hbl.prototype.paint=function(){this.applyDynamicProperties();var Frz=this.getId();strHTML="<span id=\""+Frz+"\" label=\""+this.getName()+"\" "+this.dkmsd()+this.paintEnabled()+this.renderHandlers(hbl.bvllk)+" style=\"padding-top:4px;padding-left:22px;"+this.Bqxnk()+this.mnbFn()+this.DHnnv()+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.Gqgtx()+this.nhLcs()+this.nnPmr()+this.nwrgK()+this.gdtqB()+this.chbLq()+this.hqPwJ()+this.NHPtn()+this.rcPjv()+this.jlMxm()+"\""+this.renderAttributes(null,true)+">";strHTML=strHTML+("<input type=\"radio\" name=\""+this.getGroupName()+"\" value=\""+this.getValue()+"\" "+this.paintEnabled()+this.paintSelected()+this.BxCtt()+" style=\"position:absolute;top:0px;left:0px;\">");strHTML=strHTML+("<span style=\"position:relative;\">"+this.pNnDp()+"</span>");strHTML=strHTML+"</span>";return strHTML;};hbl.prototype.Bqxnk=function(){return this.getCursor()==null?"cursor:hand;":"cursor:"+this.getCursor()+";";};hbl.prototype.paintSelected=function(){return this.getSelected()==hbl.SELECTED?" CHECKED ":"";};hbl.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.Splitter",jsx3.gui.Block,null,function(kGw){kGw.ORIENTATIONH=0;kGw.ORIENTATIONV=1;kGw.VSPLITIMAGE="background-image:url("+jsx3.resolveURI("JSX/images/splitter/v.gif")+");background-repeat:no-repeat;background-position-x:50%;background-position-y:1px;";kGw.HSPLITIMAGE="background-image:url("+jsx3.resolveURI("JSX/images/splitter/h.gif")+");background-repeat:no-repeat;background-position-y:50%;background-position-x:1px;";kGw.DRAGCOLOR="#2050df";kGw.DEFAULTBGCOLOR="#c8c8d5";kGw.DEFAULTCHILDBGCOLOR="#ffffff";kGw.prototype.init=function(bKH,ghG){this.jsxsuper(bKH);if(ghG!=null)this.setOrientation(ghG);for(var cpf=1;cpf<=2;cpf++){var HGG=new jsx3.gui.Block(bKH+"_"+cpf,null,null,"100%","100%","");HGG.setRelativePosition(jsx3.gui.Block.RELATIVE);HGG.setBackgroundColor(kGw.DEFAULTCHILDBGCOLOR);this.setChild(HGG,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);}};kGw.prototype.insertHTML=function(spq){this.repaint();return this;};kGw.prototype.paint=function(){this.applyDynamicProperties();var brD="<span "+this.BxCtt()+this.dkmsd()+" id='"+this.getId()+"' label='"+this.getName()+"' class='"+this.nbpjv()+"' style='width:100%;height:100%;overflow:hidden;padding:0px;text-align:left;"+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.rcPjv()+this.gdtqB()+this.chbLq()+this.hqPwJ()+this.paintWrap()+this.jlMxm()+"'"+this.renderAttributes()+">";var Fct=this.renderHandler(jsx3.gui.Event.MOUSEDOWN,"doResizeStart")+this.renderHandler(jsx3.gui.Event.MOUSEUP,"doResizeEnd");if(this.getOrientation()==kGw.ORIENTATIONH){brD=brD+("<span"+Fct+" style='position:absolute;left:0px;top:0px;width:8px;height:100%;display:block;cursor:col-resize;overflow:hidden;left:"+this.getSubcontainer1Pct()+";"+this.gdtqB()+";filter:alpha(opacity=70);z-index:10;"+this.getHSplitImage()+"'>&nbsp;</span>");}else{brD=brD+("<span"+Fct+" class='jsx30splitter_vbar' style='top:"+this.getSubcontainer1Pct()+";"+this.gdtqB()+this.getVSplitImage()+";filter:alpha(opacity=70);'>&nbsp;</span>");}if(this.getOrientation()==kGw.ORIENTATIONH){brD=brD+("<span style='position:absolute;left:0px;top:0px;vertical-align:text-top;padding:0px;overflow:hidden;height:100%;z-index:0;width:"+this.getSubcontainer1Pct()+";'>");}else{brD=brD+("<span style='position:absolute;left:0px;top:0px;vertical-align:text-top;padding:0px;overflow:hidden;width:100%;z-index:0;height:"+this.getSubcontainer1Pct()+";'>");}brD=brD+this.getChild(0).paint();if(this.getOrientation()==kGw.ORIENTATIONH){brD=brD+("</span><span unselectable='on' style='position:absolute;top:0px;left:"+this.getSubcontainer1Pct()+";vertical-align:text-top;padding:0px;padding-left:8px;overflow:hidden;height:100%;z-index:1;width:"+this.getSubcontainer2Pct()+";'>");}else{brD=brD+("</span><span unselectable='on' style='position:absolute;left:0px;top:"+this.getSubcontainer1Pct()+";vertical-align:text-top;padding:0px;padding-top:8px;overflow:hidden;width:100%;z-index:1;height:"+this.getSubcontainer2Pct()+";'>");}brD=brD+this.getChild(1).paint();brD=brD+"</span></span>";return brD;};kGw.prototype.gdtqB=function(){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():kGw.DEFAULTBGCOLOR)+";";};kGw.prototype.paintWrap=function(){return "";};kGw.prototype.doResizeStart=function(fqp,ltb){if(fqp.srcElement()!=ltb)return;if(this.doEvent(jsx3.gui.Interactive.BEFORE_RESIZE,{objEVENT:fqp,objGUI:ltb})===false)return;var FLs=this.getAbsolutePosition();if(this.getOrientation()==kGw.ORIENTATIONH){var mxm=fqp.getTrueX();var kJK=FLs.L+ltb.offsetLeft;jsx3.EventHelp.constrainY=true;jsx3.EventHelp.xOff=kJK-mxm-FLs.L;}else{var Kjl=fqp.getTrueY();var HtJ=FLs.T+ltb.offsetTop;jsx3.EventHelp.constrainX=true;jsx3.EventHelp.yOff=HtJ-Kjl-FLs.T;}jsx3.EventHelp.objMyRange=this.getDocument().selection.createRange();ltb.style.backgroundColor=kGw.DRAGCOLOR;ltb.setCapture();jsx3.EventHelp.curDragObject=ltb;jsx3.EventHelp.FLAG=1;jsx3.EventHelp.beginTrackMouse();};kGw.prototype.doResizeEnd=function(kxn,qBN){qBN.releaseCapture();qBN.style.backgroundColor=this.getBackgroundColor()?this.getBackgroundColor():kGw.DEFAULTBGCOLOR;if(this.getOrientation()==kGw.ORIENTATIONH){var lxn=qBN.style.pixelLeft;var Fms=qBN.parentElement.offsetWidth;if(lxn<this.getSubcontainer1Min())lxn=this.getSubcontainer1Min();if(lxn>Fms-8)lxn=Fms-8;var bHt=lxn/Fms*100;bHt=parseInt(bHt*100)/100;var dgn=bHt+"%";}else{var lxn=qBN.style.pixelTop;var Fms=qBN.parentElement.offsetHeight;if(lxn<this.getSubcontainer1Min())lxn=this.getSubcontainer1Min();if(lxn>Fms-8)lxn=Fms-8;var bHt=lxn/Fms*100;bHt=parseInt(bHt*100)/100;var dgn=bHt+"%";}this.setSubcontainer1Pct(dgn,true);try{this.doEvent(jsx3.gui.Interactive.AFTER_RESIZE,{objEVENT:kxn,objGUI:qBN});}catch(e){jsx3.util.Logger.doLog("splt1","An error is being thrown when the onResize script for the splitter, "+this.getName()+", is executed.<br>"+e.description);}};kGw.prototype.getSubcontainer1Pct=function(){return this.jsxsubcontainer1pct==null?"50%":this.jsxsubcontainer1pct;};kGw.prototype.setSubcontainer1Pct=function(rmk,hkk){if(typeof(rmk)=="number")rmk=rmk+"%";this.jsxsubcontainer1pct=rmk;var CpM=this.getRendered();if(hkk&&CpM!=null){var FdD=+rmk.doReplace("%","");var Hwm=FdD==100?"0%":100-FdD+"%";this.setSubcontainer2Pct(Hwm);if(this.getOrientation()==kGw.ORIENTATIONH){CpM.children(0).style.left=rmk;CpM.children(1).style.width=Math.max(0,FdD-0.1)+"%";CpM.children(2).style.left=rmk;CpM.children(2).style.width=Hwm;}else{CpM.children(0).style.top=rmk;CpM.children(1).style.height=Math.max(0,FdD-0.1)+"%";CpM.children(2).style.top=rmk;CpM.children(2).style.height=Hwm;}}return this;};kGw.prototype.getSubcontainer2Pct=function(){return this.jsxsubcontainer2pct==null?"49.999%":this.jsxsubcontainer2pct;};kGw.prototype.setSubcontainer2Pct=function(cgj){this.jsxsubcontainer2pct=cgj;return this;};kGw.prototype.getSubcontainer1Min=function(){return this.jsxsubcontainer1min==null?1:this.jsxsubcontainer1min;};kGw.prototype.setSubcontainer1Min=function(dzq){this.jsxsubcontainer1min=dzq;return this;};kGw.prototype.getSubcontainer2Min=function(){return this.jsxsubcontainer2min==null?8:this.jsxsubcontainer2min;};kGw.prototype.setSubcontainer2Min=function(Ngq){this.jsxsubcontainer2min=Ngq;return this;};kGw.prototype.getOrientation=function(){return this.jsxorientation==null?kGw.ORIENTATIONH:this.jsxorientation;};kGw.prototype.setOrientation=function(Lmx){this.jsxorientation=Lmx;return this;};kGw.prototype.getVSplitImage=function(){return this.jsxvsplitimage==null||this.jsxvsplitimage==""?kGw.VSPLITIMAGE:this.jsxvsplitimage;};kGw.prototype.setVSplitImage=function(gqn){this.jsxvsplitimage=gqn;return this;};kGw.prototype.getHSplitImage=function(){return this.jsxhsplitimage==null||this.jsxhsplitimage==""?kGw.HSPLITIMAGE:this.jsxhsplitimage;};kGw.prototype.setHSplitImage=function(nKm){this.jsxhsplitimage=nKm;return this;};kGw.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.LayoutGrid",jsx3.gui.Block,null,function(zvp){zvp.ORIENTATIONCOL=0;zvp.ORIENTATIONROW=1;zvp.DEFAULTORIENTATION=0;zvp.DEFAULTREPEAT=3;zvp.DEFAULTDIMENSIONS=["33%","33%","34%"];zvp.ABSOLUTE=0;zvp.ADAPTIVE=1;zvp.prototype.init=function(FpH,JCK,mvp,Mpb,Jqf){this.jsxsuper(FpH,JCK,mvp,Mpb,Jqf);this.setRepeat(zvp.DEFAULTREPEAT);this.setDimensionArray(zvp.DEFAULTDIMENSIONS);};zvp.prototype.insertHTML=function(vMp){this.repaint();return this;};zvp.prototype.getOrientation=function(){return this.jsxorientation==null?zvp.DEFAULTORIENTATION:this.jsxorientation;};zvp.prototype.setOrientation=function(mGD){this.jsxorientation=mGD;return this;};zvp.prototype.getBestGuess=function(){return this.jsxbestguess;};zvp.prototype.setBestGuess=function(HLc){this.jsxbestguess=HLc;return this;};zvp.prototype.getRepeat=function(){return this.jsxrepeat;};zvp.prototype.setRepeat=function(Jht){this.jsxrepeat=Jht;return this;};zvp.prototype.getDimensionArray=function(){return this.jsxsizearray;};zvp.prototype.setDimensionArray=function(Bmk,Jwz){this.jsxsizearray=Bmk;if(Jwz&&Bmk!=null){var bHM=Bmk.length;for(var tHb=0;tHb<bHM;tHb++){if((objJSX=this.getChild(tHb))!=null){if(this.getOrientation()==zvp.ORIENTATIONROW){if((objGUI=objJSX.getRendered())!=null)objGUI.parentElement.width=Bmk[tHb].toString().doReplace("\\*","");}else{if((objGUI=objJSX.getRendered())!=null)objGUI.parentElement.height=Bmk[tHb].toString().doReplace("\\*","");}}}}return this;};zvp.prototype.paint=function(){this.applyDynamicProperties();var FDz="<span "+this.BxCtt()+this.dkmsd()+" id='"+this.getId()+"' label='"+this.getName()+"' class='"+this.nbpjv()+"' style='width:100%;height:100%;"+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.chbLq()+this.hqPwJ()+this.gdtqB()+this.rBNqD()+this.wjHzp()+this.NHPtn()+this.rcPjv()+this.fgxdw()+this.jlMxm()+"'"+this.renderAttributes()+">";var FxL=this.getRepeat();var hbk=this.getChildren().length;if(!FxL)FxL=hbk;FDz=FDz+("<table style='position:absolute;top:0px;left:0px;width:100%;height:100%;"+this.DHnnv()+this.mnbFn()+this.nwrgK()+this.nnPmr()+this.paintLayout()+";' border='0' cellpadding='0' cellspacing='0'>");var jNk=this.getDimensionArray();if(this.getOrientation()==zvp.ORIENTATIONROW){for(var BhM=0;BhM<hbk;){FDz=FDz+"<tr>";for(var wvL=0;wvL<FxL;wvL++){var dlz=this.getChild(BhM);var pCN=jNk!=null?" width='"+jNk[wvL]+"'":"";FDz=FDz+("<td style='position:relative;'"+pCN+">"+(dlz?dlz.paint():"&nbsp;")+"</td>");BhM++;}FDz=FDz+"</tr>";}}else{for(var BhM=0;BhM<FxL;BhM++){var kkB=jNk!=null?" height='"+jNk[BhM]+"'":"";FDz=FDz+("<tr><td style='position:relative;'"+kkB+">"+(BhM<hbk?this.getChild(BhM).paint():"&nbsp;")+"</td></tr>");}}FDz=FDz+"</table></span>";return FDz;};zvp.prototype.insertChildHTML=function(fmb){var MhM=this.getRendered();if(MhM!=null){if(this.getOrientation()==zvp.ORIENTATIONROW){var xsK=MhM.childNodes[0].childNodes[0].childNodes[0];if(xsK!=null){var Jbx=document.createElement("TD");Jbx.id=this.getId()+"_"+fmb.getId();xsK.appendChild(Jbx);Jbx.insertAdjacentHTML("BeforeEnd",fmb.paint());}}else{var nKr=MhM.childNodes[0].childNodes[0];if(nKr!=null){var tgx=document.createElement("TR");tgx.id=this.getId()+"_"+fmb.getId();var Jbx=document.createElement("TD");nKr.appendChild(tgx);tgx.appendChild(Jbx);Jbx.insertAdjacentHTML("BeforeEnd",fmb.paint());}}}};zvp.prototype.spBnC=function(lzN,MkH){this.jsxsuper(lzN,MkH);var BbH=this.getDocument().getElementById(this.getId()+"_"+lzN.getId());if(BbH!=null)BbH.parentNode.removeChild(BbH);};zvp.prototype.vrKJJ=function(){return !this.getRelativePosition()||this.getRelativePosition()==jsx3.gui.Block.ABSOLUTE?"position:absolute;":"position:relative;";};zvp.prototype.paintLayout=function(){return this.getBestGuess()!=0&&(!this.getBestGuess()||this.getBestGuess()==zvp.ADAPTIVE)?"":"table-layout:fixed";};zvp.prototype.wjHzp=function(){if(this.getOverflow()==jsx3.gui.Block.OVERFLOWSCROLL&&this.getWidth()!=null&&this.getHeight()!=null){return "overflow:auto;";}else{if(this.getOverflow()==jsx3.gui.Block.OVERFLOWHIDDEN&&this.getWidth()!=null&&this.getHeight()!=null){return "overflow:hidden;";}else{return "";}}};zvp.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.Stack",jsx3.gui.Block,null,function(qjJ){qjJ.ORIENTATIONV=0;qjJ.ORIENTATIONH=1;qjJ.ACTIVECOLOR="#aaccff";qjJ.INACTIVECOLOR="#e8e8f5";qjJ.CHILDBGCOLOR="#ffffff";qjJ.BORDER="border:solid 1px #9898a5;border-left-color:#ffffff;border-top-color:#ffffff;";qjJ.BACKGROUND="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#aaffffff, EndColorStr=#889090af);";qjJ.prototype.init=function(nnH,kDv){this.jsxsuper(nnH,null,null,null,null,kDv);var Dgg=new jsx3.gui.Block(nnH+"_content",0,0,"100%","100%");Dgg.setOverflow(jsx3.gui.Block.OVERFLOWSCROLL);Dgg.setBorder(qjJ.BORDER);Dgg.setBackgroundColor(qjJ.CHILDBGCOLOR);this.setChild(Dgg,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);};qjJ.prototype.onSet=function(hlf){return hlf instanceof jsx3.gui.StackGroup;};qjJ.prototype.fgxdw=function(){return this.getBorder()?this.getBorder()+";":qjJ.BORDER;};qjJ.prototype.doShowStack=function(){this.Gvvw(this.isOldEventProtocol());};qjJ.prototype.doShow=function(){this.Gvvw(false);};qjJ.prototype.Gvvw=function(jJp){if((objMyBlock=this.getContentChild())!=null){var Kwd=this.getParent();var fnN=Kwd.getChildren().length;var nbb=new Array();var BBP=this.getParent().paintBarSize();for(var bKN=0;bKN<fnN;bKN++){if((objChild=Kwd.getChild(bKN).getContentChild())!=objMyBlock){nbb[bKN]=BBP;if(objChild!=null)objChild.setVisibility(jsx3.gui.Block.VISIBILITYHIDDEN,true);}else{nbb[bKN]="*";Kwd.setSelectedIndex(bKN);if(objChild!=null)objChild.setVisibility(jsx3.gui.Block.VISIBILITYVISIBLE,true);}}this.getParent().setDimensionArray(nbb,true);if(jJp)this.doEvent(jsx3.gui.Interactive.EXECUTE,{objEVENT:jJp instanceof jsx3.gui.Event?jJp:null});this.doEvent(jsx3.gui.Interactive.SHOW);}else{jsx3.util.Logger.doLog("stk1","Error when showing stackpane with name, <b>"+this.getName()+"</b>. This stack instance does not have a child block to display its content.");}};qjJ.prototype.doOverStack=function(Pbn,Ffb){if(jsx3.EventHelp.isDragging())this.Gvvw(Pbn);Ffb.children(0).style.backgroundColor=this.getActiveColor();};qjJ.prototype.doOutStack=function(CFn,JJN){JJN.children(0).style.backgroundColor=this.getInactiveColor();};qjJ.prototype.getContentChild=function(){var gFM=this.getChildren().length;for(var PDb=0;PDb<gFM;PDb++){var mvD=this.getChild(PDb);if(!(mvD instanceof jsx3.gui.Menu)&&!(mvD instanceof jsx3.gui.ToolbarButton))return mvD;}return null;};qjJ.prototype.doKeyDown=function(tqn,ztN){if(this.jsxsupermix(tqn,ztN))return;if(tqn.enterKey()||tqn.spaceKey())this.Gvvw(tqn);};qjJ.bvllk={};qjJ.bvllk[jsx3.gui.Event.CLICK]="Gvvw";qjJ.bvllk[jsx3.gui.Event.KEYPRESS]=true;qjJ.bvllk[jsx3.gui.Event.MOUSEOVER]="doOverStack";qjJ.bvllk[jsx3.gui.Event.MOUSEOUT]="doOutStack";qjJ.prototype.paint=function(){this.applyDynamicProperties();if(!(this.getParent() instanceof jsx3.gui.StackGroup))return "";var MpB=this.getId();var hLP="<span id=\""+MpB+"\" label=\""+this.getName()+"\" class=\""+this.nbpjv()+"\" style=\"position:relative;width:100%;height:100%;\">";this.setOrientation(this.getParent().getOrientation());var mvx=this.getParent().paintBarSize();var Pgq=this.renderHandlers(qjJ.bvllk)+" style=\"position:relative;"+(this.getOrientation()==0?"text-align:right;":"text-align:left;")+"\"><span "+this.dkmsd()+this.BxCtt()+" style=\"position:absolute;left:0px;top:0px;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:hand;"+this.vMFll()+this.DHnnv()+this.rBNqD()+this.nnPmr()+this.mnbFn()+this.nwrgK()+this.PGwwt()+this.fgxdw()+this.jlMxm()+"\""+this.renderAttributes()+">";hLP=hLP+"<table style=\"position:absolute;top:0px;left:0px;table-layout:fixed;width:100%;height:100%;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";var rvK=null;var pfl=[];var cNG=this.getChildren().length;for(var vMJ=0;vMJ<cNG;vMJ++){var jDx=this.getChild(vMJ);if(jDx instanceof jsx3.gui.Menu)pfl.push(jDx);else{if(rvK==null)rvK=jDx;}}if(this.getOrientation()==qjJ.ORIENTATIONH){hLP=hLP+"<tr>";hLP=hLP+("<td width=\""+mvx+"\" "+Pgq+"<div style=\"position:relative;height:"+(mvx-2)+"px;filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);\"><span style=\"position:relative;height:24px;padding-top:4px;\">"+this.pNnDp()+"</span><span style=\"position:relative;height:22px;\">");cNG=this.getChildren().length;for(var vMJ=0;vMJ<pfl.length;vMJ++){hLP=hLP+pfl[vMJ].paint();}hLP=hLP+"</span></div></span></td>";hLP=hLP+("<td width=\"*\" style=\"position:relative;\">"+(rvK!=null?rvK.paint():"&nbsp;")+"</td>");hLP=hLP+"</tr>";}else{hLP=hLP+("<tr><td height=\""+mvx+"\" "+Pgq+this.pNnDp()+"</span>");cNG=this.getChildren().length;for(var vMJ=0;vMJ<pfl.length;vMJ++){hLP=hLP+pfl[vMJ].paint();}hLP=hLP+"</td></tr>";hLP=hLP+("<tr><td height=\"*\" style=\"position:relative;\">"+(rvK!=null?rvK.paint():"&nbsp;")+"</td></tr>");}hLP=hLP+"</table></span>";return hLP;};qjJ.prototype.setText=function(Khl,PJw){this.jsxsuper(Khl,false);if(PJw){var HwL=this.getRendered();if(HwL){var dMD=this.getOrientation()==qjJ.ORIENTATIONH?HwL.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]:HwL.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0];dMD.innerHTML=Khl;}}return this;};qjJ.prototype.insertHTML=function(PjN){var sfL=this.getRendered();if(sfL){var zzx=this.getOrientation()==qjJ.ORIENTATIONH?sfL.childNodes[0].childNodes[0].childNodes[0].childNodes[1]:sfL.childNodes[0].childNodes[0].childNodes[1].childNodes[0];zzx.innerHTML=PjN.paint();}return this;};qjJ.prototype.vMFll=function(){if(this.getPadding())return this.getPadding();return this.getOrientation()==0?"padding:5px;":"padding-top:5px;";};qjJ.prototype.nwrgK=function(){return this.getFontWeight()?"font-weight:"+this.getFontWeight()+";":"font-weight:"+jsx3.gui.Block.FONTBOLD+";";};qjJ.prototype.rBNqD=function(){return this.getBackground()?this.getBackground()+";":qjJ.BACKGROUND;};qjJ.prototype.BxCtt=function(){var MGF=this.getIndex();return " tabindex=\""+(MGF!=null?MGF:0)+"\" ";};qjJ.prototype.getActiveColor=function(){return this.jsxactivecolor==null?qjJ.ACTIVECOLOR:this.jsxactivecolor;};qjJ.prototype.setActiveColor=function(Cml){this.jsxactivecolor=Cml;return this;};qjJ.prototype.getInactiveColor=function(){return this.jsxinactivecolor==null?qjJ.INACTIVECOLOR:this.jsxinactivecolor;};qjJ.prototype.setInactiveColor=function(ljC){this.jsxinactivecolor=ljC;return this;};qjJ.prototype.getOrientation=function(){return this.jsxorientation==null?qjJ.ORIENTATIONV:this.jsxorientation;};qjJ.prototype.setOrientation=function(xmw){this.jsxorientation=xmw;return this;};qjJ.prototype.focus=function(){this.doShowStack();this.jsxsuper();};qjJ.prototype.isFront=function(){var dkh=this.getParent().getChildren();var dMD=dkh.indexOf(this);return dMD>=0&&this.getParent().getSelectedIndex()==dMD;};qjJ.prototype.getMaskProperties=function(){return jsx3.gui.Block.MASK_NO_EDIT;};qjJ.getVersion=function(){return "3.0.00";};});jsx3.gui.Stack.prototype.getBackgroundColor=jsx3.gui.Stack.prototype.getInactiveColor;jsx3.gui.Stack.prototype.setBackgroundColor=jsx3.gui.Stack.prototype.setInactiveColor;
jsx3.Class.defineClass("jsx3.gui.StackGroup",jsx3.gui.LayoutGrid,null,function(DJH){var zvp=jsx3.gui.LayoutGrid;DJH.ORIENTATIONV=zvp.ORIENTATIONCOL;DJH.ORIENTATIONH=zvp.ORIENTATIONROW;DJH.DEFAULTSTACKCOUNT=2;DJH.DEFAULTDIMENSIONS=["27","*"];DJH.DEFAULTBARSIZE=27;DJH.prototype.init=function(LrH,bGK,sxp,fsb,bsf){this.jsxsuper(LrH,bGK,sxp,fsb,bsf);this.setRepeat(DJH.DEFAULTSTACKCOUNT);this.setDimensionArray(DJH.DEFAULTDIMENSIONS);};DJH.prototype.getBarSize=function(){return this.jsxbarsize;};DJH.prototype.setBarSize=function(prC){this.jsxbarsize=prC;return this;};DJH.prototype.paint=function(){var grh=this.getChild(this.getSelectedIndex());if(grh==null){grh=this.getChild(0);this.setSelectedIndex(0);}if(grh!=null){var FDN=this.getChildren().length;var Nqb=new Array();var nfz=this.paintBarSize();var DmJ=this.getSelectedIndex();for(var qzN=0;qzN<FDN;qzN++){var tmN=this.getChild(qzN).getContentChild();if(DmJ!=qzN){Nqb[qzN]=nfz;if(tmN!=null)tmN.setVisibility(jsx3.gui.Block.VISIBILITYHIDDEN);}else{Nqb[qzN]="*";if(tmN!=null)tmN.setVisibility(jsx3.gui.Block.VISIBILITYVISIBLE);}}this.setDimensionArray(Nqb);}this.setBestGuess(0);this.setRepeat(FDN);this.setOverflow(jsx3.gui.Block.OVERFLOWHIDDEN);return this.jsxsuper();};DJH.prototype.paintBarSize=function(fhB){return this.getBarSize()?this.getBarSize():DJH.DEFAULTBARSIZE;};DJH.prototype.getSelectedIndex=function(){return this.jsxselectedindex==null?0:this.jsxselectedindex>this.getChildren().length-1?this.getChildren().length-1:this.jsxselectedindex;};DJH.prototype.setSelectedIndex=function(rPK){this.jsxselectedindex=rPK;};DJH.prototype.insertHTML=function(khj){if(khj instanceof jsx3.gui.Stack){if(this.getChildren().length>1){this.insertChildHTML(khj);this.NxMh();}else{this.repaint();}}else{this.repaint();}return this;};DJH.prototype.spBnC=function(Ppc,mNJ){this.jsxsuper(Ppc,mNJ);var bcN=this.getChildren().length-1;if(bcN>=0&&this.jsxselectedindex>bcN){this.getChild(bcN).doShowStack();}else{this.NxMh();}};DJH.prototype.NxMh=function(){var jqb=[];var wcP=this.paintBarSize();var MkH=this.getSelectedIndex();var JKJ=this.getChildren().length;for(var nKL=0;nKL<JKJ;nKL++){jqb[nKL]=MkH!=nKL?wcP:"*";}this.setDimensionArray(jqb,true);};DJH.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.Tab",jsx3.gui.Block,null,function(rKz){var jJD=jsx3.gui.Event;var hDm=jsx3.gui.Interactive;rKz.DEFAULTBEVELIMAGE=jsx3.resolveURI("JSX/images/tab/bevel.gif");rKz.DEFAULTACTIVECOLOR="#e8e8f5";rKz.DEFAULTINACTIVECOLOR="#d8d8e5";rKz.CHILDBGCOLOR="#e8e8f5";rKz.STATEDISABLED=0;rKz.STATEENABLED=1;rKz.prototype.init=function(PmH,Lzq,Gmb,jzK,rFt){this.jsxsuper(PmH,null,null,Gmb,null,Lzq);if(jzK!=null)this.setActiveColor(jzK);if(rFt!=null)this.setInactiveColor(rFt);var bfg=new jsx3.gui.Block(PmH+"_content",null,null,"100%","100%");bfg.setOverflow(jsx3.gui.Block.OVERFLOWSCROLL);bfg.setRelativePosition(0);bfg.setBackgroundColor(jzK==null?rKz.CHILDBGCOLOR:jzK);this.setChild(bfg,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);};rKz.prototype.onSet=function(xgf){return xgf instanceof jsx3.gui.TabbedPane;};rKz.prototype.onDestroy=function(qLd,mgJ){this.jsxsuper(qLd,mgJ);if(qLd!=null&&qLd instanceof jsx3.gui.TabbedPane){var hPN=0;var GNd=qLd.getChildren();for(var dzb=0;dzb<GNd.length;dzb++){var FrF=GNd[dzb];if(FrF.vnzcP()==dzb)hPN++;else break;}var CJr=qLd.getSelectedIndex();var Bzd=CJr==hPN;var gnz=hPN<=CJr?CJr-1:CJr;var nLN=qLd.getChild(gnz);if(Bzd)this.doEvent(hDm.HIDE);if(qLd.getChildren().length==0){qLd.setSelectedIndex(-1);qLd.repaint();qLd.doEvent(hDm.CHANGE);}else{for(var dzb=qLd.getChildren().length-1;dzb>=0;dzb--)qLd.getChild(dzb).LnPqK(dzb);if(Bzd){qLd.setSelectedIndex(-1);if(qLd.getChildren().length>0)qLd.getChild(0).zltn(qLd.isOldEventProtocol(),false);}else{if(nLN!=null){qLd.setSelectedIndex(gnz);}}}}};rKz.prototype.getBevel=function(){return this.jsxbevel;};rKz.prototype.setBevel=function(zPM){this.jsxbevel=zPM;return this;};rKz.prototype.getMaskProperties=function(){return jsx3.gui.Block.MASK_EAST_ONLY;};rKz.prototype.doMouseDown=function(tqn,ztN){this.getRendered().setCapture();};rKz.prototype.doMouseUp=function(Djn,KmN){this.getRendered().releaseCapture();this.jsxsupermix(Djn,KmN);};rKz.prototype.doMouseOver=function(wNm,CdN){if(jsx3.EventHelp.isDragging())this.zltn(wNm,false,false);};rKz.prototype.doClick=function(MJm,fNM){if(!MJm.rightButton())this.zltn(MJm);};rKz.prototype.doClickTab=function(Jlt,Hsf){this.zltn(this.isOldEventProtocol(),Jlt,Hsf);};rKz.prototype.doShow=function(){this.zltn(false);};rKz.prototype.zltn=function(lmm,kbs,jjf){var MNN=this.getParent();var cHC=MNN.getShowTabs();var lFk=MNN.getTabHeight()?MNN.getTabHeight():jsx3.gui.TabbedPane.DEFAULTTABHEIGHT;var FJP=MNN.getSelectedIndex();if(jjf||!(FJP==this.vnzcP())){MNN.setSelectedIndex(this.vnzcP());var nBH=MNN.getChildren().length;for(var GzK=0;GzK<nBH;GzK++){if(MNN.getChild(GzK)!=this){MNN.getChild(GzK).getChild(0).setDisplay(jsx3.gui.Block.DISPLAYNONE,true);if(cHC){MNN.getChild(GzK).setBackgroundColor(MNN.getChild(GzK).cghnP(),true);MNN.getChild(GzK).setHeight(lFk-2,true);MNN.getChild(GzK).getRendered().style.marginBottom=1;}}}this.getChild(0).setDisplay(jsx3.gui.Block.DISPLAYBLOCK,true);if(cHC){this.setBackgroundColor(this.zvhxt(),true);this.setHeight(lFk,true);this.getRendered().style.marginBottom=0;}}if(lmm)this.doEvent(hDm.EXECUTE,{objEVENT:lmm instanceof jsx3.gui.Event?lmm:null});this.getParent().pPcGt(FJP,this.vnzcP());if(kbs!=false)this.getParent().focus();return this;};rKz.prototype.getActiveColor=function(){return this.jsxactivecolor;};rKz.prototype.setActiveColor=function(qPm){this.jsxactivecolor=qPm;return this;};rKz.prototype.getInactiveColor=function(){return this.jsxinactivecolor;};rKz.prototype.setInactiveColor=function(BvD){this.jsxinactivecolor=BvD;return this;};rKz.prototype.getEnabled=function(){return this.jsxenabled==null?rKz.STATEENABLED:this.jsxenabled;};rKz.prototype.setEnabled=function(mjL){this.jsxenabled=mjL;return this;};rKz.prototype.doFocus=function(zJj,GMJ){if((curIndex=this.getParent().getSelectedIndex())!=this.vnzcP())this.getParent().getChild(curIndex).focus();};rKz.prototype.doKeyDown=function(hBj,nFJ){if(this.jsxsupermix(hBj,nFJ))return;var kdj=hBj.keyCode();if(kdj>=jJD.KEY_ARROW_LEFT&&kdj<=jJD.KEY_ARROW_DOWN){if((hBj.leftArrow()||hBj.upArrow())&&this.vnzcP()>0){this.getParent().getChild(this.vnzcP()-1).zltn(hBj);}else{if(hBj.leftArrow()||hBj.upArrow()){this.getParent().getChild(this.getParent().getChildren().length-1).zltn(hBj);}else{if((hBj.rightArrow()||hBj.downArrow())&&this.vnzcP()<this.getParent().getChildren().length-1){this.getParent().getChild(this.vnzcP()+1).zltn(hBj);}else{if(hBj.rightArrow()||hBj.downArrow()){this.getParent().getChild(0).zltn(hBj);}}}}hBj.cancelKey();hBj.cancelBubble();hBj.cancelReturn();}else{if(kdj==jJD.KEY_TAB&&!hBj.shiftKey()){this.getChild(0).focus();}else{if(kdj==jJD.KEY_TAB){this.getParent().focus();}}}};rKz.bvllk={};rKz.bvllk[jJD.CLICK]=true;rKz.bvllk[jJD.KEYDOWN]=true;rKz.bvllk[jJD.MOUSEDOWN]=true;rKz.bvllk[jJD.MOUSEUP]=true;rKz.bvllk[jJD.MOUSEOVER]=true;rKz.bvllk[jJD.FOCUS]=true;rKz.prototype.paint=function(){if(!(this.getParent() instanceof jsx3.gui.TabbedPane)){jsx3.util.Logger.doLog("t21","The jsx3.gui.Tab instance with the id, '"+this.getId()+"', could not be painted on-screen, because it does not belong to a jsx3.gui.TabbedPane parent.");return "";}else{this.applyDynamicProperties();var kcw=this.getId();var zzl=this.getEnabled()==rKz.STATEENABLED?this.renderHandlers(rKz.bvllk):"";var hKs="<span id=\""+kcw+"\" label=\""+this.getName()+"\" "+this.BxCtt()+this.dkmsd()+zzl+" style=\"position:relative;white-space:nowrap;padding:5px;padding-top:2px;padding-bottom:0px;filter:progid:DXImageTransform.Microsoft.Shadow(direction=100,color=threeddarkshadow,strength=3);"+this.LqLvd()+this.Bqxnk()+this.gdtqB()+this.nnPmr()+this.Gqgtx()+this.nhLcs()+this.mnbFn()+this.DHnnv()+this.nwrgK()+this.rcPjv()+this.PGwwt()+this.wjHzp()+this.vMFll()+this.jlMxm()+"\""+this.renderAttributes(null,true)+">";hKs=hKs+this.pNnDp();hKs=hKs+"</span>";return hKs;}};rKz.prototype.LqLvd=function(){return "background-image:url("+(this.getBevel()?this.getBevel():rKz.DEFAULTBEVELIMAGE)+");background-repeat:no-repeat;";};rKz.prototype.Bqxnk=function(){return this.getEnabled()==rKz.STATEENABLED?"cursor:hand;":"cursor:not-allowed;";};rKz.prototype.BxCtt=function(){var FrC=this.getIndex();return " tabindex=\""+(FrC!=null?FrC:0)+"\" ";};rKz.prototype.zvhxt=function(){return this.getActiveColor()?this.getActiveColor():rKz.DEFAULTACTIVECOLOR;};rKz.prototype.cghnP=function(){return this.getInactiveColor()?this.getInactiveColor():rKz.DEFAULTINACTIVECOLOR;};rKz.prototype.gdtqB=function(){if(this.vnzcP()!=this.getParent().getSelectedIndex()){return "background-color:"+this.cghnP()+";";}else{return "background-color:"+this.zvhxt()+";";}};rKz.prototype.wjHzp=function(){return !this.getWidth()?"":"overflow:hidden;text-overflow:ellipsis;";};rKz.prototype.Gqgtx=function(){if(!this.getWidth()){return "width:12px;";}else{var LJC=this.getWidth();return "width:"+LJC+(LJC.toString().indexOf("%")==-1?"px":"")+";";}};rKz.prototype.nhLcs=function(){var Dnz=this.getParent().getTabHeight()?this.getParent().getTabHeight():jsx3.gui.TabbedPane.DEFAULTTABHEIGHT;return "height:"+(this.vnzcP()==this.getParent().getSelectedIndex()?Dnz:Dnz-2)+"px;";};rKz.prototype.rcPjv=function(){return this.vnzcP()==this.getParent().getSelectedIndex()?"margin-bottom:0px;":"margin-bottom:1px;";};rKz.prototype.vnzcP=function(){return this._jsxxLtC;};rKz.prototype.LnPqK=function(KbL){this._jsxxLtC=KbL;return this;};rKz.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.TabbedPane",jsx3.gui.Block,null,function(lzK){lzK.DEFAULTTABHEIGHT=20;lzK.DEFAULTBEVEL=jsx3.resolveURI("JSX/images/tab/line.gif");lzK.prototype.init=function(KNH){this.jsxsuper(KNH);};lzK.prototype.insertHTML=function(pMl){if(pMl instanceof jsx3.gui.Tab){var ktd=this.getRendered();if(ktd!=null){if(this.getShowTabs()){var pcc=ktd.children(0).children(0).children(0).children(0);pcc.insertAdjacentHTML("beforeEnd",pMl.paint());pcc.style.backgroundImage="url("+lzK.DEFAULTBEVEL+")";var kqb=ktd.children(0).children(0).children(1).children(0);kqb.insertAdjacentHTML("beforeEnd",pMl.getChild(0).paint());}else{var kqb=ktd.children(0).children(0).children(0).children(0);kqb.insertAdjacentHTML("beforeEnd",pMl.getChild(0).paint());}}}else{this.repaint();}pMl.LnPqK(this.getChildren().length-1).doClickTab(false);return this;};lzK.prototype.onSetChild=function(fKf){if(this.getChildren().length==0)this.jsxselectedindex=-1;return true;};lzK.prototype.doFocus=function(Psq,Fwc){if(!Psq.shiftKey())this.focus();};lzK.prototype.focus=function(glq,mpc){var cxH=this.getChild(this.getSelectedIndex());if(cxH)cxH.focus();else{if(this.getChildren().length>0)this.getChild(0).focus();else this.focus();}};lzK.prototype.getSelectedIndex=function(){return this.jsxselectedindex==null?this.getChildren().length>0?0:-1:this.jsxselectedindex;};lzK.prototype.setSelectedIndex=function(DsL){this.jsxselectedindex=DsL;return this;};lzK.prototype.doMouseUp=function(rvp,xPb){this.doDrop(rvp,xPb,jsx3.EventHelp.ONDROP);};lzK.prototype.paint=function(){this.applyDynamicProperties();var JtN=this.getChildren().length-1;for(var nsb=JtN;nsb>=0;nsb--){if(!(this.getChild(nsb) instanceof jsx3.gui.Tab)){jsx3.util.Logger.doLog("tp21","The jsx3.gui.TabbedPane instance with the id, '"+this.getId()+"', could not be painted on-screen, because it contains a child that is not a valid JSXTab2 instance.");return "";}this.getChild(nsb).LnPqK(nsb);}var vnB=this.getId();var KsD=this.getShowTabs();var nMw=this.getSelectedIndex();if(nMw<0||nMw>=this.getChildren().length){nMw=0;this.setSelectedIndex(nMw);}var frF={};frF[jsx3.gui.Event.FOCUS]=true;if(this.hasEvent(jsx3.gui.Interactive.DROP)||this.hasEvent(jsx3.gui.Interactive.CTRL_DROP))frF[jsx3.gui.Event.MOUSEUP]=true;var dCf=this.renderHandlers(frF);var dzq=this.renderAttributes(null,true);var PcD="<span id=\""+vnB+"\" label=\""+this.getName()+"\" "+this.BxCtt()+this.dkmsd()+dCf+" style=\"width:100%;height:100%;overflow:hidden;"+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.NHPtn()+this.gdtqB()+this.rBNqD()+this.chbLq()+this.hqPwJ()+this.jlMxm()+"\""+dzq+"><table style=\"position:absolute;top:0px;left:0px;width:100%;height:100%;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";if(KsD)PcD=PcD+("<tr style=\""+this.phcJz()+"\"><td "+this.hGkfD()+" style=\"position:relative;"+this.PGwwt()+this.LqLvd()+"\">");var rjM=this.getChild(nMw);rjM=rjM==null?this.getChild(0):rjM;if(rjM!=null){if(!rjM.getEnabled()){for(var nsb=0;nsb<=JtN;nsb++){if(this.getChild(nsb).getEnabled()){this.setSelectedIndex(nsb);break;}}}var Nxh=this.getIndex();for(var nsb=0;nsb<=JtN;nsb++){this.getChild(nsb).setIndex(Nxh);if(KsD)PcD=PcD+this.getChild(nsb).paint();}if(KsD){PcD=PcD+"</td></tr>";PcD=PcD+"<tr><td height='*' style='position:relative;text-align:left;width:100%;height:100%;border-left:solid 1px #ffffff;border-bottom:solid 1px #a8a895;border-right:solid 1px #a8a895;'>";}else{PcD=PcD+"<tr><td height='*' style='position:relative;text-align:left;width:100%;height:100%;'/>";}for(var nsb=0;nsb<=JtN;nsb++){var DqK=this.getChild(nsb).getChild(0);if(DqK){DqK.setRelativePosition(0);DqK.setLeft(0);DqK.setTop(0);DqK.setDisplay(nsb==nMw?jsx3.gui.Block.DISPLAYBLOCK:jsx3.gui.Block.DISPLAYNONE);PcD=PcD+DqK.paint();}}}else{PcD=PcD+"</td></tr><tr><td height='*' style='position:relative;text-align:left;width:100%;height:100%;border-left:solid 1px #ffffff;border-bottom:solid 1px #a8a895;border-right:solid 1px #a8a895;'>";}PcD=PcD+"</td></tr></table></span>";return PcD;};lzK.prototype.nggnf=function(){return !this.getRelativePosition()||this.getRelativePosition()==jsx3.gui.Block.ABSOLUTE?"left:0px;":"";};lzK.prototype.gMtsd=function(){return !this.getRelativePosition()||this.getRelativePosition()==jsx3.gui.Block.ABSOLUTE?"top:0px;":"";};lzK.prototype.LqLvd=function(){return "background-image:url("+(this.getChildren().length>0?lzK.DEFAULTBEVEL:"")+");background-repeat:repeat-x;background-position-y:bottom;";};lzK.prototype.vrKJJ=function(){return !this.getRelativePosition()||this.getRelativePosition()==jsx3.gui.Block.ABSOLUTE?"position:absolute;":"position:relative;";};lzK.prototype.BxCtt=function(){var dhH=this.getIndex();return " tabindex=\""+(dhH!=null?dhH:0)+"\" ";};lzK.prototype.phcJz=function(){return "height:"+(this.getTabHeight()?this.getTabHeight():lzK.DEFAULTTABHEIGHT)+"px;";};lzK.prototype.hGkfD=function(){return " height=\""+(this.getTabHeight()?this.getTabHeight():lzK.DEFAULTTABHEIGHT)+"\" ";};lzK.prototype.getTabHeight=function(){return this.jsxtabheight;};lzK.prototype.setTabHeight=function(cqk){this.jsxtabheight=cqk;return this;};lzK.prototype.getShowTabs=function(){return this.jsxshowtabs==null||this.jsxshowtabs===""?1:this.jsxshowtabs;};lzK.prototype.setShowTabs=function(GNx){this.jsxshowtabs=GNx;return this;};lzK.prototype.pPcGt=function(ltC,LqN){if(ltC!=LqN){var Pqw=this.getChild(ltC);var Fsj=this.getChild(LqN);if(Pqw){Pqw.doEvent(jsx3.gui.Interactive.HIDE);}if(Fsj){Fsj.doEvent(jsx3.gui.Interactive.SHOW);}this.doEvent(jsx3.gui.Interactive.CHANGE);}};lzK.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.Select",jsx3.gui.Block,[jsx3.gui.Form,jsx3.xml.Cacheable,jsx3.xml.CDF],function(vhx){var FMm=jsx3.util.Logger.getLogger(vhx.jsxclass.getName());vhx.DEFAULTBACKGROUNDCOLOR="#ffffff";vhx.DEFAULTTEXT="- Select -";vhx.SELECTXSLURL=jsx3.resolveURI("JSX/xsl/jsx30select.xsl");vhx.SELECTXSLID="JSX_SELECT_XSL";vhx.COMBOXSLURL=jsx3.resolveURI("JSX/xsl/jsx30combo.xsl");vhx.COMBOXSLID="JSX_COMBO_XSL";vhx.ARROWICON=jsx3.resolveURI("JSX/images/select/arrow.gif");vhx.OVERIMAGE=jsx3.resolveURI("JSX/images/select/selectover.gif");vhx.SELECTEDIMAGE=jsx3.resolveURI("JSX/images/select/selected.gif");vhx.NODATAMESSAGE="<div tabIndex ='0' class='jsx30select_option' onmousedown='var e = jsx3.gui.Event.wrap(event); jsx3.gui.Event.publish(e); e.cancelBubble();'>- data unavailable -</div>";vhx.NOMATCHMESSAGE="<div tabIndex ='0' class='jsx30select_option' onmousedown='var e = jsx3.gui.Event.wrap(event); jsx3.gui.Event.publish(e); e.cancelBubble();'>- no match found -</div>";vhx.TYPESELECT=0;vhx.TYPECOMBO=1;vhx.TYPEAHEADDELAY=250;vhx.prototype.init=function(JqG,MDJ,qwn,crN,Mrd,lpN){this.jsxsuper(JqG,MDJ,qwn,crN,Mrd);if(lpN!=null)this.jsxvalue=lpN;};vhx.prototype.getXSL=function(){var Lbr=this.jsxsupermix(true);if(Lbr!=null)return Lbr;var cqM=this.getType()==vhx.TYPESELECT?vhx.SELECTXSLURL:vhx.COMBOXSLURL;var qts=this.getType()==vhx.TYPESELECT?vhx.SELECTXSLID:vhx.COMBOXSLID;return (myXSL=this.getServer().getCache().getDocument(qts))!=null?myXSL:this.getServer().getCache().openDocument(cqM,qts,true);};vhx.prototype.doValidate=function(){this.setValidationState(this.getValue()!=null||this.getRequired()==jsx3.gui.Form.OPTIONAL?jsx3.gui.Form.STATEVALID:jsx3.gui.Form.STATEINVALID);return this.getValidationState();};vhx.prototype.gdtqB=function(){if(this.getEnabled()!=jsx3.gui.Form.STATEDISABLED){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():vhx.DEFAULTBACKGROUNDCOLOR)+";";}else{return "background-color:"+(this.getDisabledBackgroundColor()?this.getDisabledBackgroundColor():jsx3.gui.Form.DEFAULTDISABLEDBACKGROUNDCOLOR)+";";}};vhx.prototype.getType=function(){return this.jsxtype==null?vhx.TYPESELECT:this.jsxtype;};vhx.prototype.setType=function(NtN){this.jsxtype=NtN;return this;};vhx.prototype.getDefaultText=function(){return this.jsxdefaulttext!=null&&this.jsxdefaulttext!=null?this.jsxdefaulttext:vhx.DEFAULTTEXT;};vhx.prototype.setDefaultText=function(Glp){this.jsxdefaulttext=Glp;return this;};vhx.prototype.doKeyDown=function(lbm,rfN){var GjJ=lbm.keyCode();if(this.jsxsupermix(lbm,rfN))return;var pxH=this.getRendered();if(this.getType()==vhx.TYPECOMBO){var zKk=this.doEvent(jsx3.gui.Interactive.JSXKEYUP,{objEVENT:lbm});if(vhx.optiondelay)window.clearTimeout(vhx.optiondelay);if(!lbm.tabKey()&&lbm.keyCode()==GjJ){if(zKk!==false){var LKt=this.getInputElement();vhx.optiondelay=window.setTimeout(function(){vhx.showOptions(pxH,null,LKt.value);},vhx.TYPEAHEADDELAY);}return;}else{vhx.hideOptions();}}else{if((lbm.spaceKey()||lbm.enterKey())&&typeof(lbm.srcElement().jsxid)!="undefined"){this.rLJF(lbm,lbm.srcElement().jsxid);vhx.hideOptions(this.getId());}else{if(lbm.srcElement().selType=="Display"||lbm.srcElement().selType=="Text"){if((lbm.downArrow()&&!lbm.altKey())&&lbm.keyCode()==GjJ){vhx.showOptions(pxH);}else{if(lbm.tabKey()){return;}}}else{if(lbm.leftArrow()){vhx.hideOptions(this.getId());}else{if(lbm.downArrow()){if(lbm.srcElement()==lbm.srcElement().parentElement.lastChild){lbm.srcElement().parentElement.firstChild.focus();}else{lbm.srcElement().nextSibling.focus();}}else{if(lbm.upArrow()){if(lbm.srcElement()==lbm.srcElement().parentElement.firstChild){lbm.srcElement().parentElement.lastChild.focus();}else{lbm.srcElement().previousSibling.focus();}}}}}}}lbm.cancelReturn();};vhx.prototype.doKeyDownItem=function(xCl,DGL){FMm.trace("Select.doKeyDownItem");this.doKeyDown(xCl,DGL);};vhx.prototype.getInputElement=function(){var wxL=this.getRendered();return wxL?this.getType()==vhx.TYPECOMBO?wxL.childNodes[0].childNodes[0].childNodes[0]:wxL.childNodes[0].childNodes[0]:null;};vhx.prototype.show=function(){var GqL=this.getRendered();if(GqL)vhx.showOptions(GqL);};vhx.prototype.doClickItem=function(sdl,PhL){FMm.trace("Select.doClickItem");var LMn=sdl.srcElement();while(LMn!=null&&LMn.jsxid==null){LMn=LMn.parentElement;if(LMn.tagName=="BODY")LMn=null;}if(LMn!=null)this.rLJF(sdl,LMn.jsxid);vhx.hideOptions(this.getId());};vhx.doFocus=function(GBK){GBK.style.backgroundImage="url("+vhx.OVERIMAGE+")";};vhx.doBlur=function(ntK){ntK.style.backgroundImage="url("+jsx3.gui.Block.SPACE+")";};vhx.prototype.doBlurCombo=function(Chk,JlK){var LKj=JlK.value;if(Chk.altKey()||Chk.tabKey()||!((mySrc=Chk.srcElement())!=null&&mySrc.selType=="Text"||(myElm=Chk.toElement())!=null&&myElm.selType=="Option")){vhx.hideOptions();}var JGv=this.getXML().selectSingleNode("//record[@jsxtext=\""+LKj.doReplace("\"","&quot")+"\"]");if(JGv!=null){this.rLJF(Chk,JGv.getAttribute("jsxid"));}else{this.jsxvalue=LKj;}};vhx.hideOptions=function(gbw){if(objH=jsx3.gui.Heavyweight.GO("jsx30curvisibleoptions"))objH.destroy();if(vhx.optiondelay)window.clearTimeout(vhx.optiondelay);if(gbw!=null){var bjd=jsx3.GO(gbw);try{bjd.focus();}catch(e){}}};vhx.hideAllOptions=function(vkj){vhx.hideOptions();};vhx.showOptions=function(HBC,tgg,Jjj){if(HBC!=null&&!tgg){var Dqw=HBC.id;var nKb=jsx3.GO(Dqw);var ptG=nKb.getType();var Fjj=nKb.getDocument();if(Fjj==null)return;vhx.hideOptions();var McF=nKb.getAbsolutePosition(Fjj.getElementsByTagName("BODY")[0]);var JKK=McF.W;var drz=new Object();drz.jsxtabindex=nKb.getIndex()?nKb.getIndex():0;drz.jsxselectedimage=vhx.SELECTEDIMAGE;drz.jsxtransparentimage=jsx3.gui.Block.SPACE;drz.jsxdragtype="JSX_GENERIC";drz.jsxid=nKb.getId();drz.jsxselectedid=nKb.getValue()==null?"null":nKb.getValue();if(Jjj!=null)drz.jsxtext=Jjj;var rGp=nKb.getXSLParams();for(var fwD in rGp)drz[fwD]=rGp[fwD];var xmF=nKb.doTransform(drz,ptG==vhx.TYPECOMBO);if(xmF.trim()=="")xmF=ptG==vhx.TYPESELECT?vhx.NODATAMESSAGE:vhx.NOMATCHMESSAGE;var rBm="<div"+nKb.renderHandler(jsx3.gui.Event.KEYDOWN,"doKeyDownItem")+nKb.renderHandler(jsx3.gui.Event.CLICK,"doClickItem")+nKb.renderHandler(jsx3.gui.Event.MOUSEDOWN,"doMouseDownItem")+" selType=\"Options\" class=\"jsx30select_optionlist\" style=\""+nKb.gdtqB()+";width:"+JKK+"px;"+nKb.mnbFn()+nKb.DHnnv()+nKb.PGwwt()+"\">"+xmF+"</div>";var CLK=new jsx3.gui.Heavyweight("jsx30curvisibleoptions",nKb);CLK.setHTML(rBm);CLK.setWidth(JKK);CLK.addXRule(HBC,"W","W",-2);CLK.addYRule(HBC,"S","N",2);CLK.addYRule(HBC,"N","S",-2);CLK.show();if(ptG==vhx.TYPESELECT||Jjj==null){CLK.getRendered().childNodes[0].childNodes[0].focus();}else{nKb.getInputElement().focus();}}else{if(tgg){if(nKb=jsx3.GO(HBC.id))nKb.focus();}}};vhx.prototype.paint=function(){this.applyDynamicProperties();var JJt=this.getId();var wrN=this.getEnabled()==jsx3.gui.Form.STATEENABLED;var DzP={};if(this.getType()==vhx.TYPECOMBO&&this.getEvent(jsx3.gui.Interactive.JSXKEYDOWN))DzP[jsx3.gui.Event.KEYDOWN]=true;if(wrN){DzP[jsx3.gui.Event.MOUSEDOWN]=true;if(this.getType()==vhx.TYPECOMBO)DzP[jsx3.gui.Event.KEYUP]=true;else DzP[jsx3.gui.Event.KEYDOWN]="doKeyUp";}var crm=this.renderHandlers(DzP);var knq="<span id=\""+JJt+"\" label=\""+this.getName()+"\" "+" selType=\"Select\" class=\"jsx30select_select\" style=\""+this.vrKJJ()+this.nggnf()+this.gMtsd()+this.Gqgtx()+this.nhLcs()+this.nnPmr()+this.gdtqB()+this.NHPtn()+this.rcPjv()+this.chbLq()+this.hqPwJ()+this.jlMxm()+"\""+this.renderAttributes(null,true)+">";knq=knq+("<span selType=\"Display\" "+this.dkmsd()+(this.getType()==vhx.TYPESELECT?this.BxCtt():"")+crm+" style=\"background-image:url("+vhx.ARROWICON+");background-position-y:0;background-position-x:right;background-repeat:no-repeat;padding-right:16px;width:100%;height:100%;"+this.vMFll()+this.fgxdw()+"\" class=\"jsx30select_display\">");if(this.getType()==vhx.TYPESELECT){knq=knq+("<span selType=\"Text\" style=\"width:100%;"+this.mnbFn()+this.DHnnv()+this.nnPmr()+this.gdtqB()+this.PGwwt()+";\" class=\"jsx30select_text\" unselectable=\"on\">"+this.pNnDp()+"</span>");}else{knq=knq+("<span class=\"jsxcombo\"><input type=\"text\" selType=\"Text\" "+this.BxCtt()+" onkeyup=\"if(event.keyCode == jsx3.gui.Event.KEY_TAB) {event.cancelBubble=true;event.cancelReturn;return false;}\" onkeydown=\"jsx3.GO('"+JJt+"').jsxvalue = this.value;if (event.keyCode == jsx3.gui.Event.KEY_TAB) {jsx3.GO('"+JJt+"').bridge(event,this,'doBlurCombo');}\" onblur=\"jsx3.GO('"+JJt+"').bridge(event,this,'doBlurCombo');\" style=\"width:100%;border-width:0px;padding-left:4px;padding-top:0px;"+this.mnbFn()+this.DHnnv()+this.nnPmr()+this.gdtqB()+this.PGwwt()+";\" class=\"jsx30select_text\" value=\""+this.pNnDp().doReplace("\"","&quot")+"\"/></span>");}knq=knq+"</span></span>";this.doTransform(null,true);return knq;};vhx.prototype.doMouseDown=function(lwf,rzF){FMm.trace("Select.doMouseDown");vhx.showOptions(rzF.parentNode);lwf.cancelBubble();};vhx.prototype.doMouseDownItem=function(Mqf,fvF){Mqf.cancelBubble();};vhx.prototype.doKeyUp=function(dnf,krF){this.doKeyDown(dnf,krF);};vhx.prototype.setText=function(fHd){if(objGUI=this.getInputElement())objGUI[this.getType()==vhx.TYPECOMBO?"value":"innerText"]=fHd;return this;};vhx.prototype.focus=function(){if(objGUI=this.getInputElement()){if(this.getType()==vhx.TYPECOMBO){try{objGUI.focus();}catch(e){}}else{try{objGUI.parentNode.focus();}catch(e){}}}return objGUI;};vhx.prototype.setValue=function(Bxw){this.rLJF(this.isOldEventProtocol(),Bxw);return this;};vhx.prototype.rLJF=function(Nfd,cnw){if(cnw!=this.getValue()){this.jsxvalue=cnw;this.redrawRecord(cnw,jsx3.xml.CDF.UPDATE);if(Nfd){this.doEvent(jsx3.gui.Interactive.SELECT,{objEVENT:Nfd instanceof jsx3.gui.Event?Nfd:null,strRECORDID:cnw});}}};vhx.prototype.getValue=function(){return this.jsxvalue==null||this.jsxvalue==""||this.jsxvalue=="null"?null:this.jsxvalue;};vhx.prototype.getText=function(){return (myNode=this.getRecordNode(this.getValue()))!=null?myNode.getAttribute("jsxtext"):this.getType()==vhx.TYPECOMBO&&this.getValue()!=null?this.getValue():this.getDefaultText();};vhx.prototype.redrawRecord=function(Jpv,FBz){if(this.getValue()==Jpv&&(myNode=this.getRecordNode(Jpv))!=null){this.setText(myNode.getAttribute("jsxtext"));}return this;};vhx.prototype.onDestroy=function(DCD,zLt){this.jsxsuper(DCD,zLt);this.onDestroyCached(DCD);};vhx.getVersion=function(){return "3.0.00";};});jsx3.gui.Event.subscribe(jsx3.gui.Event.MOUSEDOWN,jsx3.gui.Select.hideAllOptions);
jsx3.Class.defineClass("jsx3.gui.Menu",jsx3.gui.Block,[jsx3.xml.Cacheable,jsx3.xml.CDF,jsx3.gui.Form],function(NDD){var jJD=jsx3.gui.Event;var hDm=jsx3.gui.Interactive;NDD.DEFAULTBACKGROUND="background-image:url("+jsx3.resolveURI("JSX/images/menu/bg.gif")+");backround-repeat:repeat-y;";NDD.DEFAULTBACKGROUNDCOLOR="#ffffff";NDD.DEFAULTXSLURL=jsx3.resolveURI("JSX/xsl/jsx30menu.xsl");NDD.DEFAULTXSLCACHEID="JSX_MENU_XSL";NDD.DEFAULTCONTEXTLEFTOFFSET=12;NDD.NODATAMESSAGE="<div tabIndex ='0' class='jsx30menu_item' onmousedown='var e = jsx3.gui.Event.wrap(event); jsx3.gui.Event.publish(e); e.cancelBubble(); e.cancelReturn();'>- no data -</div>";NDD.Mdrf=0;NDD.nhsp=1;NDD.DBmd=12;NDD.Pkgj=jsx3.resolveURI("JSX/images/menu/submenuarrow.gif");NDD.KkNc=jsx3.resolveURI("JSX/images/menu/selectover.gif");NDD.pkbn=jsx3.resolveURI("JSX/images/menu/selected.gif");NDD.mDJd=jsx3.resolveURI("JSX/images/menu/down_menu.gif");NDD.snxv=jsx3.resolveURI("JSX/images/menu/off_menu.gif");NDD.MqDx=jsx3.resolveURI("JSX/images/menu/on_menu.gif");NDD.Ghwv=jsx3.resolveURI("JSX/images/menu/over_menu.gif");NDD.NMkJ=jsx3.resolveURI("JSX/images/tbb/down.gif");NDD.dJvg=jsx3.resolveURI("JSX/images/tbb/on.gif");NDD.htbJ="#9B9BB7";NDD.ACTIVEID=null;NDD.fmdK=null;NDD.ddGs=null;NDD.lsdt=null;NDD.HpPz=250;NDD.MbkD=150;NDD.Dgjt="jsx30curvisiblemenu_";NDD.sMwL=1000;NDD.prototype.init=function(CnG,bBp){this.jsxsuper(CnG);if(bBp!=null)this.setText(bBp);};NDD.prototype.getImage=function(){return this.jsximage!=null&&this.jsximage!=null&&this.jsximage.trim()!=""?jsx3.resolveURI(this.jsximage):null;};NDD.prototype.setImage=function(jmN){this.jsximage=jmN;return this;};NDD.prototype.getXSL=function(){var fwq=this.jsxsupermix(true);return fwq!=null?fwq:(myXSL=this.getServer().getCache().getDocument(NDD.DEFAULTXSLCACHEID))!=null?myXSL:this.getServer().getCache().openDocument(NDD.DEFAULTXSLURL,NDD.DEFAULTXSLCACHEID,true);};NDD.prototype.disableItem=function(vgH){return this.enableItem(vgH,false);};NDD.prototype.enableItem=function(PKG,Lnj){delete this._jsxDmxj;if(Lnj||Lnj==null)this.deleteRecordProperty(PKG,"jsxdisabled",false);else this.insertRecordProperty(PKG,"jsxdisabled","1",false);return this;};NDD.prototype.isItemEnabled=function(BtG){var Glk=this.getRecordNode(BtG);return Glk!=null&&Glk.getAttribute("jsxdisabled")!="1";};NDD.prototype.selectItem=function(ckG,cqv){delete this._jsxDmxj;if(cqv||cqv==null){var rpz=this.getRecordNode(ckG);if(rpz!=null&&(myGroupName=rpz.getAttribute("jsxgroupname"))!=null){var mhx=this.getXML().selectNodes("//record[@jsxgroupname='"+myGroupName+"']");for(var ptN=0;ptN<mhx.getLength();ptN++){var Nvf=mhx.getItem(ptN);if(Nvf.getAttribute("jsxid")!=ckG)mhx.getItem(ptN).removeAttribute("jsxselected");}}this.insertRecordProperty(ckG,"jsxselected",1,false);}else{this.deleteRecordProperty(ckG,"jsxselected",false);}return this;};NDD.prototype.deselectItem=function(twF){return this.selectItem(twF,false);};NDD.prototype.isItemSelected=function(PsF){var Dkj=this.getRecordNode(PsF);return Dkj!=null&&Dkj.getAttribute("jsxselected")=="1";};NDD.doFocus=function(flM,qxx,FKN){if(flM.jsxtype!="Disabled"){flM.style.backgroundImage="url("+NDD.KkNc+")";if(NDD.lsdt){window.clearTimeout(NDD.lsdt);NDD.lsdt=null;}NDD.lsdt=window.setTimeout(function(){NDD.lsdt=null;NDD.doClear(FKN+1);},NDD.MbkD);}};NDD.doBlur=function(KJL,hjx,wvN){if(KJL.jsxtype!="Disabled"){KJL.style.backgroundImage="url("+jsx3.gui.Block.SPACE+")";window.clearTimeout(NDD.lsdt);NDD.lsdt=null;}};NDD.prototype.doKeyDown=function(Hvl,NPL){if(this.jsxsupermix(Hvl,NPL))return;if(Hvl.downArrow())this.showMenu(Hvl,NPL,1);};NDD.prototype.doKeyPress=function(pnl){if(pnl.spaceKey()||pnl.enterKey()){pnl.cancelBubble();pnl.cancelReturn();}};NDD.prototype.doMouseDown=function(Pgl,FkL){this.GJgN(Pgl,FkL);FkL.children(2).style.backgroundImage="url("+NDD.mDJd+")";this.showMenu(Pgl,FkL,1);};NDD.prototype.doMouseOver=function(CKk,JNK){if(NDD.fmdK!=null){JNK.focus();NDD.fmdK=JNK.id;if(NDD.ddGs){window.clearTimeout(NDD.ddGs);NDD.ddGs=null;}}this.dhgF(CKk,JNK);if(this.getState()==NDD.Mdrf){JNK.children(2).style.backgroundImage="url("+NDD.Ghwv+")";}if(NDD.ACTIVEID!=null&&this.getId()!=NDD.ACTIVEID||jsx3.EventHelp.FLAG==1&&this.getCanDrop()==1)this.showMenu(CKk,JNK,1);};NDD.prototype.doMouseOut=function(mmk,sqK){NDD.fmdK=null;if(NDD.ddGs){window.clearTimeout(NDD.ddGs);NDD.ddGs=null;}this.cbfP(mmk,sqK);if(this.getState()==NDD.Mdrf)sqK.children(2).style.backgroundImage="url("+NDD.snxv+")";};NDD.prototype.doMouseUp=function(dLj,kbK){this.hsHk(dLj,kbK);kbK.children(2).style.backgroundImage="url("+NDD.snxv+")";};NDD.prototype.doKeyDownItem=function(nDj,tHJ){var nwF=+tHJ.intINDEX;if((nDj.spaceKey()||nDj.enterKey())&&nDj.srcElement().jsxtype!="Disabled"&&typeof(nDj.srcElement().jsxid)!="undefined"){this.zvLF(nDj,nDj.srcElement().jsxid);NDD.hideMenu(this.getId());}else{if(nDj.rightArrow()&&nDj.srcElement().jsxtype=="Book"){this.showMenu(nDj,nDj.srcElement(),nwF+1,nDj.srcElement().jsxid);return;}else{if(nwF>1&&nDj.leftArrow()){NDD.hideMenu(this.getId(),nwF);var bsq=this.getDocument().getElementById(NDD.Dgjt+(nwF-1));if(bsq!=null)bsq.children(0).children(0).focus();}else{if(nwF==1&&nDj.leftArrow()){NDD.hideMenu(this.getId(),1);}else{if(nDj.downArrow()){if(nDj.srcElement()==nDj.srcElement().parentElement.lastChild){nDj.srcElement().parentElement.firstChild.focus();}else{nDj.srcElement().nextSibling.focus();}}else{if(nDj.upArrow()){if(nDj.srcElement()==nDj.srcElement().parentElement.firstChild){nDj.srcElement().parentElement.lastChild.focus();}else{nDj.srcElement().previousSibling.focus();}}}}}}}nDj.cancelReturn();};NDD.prototype.doMouseDownItem=function(DKh,KNH){var DCD=+KNH.intINDEX;if((myObj=DKh.srcElement()).jsxtype=="Book"||(myObj=DKh.srcElement().parentElement).jsxtype=="Book"){this.showMenu(DKh,myObj,DCD+1,myObj.jsxid);}if(this.getCanDrag()==1&&DKh.srcElement().JSXDragType!=null&&!DKh.rightButton()){this.doDrag(DKh,DKh.srcElement(),NDD.getDragIcon);}DKh.cancelBubble();};NDD.prototype.doMouseUpItem=function(Gth,MxH){var GmD=MxH.intINDEX;if(this.getCanDrop()==1&&jsx3.EventHelp.isDragging()&&jsx3.EventHelp.DRAGTYPE=="JSX_GENERIC"){var mJh=Gth.srcElement();while(mJh!=null&&mJh.jsxtype==null)mJh=mJh.parentElement;if(mJh!=null&&mJh.jsxtype!="disabled"){var Bpq=jsx3.EventHelp.JSXID.getId();var tJf=jsx3.EventHelp.DRAGID;var clM=jsx3.EventHelp.DRAGTYPE;var pmF=mJh.jsxid;var sJn=jsx3.GO(Bpq);if(sJn==null)return;var FGP=sJn.doEvent(hDm.ADOPT,{objEVENT:Gth,strRECORDID:tJf,objTARGET:this,bCONTROL:Gth.ctrlKey()});var rvd={objEVENT:Gth,objSOURCE:sJn,strDRAGID:tJf,strDRAGTYPE:jsx3.EventHelp.DRAGTYPE,strRECORDID:pmF,bALLOWADOPT:FGP!==false?true:false};var jvM=this.doEvent(Gth.ctrlKey()?hDm.CTRL_DROP:hDm.DROP,rvd);jsx3.EventHelp.reset();if(FGP!==false&&jvM!==false&&sJn.instanceOf(jsx3.xml.CDF))this.adoptRecord(sJn,tJf,pmF);}}};NDD.getDragIcon=function(pFG,gcs,xvg,CMK){return "<span style='font-family:Verdana;font-size:10px;padding:0px;height:24px;padding:2px;width:200px;overflow:hidden;text-overflow:ellipsis;color:#a8a8a8;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#eedfdfe8, EndColorStr=#00ffffff);'><nobr>"+pFG.parentElement.outerHTML.doReplace("BACKGROUND-IMAGE","")+"</nobr></span>";};NDD.prototype.doMouseOverItem=function(llg,rpG){if(NDD.ddGs){window.clearTimeout(NDD.ddGs);NDD.ddGs=null;}var nsP=null;var kwG=llg.srcElement();while(kwG!=null&&kwG.jsxtype==null)kwG=kwG.parentNode;if(kwG!=null&&kwG.jsxtype=="Book"){nsP=kwG.jsxid;var MbC=rpG;while(MbC!=null&&MbC.intINDEX==null)MbC=MbC.parentNode;var rNP=MbC!=null?+MbC.intINDEX:null;var rkw=this;NDD.ddGs=window.setTimeout(function(){NDD.ddGs=null;rkw.showMenu(llg,kwG,rNP+1,nsP);},NDD.HpPz);}else{var MbC=rpG;while(MbC!=null&&MbC.intINDEX==null)MbC=MbC.parentNode;var BvD=MbC!=null?MbC.intINDEX:null;if(NDD.lsdt){window.clearTimeout(NDD.lsdt);NDD.lsdt=null;}NDD.lsdt=window.setTimeout(function(){NDD.lsdt=null;NDD.doClear(BvD+1);},NDD.MbkD);}if(nsP==null){if((kwG=llg.srcElement()).jsxid||(kwG=llg.srcElement().parentElement).jsxid)nsP=kwG.jsxid;}if(nsP!=null)this.showMenuSpy(llg,nsP,kwG.jsxtype=="Book");};NDD.prototype.showMenuSpy=function(ngf,qnx,snM){if(this.getEvent(hDm.SPYGLASS)){var mPM=ngf.clientX()+jsx3.EventHelp.DEFAULTSPYLEFTOFFSET;var vmc=ngf.clientY()+jsx3.EventHelp.DEFAULTSPYTOPOFFSET;var cvw=this;NDD.snpz=window.setTimeout(function(){NDD.snpz=null;var lBq=cvw.doEvent(hDm.SPYGLASS,{objEVENT:ngf,strRECORDID:qnx});if(lBq){jsx3.gui.Interactive.hideSpy();cvw.showSpy(lBq,mPM,vmc);}},snM?NDD.sMwL:jsx3.EventHelp.sMwL);}};NDD.hideMenuSpy=function(){if(NDD.snpz){window.clearTimeout(NDD.snpz);NDD.snpz=null;}jsx3.gui.Interactive.hideSpy();};NDD.prototype.doMouseOutItem=function(jvd,pPD){if(NDD.ddGs){window.clearTimeout(NDD.ddGs);NDD.ddGs=null;}NDD.hideMenuSpy();};NDD.prototype.doClickItem=function(Dmd,KqD){var vpf=Dmd.srcElement();while(vpf!=null&&vpf.jsxid==null){vpf=vpf.parentElement;if(vpf.tagName=="BODY")vpf=null;}if(vpf!=null){if(vpf.jsxtype!="Book"&&vpf.jsxtype!="Disabled"){this.zvLF(Dmd,vpf.jsxid);NDD.hideMenu(this.getId(),1);}}};NDD.doClear=function(Jpb){while((objHW=jsx3.gui.Heavyweight.GO(NDD.Dgjt+Jpb))!=null){objHW.destroy();Jpb++;}};NDD.hideMenu=function(HHq,rlP){if(NDD.ACTIVEID!=null){var qKk=jsx3.GO(NDD.ACTIVEID);qKk.setState(0);qKk.doEvent(hDm.HIDE);try{qKk.focus();}catch(e){}NDD.ACTIVEID=null;}NDD.hideMenuSpy();var qKk=jsx3.GO(HHq);if(qKk)qKk.doEvent(hDm.HIDE);NDD.nMLf=false;NDD.doClear(rlP==null?1:rlP);};NDD.hideAllMenus=function(rDb){NDD.hideMenu();};NDD.prototype.showContextMenu=function(kvb,LjD,mCt,nqm){NDD.nMLf=true;this._jsxxzKH=LjD;this._jsxsPbd=mCt;this.showMenu(kvb,null,1,null,nqm);};NDD.prototype.getContextParent=function(){return this._jsxxzKH;};NDD.prototype.getContextRecordId=function(){return this._jsxsPbd;};NDD.prototype.showMenu=function(kGN,zjD,kPk,jdC,nBl){var hdN=this.doEvent(hDm.MENU,{objEVENT:kGN,objANCHOR:zjD,intINDEX:kPk,strPARENTID:jdC});if(hdN===false)return;if(zjD&&jdC==null)zjD=this.getRendered();var ptn=this.getId();if(zjD!=null){if(kPk==1){if(NDD.ACTIVEID!=null)jsx3.GO(NDD.ACTIVEID).setState(0);NDD.ACTIVEID=ptn;}NDD.doClear(kPk);}var ghq=NDD.Dgjt+kPk;strContent=this.doGetCachedContent(false,jdC,kPk);var mnl="<span intINDEX=\""+kPk+"\""+this.renderHandler(jJD.MOUSEOVER,"doMouseOverItem")+this.renderHandler(jJD.MOUSEOUT,"doMouseOutItem")+this.renderHandler(jJD.KEYDOWN,"doKeyDownItem")+this.renderHandler(jJD.CLICK,"doClickItem")+this.renderHandler(jJD.MOUSEDOWN,"doMouseDownItem")+this.renderHandler(jJD.MOUSEUP,"doMouseUpItem")+" selType=\"Menu\" class=\"jsx30menu_itemlist\" style=\""+this.gdtqB()+this.rBNqD()+"\">"+strContent+"</span>";var tsb=jsx3.gui.Heavyweight.GO(ghq);if(tsb)tsb.destroy();var mKH=new jsx3.gui.Heavyweight(ghq,this);mKH.setHTML(mnl);if(myHeight=this.getHeight())mKH.setHeight(myHeight);if(myWidth=this.getWidth())mKH.setWidth(myWidth);if(zjD&&jdC!=null){mKH.addXRule(zjD,"E","W",-6);mKH.addXRule(zjD,"E","E",-60);mKH.addYRule(zjD,"N","N",-3);mKH.addYRule(zjD,"N","N",6);}else{if(zjD){mKH.addXRule(zjD,"W","W",-2);mKH.addRule(null,"W",0,"X");mKH.addYRule(zjD,"S","N",0);mKH.addYRule(zjD,"N","S",0);}else{if(nBl){mKH.addXRule(nBl.L,null,"W",NDD.DEFAULTCONTEXTLEFTOFFSET);mKH.addXRule(nBl.L,null,"E",-NDD.DEFAULTCONTEXTLEFTOFFSET);mKH.addYRule(nBl.T,null,"N",NDD.DBmd);mKH.addYRule(nBl.T,null,"S",-NDD.DBmd);}else{mKH.addXRule(kGN,null,"W",NDD.DEFAULTCONTEXTLEFTOFFSET);mKH.addXRule(kGN,null,"E",-NDD.DEFAULTCONTEXTLEFTOFFSET);mKH.addYRule(kGN,null,"N",NDD.DBmd);mKH.addYRule(kGN,null,"S",-NDD.DBmd);}}}if(!NDD.nMLf)jsx3.GO(ptn).setState(1);mKH.show();mKH.getRendered().style.pixelWidth=mKH.getRendered().offsetWidth+30;mKH.getRendered().children(0).children(0).focus();};NDD.prototype.doGetCachedContent=function(HCL,pmd,qvt){if(HCL)this.clearCachedContent();if(this._jsxDmxj==null||pmd!=null){var Hlv=new Object();Hlv.jsxtabindex=this.getIndex()?this.getIndex():0;Hlv.jsxselectedimage=NDD.pkbn;Hlv.jsxtransparentimage=jsx3.gui.Block.SPACE;Hlv.jsxdragtype="JSX_GENERIC";Hlv.jsxid=this.getId();Hlv.jsxsubmenuimage=NDD.Pkgj;if(pmd!=null)Hlv.jsxrootid=pmd;if(qvt!=null)Hlv.jsxindex=qvt;var hBk=this.getXSLParams();for(var JqP in hBk)Hlv[JqP]=hBk[JqP];var nhz=this.doTransform(Hlv);if(nhz.trim()=="")nhz=NDD.NODATAMESSAGE;if(pmd==null){this._jsxDmxj=nhz;}else{return nhz;}}return this._jsxDmxj;};NDD.prototype.clearCachedContent=function(){delete this._jsxDmxj;};NDD.prototype.getState=function(){return this._jsxCJCN!=null?this._jsxCJCN:NDD.Mdrf;};NDD.prototype.setState=function(hvx){var gtw=this.getRendered();if(gtw!=null){if(hvx==NDD.nhsp){gtw.style.backgroundImage="url("+NDD.dJvg+")";gtw.children(3).style.backgroundColor=NDD.htbJ;gtw.children(2).style.backgroundImage="url("+NDD.MqDx+")";}else{gtw.style.backgroundImage="";gtw.children(3).style.backgroundColor="";gtw.children(2).style.backgroundImage="url("+NDD.snxv+")";}}this._jsxCJCN=hvx;return this;};NDD.prototype.doKeyBindings=function(){if(this._jsxjpvx!=null){for(var pzx in this._jsxjpvx)this._jsxjpvx[pzx].destroy();}this._jsxjpvx={};var bxj=this.getId();var JcB=this.getXML();if(JcB!=null){var nxm=this;var pMc=JcB.selectNodes("//record[@jsxkeycode]");for(var rlt=0;rlt<pMc.getLength();rlt++){var vzb=pMc.getItem(rlt).getAttribute("jsxkeycode").toLowerCase();var bsL=pMc.getItem(rlt).getAttribute("jsxid");var MJP=jsx3.makeCallback(function(HbD,grG){this.prqz(grG[0],HbD);},this,bsL);this._jsxjpvx[bsL]=this.doKeyBinding(MJP,vzb);}}};NDD.prototype.prqz=function(PjJ,Bqn){var flH=this.getRecordNode(Bqn);if(flH==null)return;var DhP=flH.getParent();var pkH=DhP!=null&&DhP.getNodeName()=="record"?DhP.getAttribute("jsxid"):null;var CqF=this.doEvent(hDm.MENU,{objEVENT:PjJ,objANCHOR:null,intINDEX:null,strPARENTID:pkH});if(CqF===false)return;if(this.isItemEnabled(Bqn))this.zvLF(PjJ,Bqn);};NDD.prototype.doClick=function(qHH,wLt){this.setState(this.getState()==NDD.nhsp?NDD.Mdrf:NDD.nhsp);qHH.cancelBubble();qHH.cancelReturn();};NDD.bvllk={};NDD.bvllk[jJD.CLICK]=true;NDD.bvllk[jJD.KEYPRESS]=true;NDD.bvllk[jJD.KEYDOWN]=true;NDD.bvllk[jJD.MOUSEDOWN]=true;NDD.bvllk[jJD.MOUSEUP]=true;NDD.bvllk[jJD.MOUSEOUT]=true;NDD.bvllk[jJD.MOUSEOVER]=true;NDD.bvllk[jJD.BLUR]="doMouseOut";NDD.bvllk[jJD.FOCUS]="doMouseOver";NDD.prototype.paint=function(){this.applyDynamicProperties();this.doKeyBindings();this.doGetCachedContent(true,null,1);var NCh=this.getId();var PFm=this.getState()==NDD.nhsp?"background-image:url("+NDD.dJvg+");":"";var bkr=this.chbLq();var Lrv=this.hqPwJ();var DzN=this.nggnf();var nDm=this.gMtsd();var tdB=this.vrKJJ();if(this.getEnabled()==jsx3.gui.Form.STATEENABLED){var CgG=this.renderHandlers(NDD.bvllk);var rhx=this.getImage();var NBt="";}else{var CgG="";var rhx=this.getDisabledImage();var NBt="filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);";}var Jxd=rhx!=null?"<span class='jsx30toolbarbutton_img' style='background-image:url("+rhx+");' unselectable='on'></span>":"<span class='jsx30toolbarbutton_img' style='width:3px;'></span>";var tJk=(myLabel=this.getText())!=null&&myLabel!=""?"<span class='jsx30toolbarbutton_lbl' unselectable='on' style='color:"+this.getColor()+";font-family:"+this.getFontName()+";font-size:"+this.getFontSize()+"px;'>"+myLabel+"</span>":"<span></span>";var LDn="<span class='jsx30toolbarbutton_mnu' style='"+(this.getState()==NDD.nhsp?"background-image:url("+NDD.MqDx+");":"background-image:url("+NDD.snxv+");")+"'></span>";var CCm="<span class='jsx30toolbarbutton_cap' style='"+(this.getState()==NDD.nhsp?"background-color:"+NDD.htbJ+";":"")+"'></span>";var bFC=this.renderAttributes(null,true);return "<span  id='"+NCh+"' "+"label='"+this.getName()+"' "+this.BxCtt()+this.dkmsd()+CgG+" class='jsx30toolbarbutton' style='"+tdB+DzN+nDm+this.Bqxnk()+this.rcPjv()+PFm+bkr+Lrv+NBt+this.jlMxm()+"' "+bFC+">"+Jxd+tJk+LDn+CCm+"</span>";};NDD.prototype.BxCtt=function(){var hHn=this.getIndex();return " tabindex=\""+(hHn!=null?hHn:0)+"\" ";};NDD.prototype.gdtqB=function(){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():NDD.DEFAULTBACKGROUNDCOLOR)+";";};NDD.prototype.rBNqD=function(){return this.getBackground()?this.getBackground()+";":NDD.DEFAULTBACKGROUND;};NDD.prototype.Bqxnk=function(){return this.getEnabled()==jsx3.gui.Form.STATEENABLED?"cursor:hand;":"cursor:default;";};NDD.prototype.executeRecord=function(Lnk){this.zvLF(this.isOldEventProtocol(),Lnk);return this;};NDD.prototype.zvLF=function(wbD,Pjk){var zjH=null;if((zjH=this.getRecordNode(Pjk))!=null){this._jsxvalue=Pjk;var qdk=zjH.getAttribute("jsxexecute");var LKB=true;var xvF={strRECORDID:Pjk,objRECORD:zjH};if(wbD instanceof jsx3.gui.Event)xvF.objEVENT=wbD;LKB=qdk==null||qdk==""?true:this.eval(qdk,xvF);if(LKB!==false&&wbD)this.doEvent(hDm.EXECUTE,xvF);}};NDD.prototype.redrawRecord=function(){delete this._jsxDmxj;if(NDD.ACTIVEID==this.getId())NDD.hideMenu();return this;};NDD.prototype.getValue=function(){return this._jsxvalue;};NDD.prototype.doValidate=function(){return this.setValidationState(jsx3.gui.Form.STATEVALID).getValidationState();};NDD.prototype.beep=function(){var hKp=this.getRendered();jsx3.gui.bJHjG(hKp.children(2),{backgroundImage:"url("+NDD.mDJd+")"});jsx3.gui.bJHjG(hKp,{backgroundImage:"url("+NDD.NMkJ+")"});jsx3.gui.bJHjG(hKp.children(3),{backgroundColor:"#808080"});return this;};NDD.prototype.onDestroy=function(Mmr,Jvh){this.jsxsuper(Mmr,Jvh);this.onDestroyCached(Mmr);};NDD.getVersion=function(){return "3.0.00";};});jsx3.gui.Menu.prototype.GJgN=jsx3.gui.ToolbarButton.prototype.doMouseDown;jsx3.gui.Menu.prototype.dhgF=jsx3.gui.ToolbarButton.prototype.doMouseOver;jsx3.gui.Menu.prototype.cbfP=jsx3.gui.ToolbarButton.prototype.doMouseOut;jsx3.gui.Menu.prototype.hsHk=jsx3.gui.ToolbarButton.prototype.doMouseUp;jsx3.gui.Event.subscribe(jsx3.gui.Event.MOUSEDOWN,jsx3.gui.Menu.hideAllMenus);
jsx3.Class.defineClass("jsx3.gui.Tree",jsx3.gui.Block,[jsx3.gui.Form,jsx3.xml.Cacheable,jsx3.xml.CDF],function(JMM){var kmD=jsx3.gui.Event;var jhm=jsx3.gui.Interactive;JMM.DEFAULTXSLID="JSX_TREE_XSL";JMM.DEFAULTXSLURL=jsx3.resolveURI("JSX/xsl/jsx30tree.xsl");JMM.ICONMINUS=jsx3.resolveURI("JSX/images/tree/minus.gif");JMM.ICONPLUS=jsx3.resolveURI("JSX/images/tree/plus.gif");JMM.ICON=jsx3.resolveURI("JSX/images/tree/file.gif");JMM.SELECTEDIMAGE=jsx3.resolveURI("JSX/images/tree/select.gif");JMM.ONDROPBGIMAGE="url("+jsx3.resolveURI("JSX/images/tree/over.gif")+")";JMM.BORDERCOLOR="#8CAEDF";JMM.DEFAULTBACKGROUNDCOLOR="#ffffff";JMM.DEFAULTNODATAMSG="&nbsp;";JMM.MGMJ=null;JMM.wqgt=null;JMM.MULTI=1;JMM.SINGLE=0;JMM.prototype.init=function(tMF,NMC){this.jsxsuper(tMF);if(NMC!=null)this.insertRecordProperty(NMC,"jsxselected","1",false);};JMM.prototype.onAfterAttach=function(zbc){if(this.jsxvalue!=null&&this.jsxvalue!=""&&this.jsxvalue!="null")this.setValue(this.jsxvalue);this.jsxsuper();};JMM.prototype.getXSL=function(){var Lmq=this.jsxsupermix(true);return Lmq!=null?Lmq:(myXSL=this.getServer().getCache().getDocument(JMM.DEFAULTXSLID))!=null?myXSL:this.getServer().getCache().openDocument(JMM.DEFAULTXSLURL,JMM.DEFAULTXSLID,true);};JMM.prototype.doValidate=function(){var gbt=this.zrGz();var tcw=gbt.length>0||this.getRequired()==jsx3.gui.Form.OPTIONAL;this.setValidationState(tcw?jsx3.gui.Form.STATEVALID:jsx3.gui.Form.STATEINVALID);return this.getValidationState();};JMM.prototype.gdtqB=function(){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():JMM.DEFAULTBACKGROUNDCOLOR)+";";};JMM.prototype.setValue=function(fwG,LnC){var hxP=this.getMultiSelect()==JMM.MULTI;var czd=this.isOldEventProtocol();if(fwG instanceof Array){if(!hxP)throw new jsx3.IllegalArgumentException("strRecordId",fwG);}else{if(hxP){fwG=[fwG];}}if(hxP){this.sCcN();for(var rGN=0;rGN<fwG.length;rGN++){var MtP=fwG[rGN];if(MtP!=null&&!this.jBkCc(MtP))continue;this.gjqk(MtP);}if(LnC&&fwG.length>0)this.revealRecord(fwG[0]);if(czd)this.doEvent(jhm.SELECT,{strRECORDID:fwG});}else{if(fwG!=null&&!this.jBkCc(fwG))return;this.sCcN();if(fwG!=null){this.gjqk(fwG);if(LnC)this.revealRecord(fwG);}if(czd)this.doEvent(jhm.SELECT,{strRECORDID:fwG});}if(czd)this.doEvent(jhm.CHANGE,{objEVENT:null});return this;};JMM.prototype.jhng=function(Mgm,bpF,vcc){var dqx=this.getMultiSelect()==JMM.MULTI;if(dqx&&vcc){if(bpF!=null&&!this.jBkCc(bpF))return;var KrN=false;if(this.getRecordNode(bpF).getAttribute("jsxselected")=="1"){this.Bdxh(bpF);}else{this.gjqk(bpF);KrN=true;}if(KrN)this.doEvent(jhm.SELECT,{objEVENT:Mgm,strRECORDID:bpF});}else{var ndP=this.getValue()==bpF;if(ndP&&!vcc)return;this.sCcN();if(bpF!=null&&!this.jBkCc(bpF))bpF=null;if(!ndP&&bpF!=null)this.gjqk(bpF);this.doEvent(jhm.SELECT,{objEVENT:Mgm,strRECORDID:ndP?null:bpF});}this.doEvent(jhm.CHANGE,{objEVENT:Mgm});};JMM.prototype.GGLd=function(CtD){var GqL=JMM.HrCC(this.getId(),CtD);if(GqL!=null){GqL.children(0).children(2).style.backgroundImage="url("+JMM.SELECTEDIMAGE+")";GqL.children(0).children(2).style.borderRight="solid 1px "+JMM.BORDERCOLOR;}};JMM.prototype.JKBM=function(ccD){var njL=JMM.HrCC(this.getId(),ccD);if(njL!=null){njL.children(0).children(2).style.backgroundImage="";njL.children(0).children(2).style.borderRight="";}};JMM.prototype.sCcN=function(){var KHk=this.wvPt();for(var pcM=0;pcM<KHk.getLength();pcM++){var Ndd=KHk.getItem(pcM);Ndd.removeAttribute("jsxselected");this.JKBM(Ndd.getAttribute("jsxid"));}};JMM.prototype.Bdxh=function(xJC){this.deleteRecordProperty(xJC,"jsxselected",false);this.JKBM(xJC);};JMM.prototype.gjqk=function(fBC){this.insertRecordProperty(fBC,"jsxselected","1",false);this.GGLd(fBC);};JMM.prototype.wvPt=function(){return this.getXML().selectNodes("//record[@jsxselected='1']");};JMM.prototype.zrGz=function(){var JMt=this.wvPt();var Hcf=[];var KKG=JMt.getLength();for(var pKJ=0;pKJ<KKG;pKJ++){Hcf[pKJ]=JMt.getItem(pKJ).getAttribute("jsxid");}return Hcf;};JMM.prototype.revealRecord=function(HMB,cpd){var lHh=this.getRecordNode(HMB);var kNr=lHh?lHh.getParent():null;while(kNr!=null){this.toggleItem(kNr.getAttribute("jsxid"),true);kNr=kNr.getParent();}var NdB=JMM.HrCC(this.getId(),HMB);if(NdB){var bJb=cpd?cpd.getRendered():this.getRendered();if(bJb)jsx3.BrowserDOM.scrollIntoView(NdB,bJb,0,10);}};JMM.prototype.getValue=function(){return this.getMultiSelect()==JMM.SINGLE?this.zrGz()[0]:this.zrGz();};JMM.prototype.getKeyListener=function(){return this.jsxkeylistener==null?jsx3.Boolean.TRUE:this.jsxkeylistener;};JMM.prototype.setKeyListener=function(LJb){this.jsxkeylistener=LJb;return this;};JMM.prototype.getText=function(){var CsN=this.wvPt().getItem(0);return CsN!=null?CsN.getAttribute("jsxtext"):null;};JMM.prototype.getMultiSelect=function(){return this.jsxmultiselect==null?JMM.SINGLE:this.jsxmultiselect;};JMM.prototype.setMultiSelect=function(HCw){this.jsxmultiselect=HCw;return this;};JMM.prototype.redrawRecord=function(hfz,drF){if(drF==jsx3.xml.CDF.DELETE){var lbH=JMM.HrCC(this.getId(),hfz);if(lbH!=null){var vLH=lbH.parentElement;if(vLH.children.length==1){vLH=vLH.parentElement;if(vLH.jsxid!=null){this.toggleItem(vLH.jsxid,false);vLH.children(0).children(0).src=jsx3.gui.Block.SPACE;vLH.children(0).children(0).jsxtype="space";}}lbH.outerHTML="";}}else{var lbH=JMM.HrCC(this.getId(),hfz);if(lbH==null){var NHr=this.getRecordNode(hfz);if(NHr!=null){if(this.getParent()!=null){NHr=NHr.getParent();var krk=NHr.getAttribute("jsxid");lbH=JMM.HrCC(this.getId(),krk);if(lbH!=null){var FBH=this.doTransform(hfz);lbH.children(1).insertAdjacentHTML("BeforeEnd",FBH);this.toggleItem(krk,true,true);}}}}else{lbH.outerHTML=this.doTransform(hfz);}}return this;};JMM.prototype.getRoot=function(){return this.jsxuseroot!=null?this.jsxuseroot:jsx3.Boolean.TRUE;};JMM.prototype.setRoot=function(gqM){this.jsxuseroot=gqM;return this;};JMM.prototype.getIcon=function(){return this.jsxicon!=null?this.jsxicon:JMM.ICON;};JMM.prototype.setIcon=function(MHC){this.jsxicon=MHC;return this;};JMM.prototype.getIconMinus=function(){return this.jsxiconminus!=null?jsx3.resolveURI(this.jsxiconminus):JMM.ICONMINUS;};JMM.prototype.setIconMinus=function(bsC){this.jsxiconminus=bsC;return this;};JMM.prototype.getIconPlus=function(){return this.jsxiconplus!=null?jsx3.resolveURI(this.jsxiconplus):JMM.ICONPLUS;};JMM.prototype.setIconPlus=function(dcC){this.jsxiconplus=dcC;return this;};JMM.HrCC=function(Mnp,Lmr){var ngv=jsx3.GO(Mnp);if(ngv!=null){var vvf=ngv.getDocument();return vvf!=null?vvf.getElementById(Mnp+"_"+Lmr):null;}};JMM.prototype.doFocus=function(Kzc,cFC){this.Cntx(Kzc,cFC,false);};JMM.prototype.Cntx=function(gtc,mxC,JkP){if(JkP&&!gtc.shiftKey()||!JkP&&gtc.shiftKey()){var qFN=this.zrGz()[0];var MMP=qFN!=null?JMM.HrCC(this.getId(),qFN):null;if(MMP==null)MMP=this.getRendered().children(0);if(MMP!=null){if(MMP.tagName=="IMG"){MMP.focus();}else{try{MMP.children(0).children(2).focus();}catch(e){jsx3.util.Logger.GLOBAL.debug("Browser error.",jsx3.NativeError.wrap(e));}}}}};JMM.prototype.doClick=function(DJb,KMB){var lpJ=false;var NCH=this.getXML();KMB=DJb.srcElement();var PvN=this.getRendered();while(KMB.jsxtype==null&&KMB!=PvN)KMB=KMB.parentElement;if(KMB.jsxtype!=null){if(KMB.jsxtype=="plusminus"){this.PPJG(DJb,KMB.parentElement.parentElement.jsxid);lpJ=true;}else{if(KMB.jsxtype=="text"||KMB.jsxtype=="icon"){var zbn=KMB.parentElement.parentElement.jsxid;this.jhng(DJb,zbn,DJb.shiftKey()||DJb.ctrlKey());lpJ=true;}else{this.Cntx(DJb,KMB,true);}}}else{this.Cntx(DJb,KMB,true);}if(KMB!=null){var JFn=DJb.srcElement().jsxtype;if((JFn=="icon"||JFn=="text"||JFn=="plusminus")&&KMB.parentNode!=null)KMB.parentNode.childNodes[2].focus();}if(lpJ){DJb.cancelBubble();DJb.cancelReturn();kmD.publish(DJb);}};JMM.prototype.jBkCc=function(wGs){var BxK=this.getRecord(wGs);return BxK!=null&&BxK.jsxunselectable!="1";};JMM.getDragIcon=function(llz,cwl,tbM,PsD){return "<span style='font-family:Verdana;font-size:10px;padding:0px;height:20px;padding:2px;width:200px;overflow:hidden;text-overflow:ellipsis;color:#a8a8a8;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#eedfdfe8, EndColorStr=#00ffffff);'><nobr>"+llz.parentElement.children(1).outerHTML+llz.outerHTML+"</nobr></span>";};JMM.prototype.toggleItem=function(MMr,msb,gjN){var Bks=this.getRecordNode(MMr);var FhP=JMM.HrCC(this.getId(),MMr);if(FhP!=null){this.CkMK(Bks,FhP,msb,gjN);}return this;};JMM.prototype.PPJG=function(CwM,FDr,fkb){var tbs=this.getRecordNode(FDr);var xMx=JMM.HrCC(this.getId(),FDr);if(xMx!=null){var BPm=this.CkMK(tbs,xMx,fkb,false);if(fkb==null)fkb=BPm;this.doEvent(jhm.TOGGLE,{objEVENT:CwM,strRECORDID:FDr,objRECORD:tbs,bOPEN:fkb});}};JMM.prototype.CkMK=function(rCr,GnP,cLN,KzM){if(cLN==null)cLN=rCr.getAttribute("jsxopen")==null?true:false;if(cLN){GnP.children(0).children(0).src=this.getIconMinus();GnP.children(1).style.display="block";rCr.setAttribute("jsxopen","1");}else{GnP.children(0).children(0).src=this.getIconPlus();GnP.children(1).style.display="none";rCr.removeAttribute("jsxopen");}if(KzM)GnP.children(0).children(0).jsxtype="plusminus";return cLN;};JMM.prototype.doMouseDown=function(lGL,rKx){if(this.getCanDrag()==1&&!lGL.rightButton()){var Pnk=lGL.srcElement();if(Pnk.jsxtype==null)Pnk=Pnk.parentElement;if(Pnk.jsxtype=="icon")Pnk=Pnk.parentElement.children(2);if(Pnk.jsxtype=="text"){if(!this.jBkCc(Pnk.JSXDragId))return;Pnk.parentElement.children(2).setActive();kmD.publish(lGL);this.doDrag(lGL,Pnk,JMM.getDragIcon);}}};JMM.prototype.doMouseUp=function(mkL,snx){var zFj=mkL.srcElement();var lkm=zFj.jsxtype;if(lkm==null)zFj=zFj.parentElement;lkm=zFj.jsxtype;if(lkm=="text"||lkm=="icon"){var GCK=zFj.parentElement.parentElement.jsxid;if(this.getCanDrop()==1&&jsx3.EventHelp.isDragging()){var Gvr=jsx3.EventHelp.JSXID;var CKH=jsx3.EventHelp.DRAGID;var lmB=jsx3.EventHelp.DRAGTYPE;zFj.parentElement.style.backgroundImage="";if(Gvr==null)return;var wkq=Gvr.doEvent(jhm.ADOPT,{objEVENT:mkL,strRECORDID:CKH,objTARGET:this,bCONTROL:mkL.ctrlKey()});var jMH={objEVENT:mkL,strRECORDID:GCK,objSOURCE:Gvr,strDRAGID:CKH,strDRAGTYPE:lmB,bALLOWADOPT:wkq!==false?true:false};var NLC=this.doEvent(mkL.ctrlKey()?jhm.CTRL_DROP:jhm.DROP,jMH);if(wkq!=false&&NLC!==false&&Gvr.instanceOf(jsx3.xml.CDF))this.adoptRecord(Gvr,CKH,GCK);}else{if(mkL.rightButton()&&this.getMenu()){var DqL=this.getServer().getJSXByName(this.getMenu());if(DqL!=null&&this.jBkCc(GCK)){var Lbl=this.doEvent(jhm.MENU,{objEVENT:mkL,objMENU:DqL,strRECORDID:GCK});if(Lbl!==false){if(Lbl instanceof Object&&Lbl.objMENU instanceof jsx3.gui.Menu)DqL=Lbl.objMENU;this.jhng(mkL,GCK,mkL.shiftKey()||mkL.ctrlKey());DqL.showContextMenu(mkL,this,GCK);}}}}}};JMM.prototype.doMouseOver=function(nMJ,GKp){var Bth=nMJ.toElement();var mMk=Bth.jsxtype;var HrJ=Bth.parentElement.parentElement.jsxid;var zMs=Bth.parentElement.parentElement;if(jsx3.EventHelp.isDragging()&&this.getCanDrop()==1){var wwp=jsx3.EventHelp.JSXID;var sLF=jsx3.EventHelp.DRAGID;var bmP=jsx3.EventHelp.DRAGTYPE;if(mMk=="plusminus"){var Fwk=this;nMJ.lshtv();JMM.MGMJ=window.setTimeout(function(){if(!Fwk._jsxMbft)Fwk.PPJG(nMJ,HrJ);},500);}else{if(mMk=="text"){var bzB=this.doEvent(jhm.BEFORE_DROP,{objEVENT:nMJ,strRECORDID:HrJ,objSOURCE:wwp,strDRAGID:sLF,strDRAGTYPE:bmP,objGUI:zMs});if(!(bzB===false))Bth.parentElement.style.backgroundImage=JMM.ONDROPBGIMAGE;}}}else{if(mMk=="text"&&this.getEvent(jhm.SPYGLASS)){this.applySpyStyle(Bth);var Fgw=nMJ.clientX()+jsx3.EventHelp.DEFAULTSPYLEFTOFFSET;var NHP=nMJ.clientY()+jsx3.EventHelp.DEFAULTSPYTOPOFFSET;nMJ.lshtv();var vcg=this;JMM.wqgt=window.setTimeout(function(){if(!vcg._jsxMbft)vcg.LgFK(nMJ,Fgw,NHP,HrJ,Bth,zMs);},jsx3.EventHelp.SPYDELAY);}}};JMM.prototype.LgFK=function(GCH,FhC,lxG,JxJ,glg,MGt){this.removeSpyStyle(glg);var Lzj=this.doEvent(jhm.SPYGLASS,{objEVENT:GCH,strRECORDID:JxJ});if(Lzj){jsx3.gui.Interactive.hideSpy();this.showSpy(Lzj,FhC,lxG);}};JMM.prototype.doMouseOut=function(mpH,Fmn){var zKf=mpH.fromElement();var lpj=zKf.jsxtype;if(jsx3.EventHelp.isDragging()&&this.getCanDrop()==1){if(lpj=="plusminus"){window.clearTimeout(JMM.MGMJ);}else{if(lpj=="text"){var dpp=jsx3.EventHelp.JSXID;var NCF=jsx3.EventHelp.DRAGID;var wfP=jsx3.EventHelp.DRAGTYPE;var MDD=zKf.parentElement.parentElement.jsxid;var Flp=zKf.parentElement.parentElement;var lFz=this.doEvent(jhm.CANCEL_DROP,{objEVENT:mpH,strRECORDID:MDD,objSOURCE:dpp,strDRAGID:NCF,strDRAGTYPE:wfP,objGUI:Flp});if(!(lFz===false))zKf.parentElement.style.backgroundImage="";}}}else{if(lpj=="text"&&this.getEvent(jhm.SPYGLASS)){var hdf=mpH.toElement();if(!hdf||hdf.id!="_jsxspy"){jsx3.gui.Interactive.hideSpy();this.removeSpyStyle(zKf);window.clearTimeout(JMM.wqgt);}}}};JMM.prototype.doKeyDown=function(rwG,Ktm){if(this.jsxsupermix(rwG,Ktm))return;var tMF=rwG.keyCode();var BqP=this.getXML();var blr=rwG.srcElement().parentElement.parentElement;if(blr!=null&&blr.jsxid!=null){var NHd=blr.jsxid;if(tMF>=kmD.KEY_ARROW_LEFT&&tMF<=kmD.KEY_ARROW_DOWN&&this.getKeyListener()==jsx3.Boolean.TRUE){var Ddc=this.getRecordNode(NHd);if(Ddc.selectSingleNode("record")!=null){var ltC=true;var qlb=Ddc.getAttribute("jsxopen")=="1"?"1":"0";}else{var ltC=false;}if(tMF==kmD.KEY_ARROW_LEFT){if(ltC&&qlb=="1"){this.PPJG(rwG,NHd,false);}else{if(Ddc!=Ddc.getRootNode()){blr=JMM.HrCC(this.getId(),Ddc.getParent().getAttribute("jsxid"));if(blr!=null)blr.children(0).children(2).focus();}}}else{if(tMF==kmD.KEY_ARROW_UP&&Ddc!=Ddc.getRootNode()){this.doKeyDownPreviousRelative(Ddc);}else{if(tMF==kmD.KEY_ARROW_RIGHT){if(ltC&&qlb=="0"){this.PPJG(rwG,NHd,true);}else{if(ltC&&Ddc.selectSingleNode("record")!=null){if(blr!=null){var pNd=blr.children(1);if(pNd!=null){pNd=pNd.children(0);if(pNd!=null){pNd=pNd.children(2);if(pNd!=null)pNd.focus();}}}}}}else{if(tMF==kmD.KEY_ARROW_DOWN){if(ltC&&qlb=="1"&&Ddc.selectSingleNode("record")!=null){blr=JMM.HrCC(this.getId(),Ddc.selectSingleNode("record").getAttribute("jsxid"));blr.children(0).children(2).focus();}else{this.doKeyDownNextRelative(Ddc);}}}}}rwG.cancelReturn();rwG.cancelBubble();}else{if(tMF==kmD.KEY_TAB){if(rwG.shiftKey()){this.focus();}else{this.getRendered().lastChild.setActive();}}else{if(rwG.spaceKey()||rwG.enterKey()){if(this.getRecordNode(NHd).getAttribute("jsxselected")=="1"&&rwG.enterKey()){this.hdBM(rwG,NHd);}else{this.jhng(rwG,NHd);}rwG.cancelReturn();rwG.cancelBubble();}}}}};JMM.prototype.doKeyDownPreviousRelative=function(xDc){var gkP=xDc.getParent();var lkd=gkP.selectNodes("record");var Fhn=lkd.getLength();for(var khq=0;khq<Fhn;khq++){if(xDc.equals(lkd.getItem(khq))&&khq>0){var Drs=lkd.getItem(khq-1);while(Drs.selectSingleNode("record")!=null&&Drs.getAttribute("jsxopen")=="1"){Drs=Drs.getLastChild();}var Kbm=JMM.HrCC(this.getId(),Drs.getAttribute("jsxid"));Kbm.children(0).children(2).focus();return;}}var Kbm=JMM.HrCC(this.getId(),gkP.getAttribute("jsxid"));if(Kbm!=null)Kbm.children(0).children(2).focus();};JMM.prototype.doKeyDownNextRelative=function(tlc){if(tlc==null)return;var gNK=tlc.getNextSibling();if(gNK!=null){var Lnp=JMM.HrCC(this.getId(),gNK.getAttribute("jsxid"));if(Lnp!=null)Lnp.children(0).children(2).focus();}else{if(tlc!=tlc.getRootNode())this.doKeyDownNextRelative(tlc.getParent());}};JMM.prototype.executeRecord=function(PFh){this.hdBM(this.isOldEventProtocol(),PFh);};JMM.prototype.hdBM=function(ksC,mzh){var jNz=null;if(mzh==null)jNz=this.zrGz();else{if(!(mzh instanceof Array))jNz=[mzh];else jNz=mzh;}for(var Kxq=0;Kxq<jNz.length;Kxq++){var rmb=jNz[Kxq];if(rmb==null||!this.jBkCc(rmb))continue;var hHf=this.getRecordNode(rmb);var NkC={strRECORDID:rmb,objRECORD:hHf};if(ksC instanceof jsx3.gui.Event)NkC.objEVENT=ksC;var DHN=null;if(hHf!=null&&(DHN=hHf.getAttribute("jsxexecute"))!=null)this.eval(DHN,NkC);if(ksC)this.doEvent(jhm.EXECUTE,NkC);}};JMM.prototype.doDoubleClick=function(MDB,fJn){var bMg=null;var sfC=MDB.srcElement();if(sfC!=null&&sfC.jsxtype==null)sfC=sfC.parentElement;if(sfC!=null&&sfC.jsxtype!=null&&(sfC.jsxtype=="text"||sfC.jsxtype=="icon"))bMg=sfC.parentElement.parentElement.jsxid;if(bMg)this.hdBM(MDB,bMg);};JMM.bvllk={};JMM.bvllk[kmD.CLICK]=true;JMM.bvllk[kmD.DOUBLECLICK]=true;JMM.bvllk[kmD.MOUSEOVER]=true;JMM.bvllk[kmD.MOUSEOUT]=true;JMM.bvllk[kmD.MOUSEUP]=true;JMM.bvllk[kmD.MOUSEDOWN]=true;JMM.bvllk[kmD.KEYDOWN]=true;JMM.bvllk[kmD.FOCUS]=true;JMM.prototype.paint=function(){this.applyDynamicProperties();var vtb=this.getId();var cgz=this.doTransform().trim();if(cgz==null)cgz=this.getNoDataMessage();cgz=cgz+("<img src=\""+jsx3.gui.Block.SPACE+"\""+this.renderHandler(kmD.FOCUS,"doFocus")+" style=\"width:1px;height:1px;\" "+this.BxCtt()+">");var zqD="";if(this.getEnabled()==1)zqD=this.renderHandlers(JMM.bvllk);var zhG=this.renderAttributes(null,true);var KLK="<span "+this.BxCtt()+this.dkmsd()+zqD+" id='"+vtb+"' label='"+this.getName()+"' class='jsx30tree' style='"+this.DHnnv()+this.gdtqB()+this.rBNqD()+this.nnPmr()+this.wjHzp()+this.mnbFn()+this.nwrgK()+this.vMFll()+this.fgxdw()+this.Bqxnk()+this.chbLq()+this.hqPwJ()+this.jlMxm()+"'"+zhG+">";KLK=KLK+cgz;KLK=KLK+"</span>";return KLK;};JMM.prototype.doTransform=function(qGs){var LBj=new Object();if(qGs==null){var JKL;if((myKids=this.getXML().getRootNode().getChildNodes()).getLength()>0)qGs=myKids.getItem(0).getAttribute("jsxid");}else{var JKL=true;}if(qGs!=null)LBj.jsxrootid=qGs;LBj.jsxtabindex=this.getIndex()==null?0:this.getIndex();LBj.jsxselectedimage=JMM.SELECTEDIMAGE;LBj.jsxbordercolor=JMM.BORDERCOLOR;LBj.jsxicon=this.getIcon();LBj.jsxiconminus=this.getIconMinus();LBj.jsxiconplus=this.getIconPlus();LBj.jsxtransparentimage=jsx3.gui.Block.SPACE;LBj.jsxdragtype="JSX_GENERIC";LBj.jsxid=this.getId();LBj.jsxuseroot=JKL?1:this.getRoot();LBj.jsxfragment=JKL?1:0;var NpL=this.getXSLParams();for(var Bfm in NpL)LBj[Bfm]=NpL[Bfm];return this.jsxsupermix(LBj);};JMM.prototype.getNoDataMessage=function(){return this.jsxnodata==null?JMM.DEFAULTNODATAMSG:this.jsxnodata;};JMM.prototype.onSetChild=function(Frc){return false;};JMM.prototype.onDestroy=function(vBm,rKc){this.jsxsuper(vBm,rKc);this.onDestroyCached(vBm);this._jsxMbft=true;};JMM.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.List",jsx3.gui.Block,[jsx3.gui.Form,jsx3.xml.Cacheable,jsx3.xml.CDF],function(HFP){var jJD=jsx3.gui.Event;var hDm=jsx3.gui.Interactive;var pCf=jsx3.xml.CDF;HFP.DEFAULTXSLURL=jsx3.resolveURI("JSX/xsl/jsx30list.xsl");HFP.SELECTBGIMAGE="url("+jsx3.resolveURI("JSX/images/list/select.gif")+")";HFP.DEFAULTBACKGROUNDHEAD="background-image:url("+jsx3.resolveURI("JSX/images/list/header.gif")+");";HFP.DEFAULTBACKGROUNDCOLOR="#F3F2F4";HFP.DEFAULTBACKGROUNDCOLORHEAD="#c8cfd8";HFP.SORTASCENDING="ascending";HFP.SORTDESCENDING="descending";HFP.DEFAULTHEADERHEIGHT=20;HFP.MULTI=1;HFP.SINGLE=0;HFP.NOTSELECTABLE=2;HFP.RESIZEBARBGCOLOR="#2050df";HFP.DEFAULTROWCLASS="jsx30list_r1";HFP.prototype.init=function(PxG){this.jsxsuper(PxG);this._jsxhFfl=null;this._jsxNqfd=null;this._jsxjPMz=null;this._jsxtzpN=null;};HFP.prototype.spBnC=function(zMd,nxL){this.jsxsuper(zMd,nxL);this.resetXslCacheData();this.repaint();};HFP.prototype.insertHTML=function(ggk,ntF){if(!ntF){this.resetXslCacheData();this.repaint();}return this;};HFP.prototype.getXSL=function(dtp){var fwq=this.jsxsupermix(true);fwq=fwq!=null?fwq:(myXSL=this.getServer().getCache().getDocument(this.getXSLId()))!=null?myXSL:this.getServer().getCache().openDocument(dtp!=null?dtp:HFP.DEFAULTXSLURL,this.getXSLId(),false);if(fwq!=null){var BKz=fwq.selectSingleNode("//xsl:comment[.='JSXUNCONFIGURED']");if(BKz!=null){BKz.setValue("JSXCONFIGURED");var npc=this.fbzh();var JnL=npc.length;if(JnL>0){for(var nnN=0;nnN<=JnL;nnN++){var znd=new jsx3.xml.Document();var pjg=nnN==JnL?npc[JnL-1].paintXSLString(true):npc[nnN].paintXSLString();znd.loadXML(pjg);BKz.getParent().insertBefore(znd.getRootNode(),BKz);}}}}else{jsx3.util.Logger.doLog("XLST","No default stylesheet can be found for the List control, "+this.getId()+".");}return fwq;};HFP.prototype.clearXSL=function(){this.resetXslCacheData();return this;};HFP.kxLH=function(sCP){return sCP&&sCP.getDisplay()!=jsx3.gui.Block.DISPLAYNONE;};HFP.prototype.fbzh=function(){return this.getChildren().filter(HFP.kxLH);};HFP.prototype.doValidate=function(){var sKv=this.getSelectedNodes().getLength()>0||this.getRequired()==jsx3.gui.Form.OPTIONAL;this.setValidationState(sKv?jsx3.gui.Form.STATEVALID:jsx3.gui.Form.STATEINVALID);return this.getValidationState();};HFP.prototype.getResizable=function(){return this.jsxresize==null?jsx3.Boolean.TRUE:this.jsxresize;};HFP.prototype.setResizable=function(BKx){this.jsxresize=BKx;return this;};HFP.prototype.dCJj=function(Nmm,grM){jJD.publish(Nmm);if(this.getCanResize()!=0){var qKD=grM;var PbN=this.getRendered().childNodes[1];var fwr=qKD.parentNode.parentNode.parentNode.parentNode.parentNode.style.pixelLeft;var MgB=qKD.parentNode.parentNode.offsetLeft+fwr;PbN.style.pixelLeft=MgB;this._jsxjPMz=MgB;this._jsxtzpN=qKD.parentNode.parentNode.cellIndex;var Jns=this._jsxtzpN-1;var tPb=this.doEvent(hDm.BEFORE_RESIZE,{objEVENT:Nmm,intINDEX:Jns,intCOLUMNINDEX:Jns})===false;if(!tPb){PbN.style.visibility="visible";jsx3.gui.Interactive.beginMove(Nmm,PbN,false,true);}else{PbN.style.pixelLeft=-10;}}Nmm.cancelReturn();Nmm.cancelBubble();};HFP.prototype.Cnsv=function(Gpl,BDl){BDl.releaseCapture();var FHf=BDl.style.pixelLeft;var hLr=FHf-this._jsxjPMz;var kGs=this._jsxtzpN-1;var nFL=this.fbzh();var MJk=this.getDocument();var gHp=MJk.getElementById(this.getId()+"_jsxhead");var Jpw=gHp.childNodes[0].childNodes[0].childNodes[0].childNodes[kGs];var wgc=Jpw.offsetWidth;var zhC=nFL[kGs].getWidth()+"";if(bPct=zhC.indexOf("%")>-1){var sqb=this.getAbsolutePosition().W;var dGn=wgc+hLr;dGn=parseInt(dGn/sqb*1000)/10;if(dGn<2)dGn=2;dGn=dGn+"%";}else{var dGn=wgc+hLr;if(dGn<4)dGn=4;}BDl.style.pixelLeft=-10;var Npb={objEVENT:Gpl,intDIFF:hLr,intINDEX:kGs,intOLDWIDTH:wgc,vntWIDTH:dGn,intCOLUMNINDEX:kGs};var nGH=this.doEvent(hDm.AFTER_RESIZE,Npb);if(!(nGH===false)){var djs=nGH instanceof Object&&nGH.vntWIDTH?nGH.vntWIDTH:dGn;nFL[kGs].setWidth(djs);this.resetXslCacheData();this.repaintBody();this.repaintHead();}};HFP.prototype.vjwj=function(Bbj,HfK){jJD.publish(Bbj);if(!Bbj.rightButton()){var fxM=HfK;var BLJ=this.getDocument().getElementById(this.getId()+"_jsxghost");BLJ.innerHTML="";BLJ.innerText="";var xhc=fxM.childNodes.item(0).cloneNode(true);var vwn=fxM.parentNode.parentNode.parentNode.style.pixelLeft;BLJ.style.pixelLeft=fxM.offsetLeft+vwn;BLJ.style.pixelWidth=fxM.offsetWidth;BLJ.style.pixelHeight=fxM.offsetHeight;BLJ.style.fontName=fxM.style.fontName;BLJ.style.fontSize=fxM.style.fontSize;BLJ.style.textAlign=fxM.style.textAlign;BLJ.style.fontWeight=fxM.style.fontWeight;BLJ.style.paddingLeft=fxM.style.paddingLeft;BLJ.style.paddingRight=fxM.style.paddingRight;BLJ.style.paddingTop=fxM.childNodes.item(0).offsetTop;BLJ.style.visibility="visible";BLJ.appendChild(xhc);this._jsxjPMz=fxM.offsetLeft+vwn;this._jsxtzpN=fxM.cellIndex;jsx3.gui.Interactive.beginMove(Bbj,BLJ,false,true);}};HFP.prototype.qxJx=function(zgj,GkJ){var NCd=zgj.getType()==jsx3.gui.Event.CLICK?GkJ.cellIndex:this._jsxtzpN;var LJs=this.fbzh()[NCd];var DBf=this.getChildren().indexOf(LJs);if(this.getCanSort()!=0&&LJs!=null&&LJs.getCanSort()!=0){var dDf={objEVENT:zgj,intCOLUMNINDEX:DBf};var Lcv=this.doEvent(hDm.BEFORE_SORT,dDf);if(Lcv!==false){var kzC=Lcv instanceof Object&&Lcv.intCOLUMNINDEX!=null?Lcv.intCOLUMNINDEX:DBf;this.gJdB(zgj,kzC);}}};HFP.prototype.dbtm=function(Hzh,NDH){var flJ=this.getDocument().getElementById(this.getId()+"_jsxghost");flJ.releaseCapture();flJ.style.visibility="hidden";if(this._jsxjPMz==flJ.style.pixelLeft){this.qxJx(Hzh,NDH);}else{if(this.getCanReorder()!=0){var JMc=flJ.style.pixelLeft;var dCf=this.fbzh();var hDD=this.getChildren().length;var vCs=dCf[0].getRendered().parentNode;var xhd=this.getChildren().indexOf(dCf[this._jsxtzpN]);var JtF=0;for(var GPD=0;GPD<hDD;GPD++){if(HFP.kxLH(this.getChild(GPD))){var wwJ=vCs.childNodes[JtF].offsetLeft;if(JMc<wwJ){if(xhd!=GPD)this.MJjp(xhd,GPD-1);jsx3.EventHelp.reset();return;}JtF++;}}if(xhd!=hDD-1)this.MJjp(xhd,hDD-1);}}};HFP.prototype.setSortColumn=function(tDK){this.gJdB(this.isOldEventProtocol(),tDK);};HFP.prototype.gJdB=function(Pwg,hPK){this.jsxsortcolumn=hPK;this.doSort();if(Pwg){this.doEvent(hDm.AFTER_SORT,{objEVENT:Pwg instanceof jsx3.gui.Event?Pwg:null,intCOLUMNINDEX:hPK});}return this;};HFP.prototype.getSortColumn=function(){return this.jsxsortcolumn;};HFP.prototype.kfkx=function(){var knz=this.jsxsortcolumn!=null?this.getChild(this.jsxsortcolumn)==null?null:this.getChild(this.jsxsortcolumn).getSortPath():this.getSortPath();return knz?knz.substr(1):"";};HFP.prototype.MJjp=function(zCg,cjh){var lvb=this.getChildren();var jhD=lvb.length;var vpq=this.getChild(zCg);if(cjh<zCg){for(var qsF=zCg;qsF>cjh;qsF--){if(qsF>0)lvb[qsF]=lvb[qsF-1];}lvb[cjh+1]=vpq;}else{for(var qsF=zCg;qsF<=cjh;qsF++){if(qsF<=jhD-2)lvb[qsF]=lvb[qsF+1];}lvb[cjh]=vpq;}this.resetXslCacheData();this.repaint();this.getServer().getDOM().onChange(jsx3.app.DOM.TYPEADD,this.getId(),this.getChild(0).getId());};HFP.prototype.doSort=function(kHw){if(kHw!=null){this.setSortDirection(kHw);}else{this.setSortDirection(this.getSortDirection()==HFP.SORTASCENDING?HFP.SORTDESCENDING:HFP.SORTASCENDING);}this.repaintBody();this.repaintHead();};HFP.prototype.getSortPath=function(){return this.jsxsortpath==null?"":this.jsxsortpath;};HFP.prototype.setSortPath=function(wrb){this.jsxsortpath=wrb;return this;};HFP.prototype.getSortDirection=function(){return this.jsxsortdirection==null?HFP.SORTASCENDING:this.jsxsortdirection;};HFP.prototype.setSortDirection=function(hGv){this.jsxsortdirection=hGv;return this;};HFP.prototype.getMultiSelect=function(){return this.jsxmultiselect==null?HFP.MULTI:this.jsxmultiselect;};HFP.prototype.setMultiSelect=function(GMr){this.jsxmultiselect=GMr;if(GMr==HFP.NOTSELECTABLE)this.deselectAllRecords();return this;};HFP.prototype.getCanReorder=function(){return this.jsxreorder==null?1:this.jsxreorder;};HFP.prototype.setCanReorder=function(xKf){this.jsxreorder=xKf;return this;};HFP.prototype.getCanSort=function(){return this.jsxsort==null?1:this.jsxsort;};HFP.prototype.setCanSort=function(stl){this.jsxsort=stl;return this;};HFP.prototype.getBackgroundColorHead=function(){return this.jsxbgcolorhead;};HFP.prototype.setBackgroundColorHead=function(gbl){this.jsxbgcolorhead=gbl;return this;};HFP.prototype.getBackgroundHead=function(){return this.jsxbghead;};HFP.prototype.setBackgroundHead=function(hgd){this.jsxbghead=hgd;return this;};HFP.prototype.getHeaderHeight=function(){return this.jsxheaderheight;};HFP.prototype.setHeaderHeight=function(Gnv){this.jsxheaderheight=Gnv;return this;};HFP.htBb=function(nJP,fgl,wPM,BcD){return "<span style='font-family:Verdana;font-size:10px;padding:0px;height:22px;width:200px;overflow:hidden;text-overflow:ellipsis;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#eedfdfe8, EndColorStr=#00ffffff);'><table style='font-family:verdana;font-size:10px;color:#a8a8a8;' cellpadding='3' cellspacing='0'>"+nJP.outerHTML.doReplace("id=","tempid=").doReplace("BACKGROUND","bg").doReplace("class=","jsxc=")+"</table></span>";};HFP.doBlurItem=function(vqn){vqn.style.fontWeight="normal";var vbb=jsx3.GO(vqn.parentNode.parentNode.jsxid);if(vbb!=null)vbb._jsxhFfl=null;};HFP.doFocusItem=function(Kfn){var KDb=jsx3.GO(Kfn.id.substring(0,Kfn.id.length-Kfn.JSXDragId.length));if(!KDb.jBkCc(Kfn.JSXDragId))return;Kfn.focus();Kfn.style.fontWeight="bold";KDb._jsxhFfl=Kfn;};HFP.prototype.doMouseDown=function(xLL,DbP){if(this.getCanDrag()==1&&!xLL.rightButton()){var qFm=xLL.srcElement();var FbB=this.lJNC(qFm);if(FbB[0]!=null){if(!this.jBkCc(FbB[0]))return;jJD.publish(xLL);this.doDrag(xLL,FbB[2],HFP.htBb,{strRECORDID:FbB[0],intCOLUMNINDEX:FbB[1]});}}};HFP.prototype.doMouseUp=function(crL,jvx){var vjB=this.lJNC(crL.srcElement());if(this.getCanDrop()==1&&jsx3.EventHelp.isDragging()&&jsx3.EventHelp.JSXID!=this){if(jsx3.EventHelp.DRAGTYPE=="JSX_GENERIC"){var jNg=jsx3.EventHelp.JSXID.getId();var btK=jsx3.EventHelp.DRAGID;var wJg=jsx3.GO(jNg);if(wJg==null)return;var JGr=wJg.doEvent(hDm.ADOPT,{objEVENT:crL,strRECORDID:btK,objTARGET:this,bCONTROL:crL.ctrlKey()});var vvK={objEVENT:crL,objSOURCE:wJg,strDRAGID:btK,strDRAGTYPE:jsx3.EventHelp.DRAGTYPE,strRECORDID:vjB[0],intCOLUMNINDEX:vjB[1],bALLOWADOPT:JGr!==false?true:false};var mvF=this.doEvent(crL.ctrlKey()?hDm.CTRL_DROP:hDm.DROP,vvK);if(JGr!==false&&mvF!==false&&wJg.instanceOf(jsx3.xml.CDF))this.adoptRecord(wJg,btK);}}else{if(crL.rightButton()){if((strMenu=this.getMenu())!=null){var cHd=this.getServer().getJSXByName(strMenu);if(cHd!=null){var dvD={objEVENT:crL,objMENU:cHd,strRECORDID:vjB[0],intCOLUMNINDEX:vjB[1]};var MKl=this.doEvent(hDm.MENU,dvD);if(MKl!==false){if(MKl instanceof Object&&MKl.objMENU instanceof jsx3.gui.Menu)cHd=MKl.objMENU;cHd.showContextMenu(crL,this,vjB[0]);}}}}}};HFP.prototype.lJNC=function(Dxw){var hzh=null;var HBJ=null;var khP=null;while(Dxw!=null&&hzh==null){if(Dxw.tagName=="TD")HBJ=Dxw.cellIndex;else{if(Dxw.tagName=="TR"){hzh=Dxw.JSXDragId;khP=Dxw;}}Dxw=Dxw.parentNode;}return [hzh,hzh?HBJ:null,khP];};HFP.prototype.xFBw=function(PLJ,nqp,trp){if(!this.jBkCc(nqp.JSXDragId))return;if(!this.jBkCc(trp.JSXDragId))return;if(this.getMultiSelect()==HFP.NOTSELECTABLE)return;var JwG=0;var bLw=this.getDocument().getElementById(this.getId()+"_jsxbody").childNodes[0].childNodes[0];var nCM=[],FMJ=[];for(var rNt=bLw.children.length-1;rNt>=0;rNt--){if(bLw.childNodes[rNt]==trp)JwG++;if(bLw.childNodes[rNt]==nqp)JwG++;if(JwG>=1&&JwG<=2){var blg=bLw.childNodes[rNt];nCM.push(blg.JSXDragId,blg);}if(JwG==2)break;}this.tGdk(PLJ,nCM,FMJ,false);HFP.doFocusItem(nqp);};HFP.prototype.doKeyDown=function(sgJ,Pkv){if(this.jsxsupermix(sgJ,Pkv))return;if(this._jsxhFfl==null)return;var tHG=this.getId().length;var kJG=sgJ.keyCode();var bMd=this.getMultiSelect()==1;var gwP=false;if(kJG==jJD.KEY_ARROW_UP){if(this._jsxhFfl==this._jsxhFfl.parentNode.firstChild)return;if(bMd&&sgJ.ctrlKey()){HFP.doFocusItem(this._jsxhFfl.previousSibling);}else{if(bMd&&sgJ.shiftKey()){this.xFBw(sgJ,this._jsxhFfl.previousSibling,this._jsxNqfd);}else{var gjg=this._jsxhFfl.previousSibling;this.pgvJ(sgJ,gjg.JSXDragId,gjg,false);}}gwP=true;}else{if(kJG==jJD.KEY_ARROW_DOWN){if(this._jsxhFfl==this._jsxhFfl.parentNode.lastChild)return;if(bMd&&sgJ.ctrlKey()){HFP.doFocusItem(this._jsxhFfl.nextSibling);}else{if(bMd&&sgJ.shiftKey()){this.xFBw(sgJ,this._jsxhFfl.nextSibling,this._jsxNqfd);}else{var gjg=this._jsxhFfl.nextSibling;this.pgvJ(sgJ,gjg.JSXDragId,gjg,false);}}gwP=true;}else{if(kJG==jJD.KEY_ENTER){this.ccCH(sgJ);gwP=true;}else{if(kJG==jJD.KEY_SPACE){if(bMd&&sgJ.ctrlKey()){var sKc=this._jsxhFfl.JSXDragId;if(this.isSelected(sKc)){this.McMb(sgJ,sKc,this._jsxhFfl);}else{this.pgvJ(sgJ,sKc,this._jsxhFfl,true);}}else{if(bMd&&sgJ.shiftKey()){this.xFBw(sgJ,sgJ.srcElement(),this._jsxNqfd);}else{var gjg=this._jsxhFfl;this.pgvJ(sgJ,gjg.JSXDragId,gjg,false);}}gwP=true;}else{if(kJG==jJD.KEY_TAB&&sgJ.shiftKey()){this.focus();gwP=true;}else{if(kJG==jJD.KEY_TAB){this.getRendered().lastChild.focus();gwP=true;}}}}}}if(gwP){sgJ.cancelBubble();sgJ.cancelReturn();}};HFP.prototype.doClick=function(sNF,Pds){var NsP=false;var Nfg=sNF.srcElement();if(Nfg.tagName=="TBODY"||Nfg==Pds){this.HHgv(sNF,this.getSelectedIds(),[]);return;}var nzD=this.getRendered();while(Nfg.JSXDragId==null&&Nfg!=nzD)Nfg=Nfg.parentNode;if(!Nfg||!Nfg.JSXDragId){this.HHgv(sNF,this.getSelectedIds(),[]);return;}var Dfb=this.getMultiSelect()==HFP.MULTI;if(Dfb&&sNF.shiftKey()&&this._jsxNqfd!=null){this.xFBw(sNF,Nfg,this._jsxNqfd);NsP=true;}else{if(Dfb&&sNF.ctrlKey()){var Drb=Nfg.JSXDragId;if(this.isSelected(Drb)){this.McMb(sNF,Drb,Nfg);}else{this.pgvJ(sNF,Drb,Nfg,true);HFP.doFocusItem(Nfg);}NsP=true;}else{if(this.isSelected(Nfg.JSXDragId)){if(sNF.ctrlKey()||sNF.shiftKey()){this.McMb(sNF,Nfg.JSXDragId,Nfg);}}else{this.pgvJ(sNF,Nfg.JSXDragId,Nfg,false);}NsP=true;}}if(NsP){sNF.cancelBubble();sNF.cancelReturn();}};HFP.prototype.doDoubleClick=function(FBD,LFq){this.ccCH(FBD);};HFP.prototype.executeRecord=function(dCj){var sHc=this.getRecordNode(dCj);if(sHc!=null)this.eval(sHc.getAttribute("jsxexecute"),{strRECORDID:dCj});};HFP.prototype.doExecute=function(mpj){this.ccCH(this.isOldEventProtocol(),mpj!=null?[mpj]:null);};HFP.prototype.ccCH=function(zcD,PxB){if(PxB==null)PxB=this.getSelectedIds();for(var xKr=0;xKr<PxB.length;xKr++){var fPc=PxB[xKr];var vNN=this.getRecordNode(fPc);if(vNN.getAttribute(pCf.ATTR_UNSELECTABLE)=="1")continue;this.eval(vNN.getAttribute("jsxexecute"),{strRECORDID:fPc});}if(PxB.length>0&&zcD)this.doEvent(hDm.EXECUTE,{objEVENT:zcD instanceof jJD?zcD:null,strRECORDID:PxB[0],strRECORDIDS:PxB});};HFP.prototype.isSelected=function(DBh){return this.getXML().selectSingleNode("//record[@jsxid='"+DBh+"' and @"+pCf.ATTR_SELECTED+"='1']")!=null;};HFP.prototype.doSelect=function(knh,GLD,mgP,cgd){this.pgvJ(!mgP&&this.isOldEventProtocol(),knh,null,true);if(knh&&cgd)this.revealRecord(knh);return this;};HFP.prototype.selectRecord=function(sNg){if(!this.jBkCc(sNg))return;if(this.getMultiSelect()==HFP.NOTSELECTABLE)return;this.pgvJ(false,sNg,null,true);return this;};HFP.prototype.deselectRecord=function(kPg){this.McMb(false,kPg,null);return this;};HFP.prototype.deselectAllRecords=function(){this.HHgv(false,this.getSelectedIds(),[]);return this;};HFP.prototype.pgvJ=function(qdB,slg,jLb,MMq){var Kfz=this.getRecordNode(slg);if(!Kfz||Kfz.getAttribute(pCf.ATTR_SELECTED)=="1"||Kfz.getAttribute(pCf.ATTR_UNSELECTABLE)=="1"||this.getMultiSelect()==HFP.NOTSELECTABLE)return false;var kPL=MMq&&this.getMultiSelect()==HFP.MULTI;if(!kPL)this.deselectAllRecords();Kfz.setAttribute(pCf.ATTR_SELECTED,"1");jLb=jLb||this.xCCt(slg);if(jLb!=null){if(!kPL){this._jsxNqfd=jLb;HFP.doFocusItem(jLb);}jLb.style.backgroundImage=HFP.SELECTBGIMAGE;}if(qdB){this.doEvent(hDm.SELECT,{objEVENT:qdB instanceof jJD?qdB:null,strRECORDID:slg,strRECORDIDS:[slg]});this.doEvent(hDm.CHANGE,{objEVENT:qdB instanceof jJD?qdB:null});}return true;};HFP.prototype.tGdk=function(kmz,jHx,sMn,Ghq){if(!Ghq)this.deselectAllRecords();for(var hgp=0;hgp<jHx.length;hgp++){var MDC=this.pgvJ(false,jHx[hgp],sMn[hgp],true);if(!MDC){jHx.splice(hgp,1);sMn.splice(hgp,1);hgp--;}}if(kmz&&jHx.length>0){this.doEvent(hDm.SELECT,{objEVENT:kmz,strRECORDID:jHx[0],strRECORDIDS:jHx});this.doEvent(hDm.CHANGE,{objEVENT:kmz});}};HFP.prototype.McMb=function(JHP,Lbf,BBN){var pKx=this.getRecordNode(Lbf);if(!pKx||pKx.getAttribute(pCf.ATTR_SELECTED)!="1")return false;pKx.removeAttribute(pCf.ATTR_SELECTED);BBN=BBN||this.xCCt(Lbf);if(BBN!=null){if(this._jsxNqfd==BBN){delete this._jsxNqfd;HFP.doBlurItem(BBN);}BBN.style.backgroundImage="";}if(JHP){this.doEvent(hDm.SELECT,{objEVENT:JHP instanceof jJD?JHP:null,strRECORDID:null,strRECORDIDS:[]});this.doEvent(hDm.CHANGE,{objEVENT:JHP instanceof jJD?JHP:null});}return true;};HFP.prototype.HHgv=function(mhP,lCw,vHm){for(var kbm=0;kbm<lCw.length;kbm++){var bPB=this.McMb(false,lCw[kbm],vHm[kbm]);if(!bPB){lCw.splice(kbm,1);vHm.splice(kbm,1);kbm--;}}if(mhP&&lCw.length>0){this.doEvent(hDm.SELECT,{objEVENT:mhP,strRECORDID:lCw[0],strRECORDIDS:lCw});this.doEvent(hDm.CHANGE,{objEVENT:mhP});}};HFP.prototype.focusRecord=function(lKc){var bvM=this.xCCt(lKc);if(bvM!=null)bvM.focus();return this;};HFP.prototype.doDeselect=function(cvc,Pfz){this.McMb(this.isOldEventProtocol(),cvc,null);return this;};HFP.prototype.getActiveRow=function(){return this._jsxNqfd;};HFP.prototype.revealRecord=function(ffc,ntr){var HPc=this.xCCt(ffc);if(HPc){var Jpr=ntr?ntr.getRendered():this.getRendered();if(Jpr)jsx3.BrowserDOM.scrollIntoView(HPc,Jpr,0,10);}};HFP.prototype.xCCt=function(LJb){var gNP=this.getDocument();return gNP!=null?gNP.getElementById(this.getId()+LJb):null;};HFP.prototype.redrawRecord=function(bzb,lqP){if(this.getGrowBy()&&lqP==jsx3.xml.CDF.INSERT){this.appendRow(this.getRecord(bzb),bzb);}else{if(bzb!=null&&lqP==jsx3.xml.CDF.DELETE){if((objGUI=this.xCCt(bzb))!=null){objGUI.parentNode.removeChild(objGUI);}}else{if(bzb!=null&&lqP==jsx3.xml.CDF.UPDATE){this.updateRow(bzb);}}}};HFP.prototype.getSelectedNodes=function(){return this.getXML().selectNodes("//record[@"+pCf.ATTR_SELECTED+"='1']");};HFP.prototype.getSelectedIds=function(){var xCG=this.getSelectedNodes();var wGq=new Array();var Pzf=xCG.getLength();for(var dzh=0;dzh<Pzf;dzh++){wGq[dzh]=xCG.getItem(dzh).getAttribute("jsxid");}return wGq;};HFP.prototype.getValue=function(){var tCz=this.getSelectedIds();return this.getMultiSelect()==HFP.MULTI?tCz:tCz[0];};HFP.prototype.setValue=function(zsN){if(zsN instanceof Array){if(this.getMultiSelect()!=HFP.MULTI)throw new jsx3.IllegalArgumentException("strRecordId",zsN);}else{zsN=zsN!=null?[zsN]:[];}this.tGdk(false,zsN,[],false);return this;};HFP.prototype.doMouseOver=function(dLt,kbh){if(this.getCanSpy()==1&&this.getEvent(hDm.SPYGLASS)){var wCk=this.lJNC(dLt.srcElement());if(wCk[0]){HFP._curSpyRow=wCk[2];this.applySpyStyle(wCk[2]);var FBn=dLt.clientX()+jsx3.EventHelp.DEFAULTSPYLEFTOFFSET;var Npr=dLt.clientY()+jsx3.EventHelp.DEFAULTSPYTOPOFFSET;var vxL=this;dLt.lshtv();HFP.DKDP=window.setTimeout(function(){if(vxL._jsxMbft)return;var sgx={objEVENT:dLt,strRECORDID:wCk[0],intCOLUMNINDEX:wCk[1]};var lwF=vxL.doEvent(hDm.SPYGLASS,sgx);if(lwF){jsx3.gui.Interactive.hideSpy();vxL.showSpy(lwF,FBn,Npr);}},jsx3.EventHelp.SPYDELAY);}}};HFP.prototype.doMouseOut=function(){if(HFP._curSpyRow){this.removeSpyStyle(HFP._curSpyRow);delete HFP._curSpyRow;}window.clearTimeout(HFP.DKDP);jsx3.gui.Interactive.hideSpy();};HFP.bvllk={};HFP.bvllk[jJD.MOUSEOVER]=true;HFP.bvllk[jJD.MOUSEOUT]=true;HFP.bvllk[jJD.CLICK]=true;HFP.bvllk[jJD.DOUBLECLICK]=true;HFP.bvllk[jJD.KEYDOWN]=true;HFP.bvllk[jJD.MOUSEDOWN]=true;HFP.bvllk[jJD.MOUSEUP]=true;HFP.prototype.paint=function(){this.applyDynamicProperties();this._jsxNqfd=null;var zLG=this.getId();var hmj="";var qdc="<span"+this.renderHandler(jJD.MOUSEUP,"Cnsv")+this.renderHandler(jJD.MOUSEDOWN,"dCJj")+" id=\""+zLG+"_jsxcolresize\" style=\"background-color:"+HFP.RESIZEBARBGCOLOR+";\" class=\"jsx30list_colresize\"></span>";var qfJ=this.getHeaderHeight()!=null?this.getHeaderHeight():HFP.DEFAULTHEADERHEIGHT;strHTML="<span id=\""+zLG+"\" class=\"jsx30list\" "+"style=\""+this.hqPwJ()+this.chbLq()+this.wjHzp()+this.gdtqB()+this.rBNqD()+"\" label=\""+this.getName()+"\""+this.renderAttributes()+">";strHTML=strHTML+"<table class=\"jsx30list_table\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";if(qfJ>0){strHTML=strHTML+("<tr><td height=\""+qfJ+"\" style=\"position:relative;overflow:hidden;\">");strHTML=strHTML+("<span id=\""+zLG+"_jsxhead\" class=\"jsx30list_headspan\" style=\""+this.fgndm()+this.qzbxk()+"\">");strHTML=strHTML+this.tgrdN();strHTML=strHTML+"</span>";strHTML=strHTML+("<span id=\""+zLG+"_jsxghost\""+this.renderHandler(jJD.MOUSEUP,"dbtm")+" class=\"jsx30list_ghost\">&nbsp;</span>");strHTML=strHTML+"</td></tr>";hmj=" onscroll=\"this.parentNode.parentNode.parentNode.childNodes[0].childNodes[0].childNodes[0].childNodes[0].style.pixelLeft = -this.scrollLeft;\" ";}var jst=this.renderHandlers(HFP.bvllk);strHTML=strHTML+("<tr><td height=\""+(qfJ==0?"100%":"*")+"\" valign=\"top\" style=\"position:relative;\">");strHTML=strHTML+("<span id=\""+zLG+"_jsxbody\""+jst+hmj+" style=\""+this.gdtqB()+this.fgxdw()+"\" class=\"jsx30list_bodyspan\">");strHTML=strHTML+this.bxwfG();strHTML=strHTML+this.vNqvs();strHTML=strHTML+"</span>";strHTML=strHTML+"</td></tr>";strHTML=strHTML+"</table>";strHTML=strHTML+qdc;strHTML=strHTML+"</span>";return strHTML;};HFP.prototype.gdtqB=function(){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():HFP.DEFAULTBACKGROUNDCOLOR)+";";};HFP.prototype.rBNqD=function(){return this.getBackground()?this.getBackground()+";":"";};HFP.prototype.fgndm=function(){return "background-color:"+(this.getBackgroundColorHead()?this.getBackgroundColorHead():HFP.DEFAULTBACKGROUNDCOLORHEAD)+";";};HFP.prototype.qzbxk=function(){return this.getBackgroundHead()?this.getBackgroundHead()+";":HFP.DEFAULTBACKGROUNDHEAD;};HFP.prototype.nbpjv=function(){return this.getClassName()?this.getClassName():HFP.DEFAULTROWCLASS;};HFP.prototype.nrgKz=function(){return "height:"+(this.getHeaderHeight()?this.getHeaderHeight():HFP.DEFAULTHEADERHEIGHT)+"px;";};HFP.prototype.vNqvs=function(){return "";};HFP.prototype.tgrdN=function(){var rlC="<table cellspacing=\"0\" cellpadding=\"3\" border=\"0\" style=\"position:absolute;left:0px;top:0px;table-layout:fixed;\">";rlC=rlC+("<tr style=\""+this.nrgKz()+"\" "+this.dkmsd()+">");var cqn=this.fbzh();var nDc=this.getChildren();var JCL=nDc.length;var tDN=0;for(var cbM=0;tDN<=cqn.length;cbM++){if(nDc[cbM]==null||HFP.kxLH(nDc[cbM])){if(tDN==cqn.length){if(cqn.length>0)rlC=rlC+cqn[cqn.length-1].paint(true);}else{if(cbM<nDc.length){var Jqs=cbM==this.getSortColumn()?this.getSortDirection():null;rlC=rlC+nDc[cbM].paint(false,Jqs);}}tDN++;}}rlC=rlC+"</tr></table>";return rlC;};HFP.prototype.bxwfG=function(){var CvB="<table jsxid=\""+this.getId()+"\" cellspacing=\"0\" cellpadding=\"3\" border=\"0\" style=\"table-layout:fixed;"+this.rBNqD()+this.DHnnv()+this.mnbFn()+";\">";CvB=CvB+this.doTransform();CvB=CvB+"</table>";return CvB;};HFP.prototype.repaintBody=function(){var hMq=this.getDocument();if(hMq!=null){var FcN=hMq.getElementById(this.getId()+"_jsxbody");if(FcN!=null)FcN.childNodes[0].outerHTML=this.bxwfG();}};HFP.prototype.repaintHead=function(){var fzq=this.getDocument();if(fzq!=null){var CDM=fzq.getElementById(this.getId()+"_jsxhead");if(CDM!=null){CDM.childNodes[0].outerHTML=this.tgrdN();this.scrollHead();}}};HFP.prototype.scrollHead=function(){var nmq=this.getDocument();var KPH=nmq.getElementById(this.getId()+"_jsxbody");if(KPH&&KPH.scrollLeft!=0){var zCL=nmq.getElementById(this.getId()+"_jsxhead");if(zCL!=null)zCL.childNodes[0].style.pixelLeft=-KPH.scrollLeft;}};HFP.prototype.doTransform=function(hGF){var whK=new Object();if(hGF)whK.jsxrowid=hGF;whK.jsxtabindex=isNaN(this.getIndex())?0:this.getIndex();whK.jsxselectionbg=HFP.SELECTBGIMAGE;whK.jsxtransparentimage=jsx3.gui.Block.SPACE;whK.jsxid=this.getId();whK.jsxsortpath=this.kfkx();whK.jsxsortdirection=this.getSortDirection();whK.jsxrowclass=this.nbpjv();whK.jsxsorttype=this.getSortType();var KwP=this.getXSLParams();for(var xmN in KwP)whK[xmN]=KwP[xmN];return this.jsxsupermix(whK);};HFP.onDelete=function(fqz,JdM){var Nwg=jsx3.gui.Block.getJSXParent(JdM);if(Nwg instanceof HFP)Nwg.deleteRecord(fqz);};HFP.onCheck=function(PbP,xMB,pDL,hmH,clh){var jzl=jsx3.gui.Event.getCurrent();if(xMB.substring(0,1)=="@")xMB=xMB.substr(1);var jvf=jsx3.gui.Block.getJSXParent(pDL);if(hmH)pDL.checked=!pDL.checked;var vqC=pDL.checked;var crN=vqC?clh[0]:clh[1];jvf.insertRecordProperty(PbP,xMB,crN,false);jvf.doEvent(hDm.AFTER_EDIT,{objEVENT:jzl,strATTRIBUTENAME:xMB,strATTRIBUTEVALUE:crN,strRECORDID:PbP,objGUI:pDL,objMASK:null});if(jzl)jzl.cancelReturn();};HFP.onRadio=function(skP,rhB,jMK,lHM,Ksg){if(rhB.substring(0,1)=="@")rhB=rhB.substr(1);if(lHM)jMK.checked=true;HFP.onCheck(skP,rhB,jMK,false,Ksg);if(lHM){var nrf=jsx3.gui.Block.getJSXParent(jMK);var jtw=nrf.getRecordNode(skP);if(jtw!=null&&(myGroupName=jtw.getAttribute("jsxgroupname"))!=null){var dmt=nrf.getXML().selectNodes("//record[@jsxgroupname='"+myGroupName+"']");for(var gPK=0;gPK<dmt.getLength();gPK++){var Fzb=dmt.getItem(gPK);if(Fzb.getAttribute("jsxid")!=skP)dmt.getItem(gPK).setAttribute(rhB,Ksg[1]);}}}};HFP.prototype.appendRow=function(gps,spw){var nrm=this.getDocument();if(nrm!=null&&(intGrowBy=this.getGrowBy())>0){var Jzj=this.getId();var JPq=nrm.getElementById(Jzj+"_jsxbody").childNodes[0].childNodes[0];if(gps==null)gps={jsxid:jsx3.xml.CDF.getKey()};for(var gKJ=0;gKJ<intGrowBy;gKJ++){if(spw==null){spw=jsx3.xml.CDF.getKey();var Fkk=false;}else{var Fkk=true;}gps.jsxid=spw;this.doEvent(hDm.BEFORE_APPEND,{objMASTERRECORD:gps});if(Fkk==false)this.insertRecord(gps,null,false);var NFl=HFP.LcDq(this.doTransform(spw));if(NFl!=""){var cMr=new jsx3.xml.Document();cMr.loadXML(NFl);if(cMr.getError().code=="0"){var Kds=nrm.createElement("TR");var qcf=cMr.getRootNode();HFP.KzfG(qcf,Kds);var GMv=qcf.selectNodes("td");for(var tdD=0;tdD<GMv.getLength();tdD++){qcf=GMv.getItem(tdD);var xGn=nrm.createElement("TD");HFP.KzfG(qcf,xGn);Kds.appendChild(xGn);var vkP=qcf.getChildNodes();var hzC="";for(var jlz=0;jlz<vkP.getLength();jlz++){hzC=hzC+vkP.getItem(jlz).toString();}xGn.innerHTML=hzC;}JPq.appendChild(Kds);this.doEvent(hDm.AFTER_APPEND,{objMASTERRECORD:gps,objTR:Kds});}else{jsx3.util.Logger.doLog("append1","A new row could not be appended to the list, due to the following reasons(s):<br>"+cMr.getError().description);}}}}};HFP.prototype.updateRow=function(vFz){if(this.getRecordNode(vFz)!=null&&(objTR=this.xCCt(vFz))!=null){var GCn=HFP.LcDq(this.doTransform(vFz));if(GCn!=""){var JJt=new jsx3.xml.Document();JJt.loadXML(GCn);if(JJt.getError().code=="0"){var tBh=JJt.getRootNode();HFP.KzfG(tBh,objTR);var KxP=tBh.selectNodes("td");for(var lzG=0;lzG<KxP.getLength();lzG++){tBh=KxP.getItem(lzG);var Brr=objTR.childNodes.item(lzG);HFP.KzfG(tBh,Brr);var PJB=tBh.getChildNodes();var llG="";for(var mKC=0;mKC<PJB.getLength();mKC++){llG=llG+PJB.getItem(mKC).toString().doReplace("&lt;","<").doReplace("&gt;",">").doReplace("&amp;","&");}Brr.innerHTML=llG;}}else{jsx3.util.Logger.doLog("list.update.1","A row could not be updated, due to the following reasons(s):<br>"+JJt.getError().description,3,false);}}}};HFP.KzfG=function(xgj,kbp){var Lqh=xgj.getAttributes();for(var zGH=0;zGH<Lqh.getLength();zGH++){var vmq=Lqh.getItem(zGH);var cMt=vmq.getNodeName();var pkD=/(on(?:mousedown|click|focus|blur|mouseup|scroll|mouseup|keydown|keypress))/gi;var fqc=vmq.getValue();if(cMt.match(pkD)){kbp[cMt]=new Function(fqc);}else{if(cMt=="class"){kbp.className=fqc;}else{if(cMt=="style"){HFP.qzDt(kbp,fqc);}else{kbp.setAttribute(cMt,fqc);}}}}};HFP.qzDt=function(Hqn,flg){var drG=/(-\S)/gi;var Ddv=flg.split(";");for(var MtG=0;Ddv.length;MtG++){var LBk=Ddv[MtG];if(LBk==null)return;LBk=LBk+"";LBk=LBk.trim();if(LBk=="")return;var cJt=LBk.split(":");if(cJt&&cJt.length==2){var rGx=cJt[0].replace(drG,function(dLb,kMb){return kMb.substr(1).toUpperCase();});Hqn.style[rGx]=cJt[1];}}};HFP.PPts=function(GBr,Kvt){var llg=GBr.getAttributes();for(var NzG=0;NzG<llg.getLength();NzG++){var Jgp=llg.getItem(NzG);var qGs=Jgp.getNodeName();var CdC=/(on(?:mousedown|click|focus|blur|mouseup|scroll|mouseup|keydown|keypress))/gi;var skb=Jgp.getValue();if(qGs.match(CdC)){Kvt[qGs]=new Function(skb);}else{if(qGs!="class"){Kvt.setAttribute(qGs,skb);}else{Kvt.className=skb;}}}if(Kvt.tagName!="TR")Kvt.style.position="relative";};HFP.LcDq=function(wwr){var gmF=/(<(?:img|input)[^>]*)(>)/gi;wwr=wwr.replace(gmF,function(PNN,FbN,Lcb){return FbN+"/>";});wwr=wwr.doReplace("&nbsp","&#160").doReplace("&","&amp;");return wwr;};HFP.prototype.getGrowBy=function(){return this.jsxgrowby;};HFP.prototype.setGrowBy=function(fqh){this.jsxgrowby=fqh;return this;};HFP.prototype.getAutoExpand=function(){return jsx3.Boolean.valueOf(this.getGrowBy());};HFP.prototype.setAutoExpand=function(vMF){return this.setGrowBy(vMF?1:0);};HFP.prototype.getSortType=function(){if(this.jsxsorttype==null){if(this.jsxsortcolumn!=null)return this.getChild(this.jsxsortcolumn)==null?jsx3.gui.Column.TYPETEXT:this.getChild(this.jsxsortcolumn).getDataType();var fcb=this.getSortPath();for(var GND=this.getChildren().length-1;GND>=0;GND--){var tFs=this.getChild(GND);if(tFs instanceof jsx3.gui.Column&&tFs.getSortPath()==fcb)return this.getChild(GND).getDataType();}return jsx3.gui.Column.TYPETEXT;}else{return this.jsxsorttype;}};HFP.prototype.setSortType=function(NfG){this.jsxsorttype=NfG;return this;};HFP.prototype.getMaskProperties=function(){return jsx3.gui.Block.MASK_NO_EDIT;};HFP.prototype.getWrap=function(){return this.jsxwrap==null?jsx3.Boolean.TRUE:this.jsxwrap;};HFP.prototype.setWrap=function(rnt){this.resetXslCacheData();this.jsxwrap=rnt;return this;};HFP.prototype.onSetChild=function(PBs){return PBs instanceof jsx3.gui.Column;};HFP.prototype.jBkCc=function(mpt){var rgL=this.getRecord(mpt);return rgL!=null&&(rgL[pCf.ATTR_UNSELECTABLE]==null||rgL[pCf.ATTR_UNSELECTABLE]!="1");};HFP.prototype.onDestroy=function(hCC,dLs){this.jsxsuper(hCC,dLs);this.onDestroyCached(hCC);this._jsxMbft=true;};HFP.getVersion=function(){return "3.0.00";};});jsx3.gui.List.prototype.getResizeable=jsx3.gui.List.prototype.getResizable;jsx3.gui.List.prototype.setResizeable=jsx3.gui.List.prototype.setResizable;jsx3.gui.List.prototype.getCanResize=jsx3.gui.List.prototype.getResizable;jsx3.gui.List.prototype.setCanResize=jsx3.gui.List.prototype.setResizable;jsx3.gui.List.prototype.doClearSelections=jsx3.gui.List.prototype.deselectAllRecords;jsx3.gui.List.prototype.deselectRecords=jsx3.gui.List.prototype.deselectAllRecords;
jsx3.Class.defineClass("jsx3.gui.Grid",jsx3.gui.List,null,function(pnH){var tHD=jsx3.gui.Event;pnH.DEFAULTXSLURL=jsx3.resolveURI("JSX/xsl/jsx30grid.xsl");pnH.SELECTBGIMAGE="url("+jsx3.resolveURI("JSX/images/grid/select.gif")+")";pnH.DEFAULTBACKGROUND="background-image:url("+jsx3.resolveURI("JSX/images/list/grid.gif")+");";pnH.DEFAULTBACKGROUNDHEAD="background-image:url("+jsx3.resolveURI("JSX/images/list/header.gif")+");";pnH.DEFAULTBACKGROUNDCOLOR="#c8cfd8";pnH.DEFAULTBACKGROUNDCOLORHEAD="#c8cfd8";pnH.DEFAULTROWCLASS="jsx30list_r2";pnH.prototype.init=function(KlH){this.jsxsuper(KlH);this._jsxhFfl=null;};pnH.prototype.getTabListener=function(){return this.jsxtablistener;};pnH.prototype.setTabListener=function(pqF){this.jsxtablistener=pqF;return this;};pnH.prototype.paint=function(){this.resetMask();return this.jsxsuper();};pnH.prototype.getClassName=function(){return this.jsxclassname==null?pnH.DEFAULTROWCLASS:this.jsxclassname;};pnH.prototype.getXSL=function(){var jbr=this.jsxsuper(pnH.DEFAULTXSLURL);return jbr;};pnH.prototype.doValidate=function(){return this.setValidationState(jsx3.gui.Form.STATEVALID).getValidationState();};pnH.prototype.gdtqB=function(){return "background-color:"+(this.getBackgroundColor()?this.getBackgroundColor():pnH.DEFAULTBACKGROUNDCOLOR)+";";};pnH.prototype.rBNqD=function(){return this.getBackground()?this.getBackground()+";":pnH.DEFAULTBACKGROUND;};pnH.prototype.dCJj=function(bKn,hbb){this.resetMask();this.jsxsuper(bKn,hbb);};pnH.prototype.resetMask=function(wtp){if(wtp||(wtp=this.getActiveMask())!=null)wtp.setVisibility(jsx3.gui.Block.VISIBILITYHIDDEN,true).setLeft(0,true).setTop(0,true);};pnH.prototype.doSort=function(cLH){if(objMask=this.getActiveMask())this.onAfterEdit(null,objMask);this.resetMask();this.jsxsuper(cLH);};pnH.prototype.repaintBody=function(){this.resetMask();this.jsxsuper();};pnH.prototype.doBlurItem=function(KnB){};pnH.prototype.doFocusItem=function(NdB,DnH,pFm){pFm=tHD.getCurrent();var zcq=NdB.document;var glF=NdB.parentElement.id.substr(this.getId().length);if(!this.jBkCc(glF))return;var bzj=NdB!=this._jsxhFfl||DnH;if(bzj&&this._jsxcurmask!=null&&(DnH==true||DnH!=true&&!(this._jsxcurmask instanceof jsx3.gui.TextBox))){this.onAfterEdit(this._jsxhFfl,this._jsxcurmask);}else{if(bzj&&this._jsxcurmask!=null){this.resetMask();}}try{NdB.focus();if(this._jsxhFfl!=null)this._jsxhFfl.style.backgroundImage=this._jsxhFfl.prevBG!=null?this._jsxhFfl.prevBG:"";if(this.getGrowBy()&&NdB.parentElement==NdB.parentElement.parentElement.lastChild)this.appendRow();}catch(e){var nvP=zcq.getElementById(this._jsxrowid);if(nvP!=null)nvP.children(this._jsxcellindex).style.backgroundImage="";return false;}NdB.prevBG=NdB.style.backgroundImage;NdB.style.backgroundImage=pnH.SELECTBGIMAGE;this._jsxhFfl=NdB;this._jsxcellindex=NdB.cellIndex;this._jsxrowid=NdB.parentElement.id;var Gqv=this.fbzh()[this._jsxcellindex];if(DnH==null){if(NdB.jsxmask!=null&&NdB.jsxmask!="jsxnull"){var Mck=Gqv.getDescendantOfName(NdB.jsxmask)||this.getDescendantOfName(NdB.jsxmask);this.jBGK(pFm,NdB,Mck);}else{this.doEvent(jsx3.gui.Interactive.SELECT,{objEVENT:pFm,strRECORDID:glF,intCOLUMNINDEX:this._jsxcellindex});}}};pnH.prototype.jBGK=function(zml,GqL,zLq){this.resetMask();this._jsxcurmask=zLq;var PPw=this.fbzh()[this._jsxcellindex].getPath().doReplace("@","");var rGC=this.getSelectedId();zLq.setValue();var bhj=this.doEvent(jsx3.gui.Interactive.BEFORE_EDIT,{objEVENT:zml,strATTRIBUTENAME:PPw,strRECORDID:rGC,objMASK:zLq,intCOLUMNINDEX:this._jsxcellindex});if(bhj!==false&&GqL!=null&&zLq!=null){var dvl=GqL.document;var vhz=this.getHeaderHeight()===0||this.getHeaderHeight()?this.getHeaderHeight():jsx3.gui.List.DEFAULTHEADERHEIGHT;zLq._jsxvalidrow=GqL.parentElement.id;var BBH=dvl.getElementById(this.getId()+"_jsxbody");var DxP=this.getRecord(rGC);var tDv=DxP[PPw];if(tDv==null)tDv="";var HmB=this.getAbsolutePosition(this.getRendered(),GqL);if(zLq instanceof jsx3.gui.TextBox){zLq.setLeft(HmB.L+BBH.scrollLeft,true);zLq.setTop(HmB.T-vhz+BBH.scrollTop,true);zLq.setWidth(HmB.W-1,true);zLq.setHeight(HmB.H-1,true);zLq.setValue(tDv);zLq._jsxprevmaskvalue=tDv;zLq.setVisibility(jsx3.gui.Block.VISIBILITYVISIBLE,true);if((GqL=zLq.getRendered())&&GqL.scrollHeight>GqL.offsetHeight)zLq.setHeight(HmB.H-1+HmB.H,true);if(zLq.getType()==1){zLq.focus();zLq.getRendered().select();}else{zLq.focus();oRange=dvl.selection.createRange();oRange.move("sentence",-1);oRange.moveEnd("character",tDv.length);oRange.select();}}else{if(zLq instanceof jsx3.gui.ToolbarButton||zLq instanceof jsx3.gui.Menu){zLq.setLeft(HmB.L+HmB.W-zLq.getAbsolutePosition().W+BBH.scrollLeft+(zLq instanceof jsx3.gui.Menu?2:0),true);zLq.setTop(HmB.T-vhz+BBH.scrollTop-2,true);zLq.setVisibility(jsx3.gui.Block.VISIBILITYVISIBLE,true);zLq._jsxvalue=tDv==""?null:tDv;zLq._jsxprevmaskvalue=tDv;if(zml.ctrlKey()){if(zLq instanceof jsx3.gui.Menu){zLq.showMenu(zml,zLq.getRendered(),1);}else{zLq.focus();}}}else{if(zLq instanceof jsx3.gui.Select){if(zLq.getValue()==null){if(zLq.getType()==jsx3.gui.Select.TYPECOMBO){zLq.getInputElement().value=tDv;zLq.jsxvalue=tDv;}else{zLq.setValue(tDv==""?null:tDv);zLq.setText(tDv==null?"":tDv);}}zLq.setLeft(HmB.L+BBH.scrollLeft,true);zLq.setTop(HmB.T-vhz+BBH.scrollTop,true);zLq.setWidth(HmB.W-1,true);zLq.setHeight(HmB.H-1,true);zLq._jsxprevmaskvalue=zLq.getValue();zLq.setVisibility(jsx3.gui.Block.VISIBILITYVISIBLE,true);if(zml.ctrlKey()){zLq.show();}else{window.setTimeout(function(){zLq.focus();},100);}}}}delete this._jsxisblur;}};pnH.prototype.doMaskKeyDown=function(gHH){var NCh=tHD.getCurrent();var kvN=false;var zNq=NCh.keyCode();var jpk=zNq>36&&zNq<41;if((NCh.enterKey()||NCh.tabKey())&&!NCh.ctrlKey()||jpk&&(NCh.ctrlKey()||NCh.altKey())){if(NCh.enterKey()&&NCh.shiftKey()||zNq==tHD.KEY_ARROW_UP){NCh.setKeyCode(tHD.KEY_ARROW_UP);}else{if(NCh.enterKey()||zNq==tHD.KEY_ARROW_DOWN){NCh.setKeyCode(tHD.KEY_ARROW_DOWN);}else{if(NCh.tabKey()&&NCh.shiftKey()&&!(!this.getTabListener()||this.getTabListener()==jsx3.Boolean.TRUE)){try{this.focus();return;}catch(e){}}else{if(NCh.tabKey()&&!(!this.getTabListener()||this.getTabListener()==jsx3.Boolean.TRUE)){try{this.getRendered().lastChild.focus();return;}catch(e){}}}}}this._jsxisblur=this.getActiveMask()&&this.getActiveMask() instanceof jsx3.gui.TextBox;this.doKeyDown(NCh,gHH);kvN=true;}else{if(NCh.ctrlKey()&&NCh.enterKey()){var sBh=this.getDocument().selection.createRange();sBh.text="\n";sBh.select();kvN=true;}else{if(jpk){kvN=true;}}}if(kvN){NCh.cancelBubble();NCh.cancelReturn();}};pnH.prototype.getSelectedId=function(){return (myRec=this._jsxrowid)!=null?myRec.substr(this.getId().length):null;};pnH.prototype.getActiveMask=function(){return this._jsxcurmask;};pnH.prototype.getActiveCell=function(){return this._jsxhFfl;};pnH.prototype.getActiveRow=function(){return (objCell=this.getActiveCell())?objCell.parentNode:null;};pnH.prototype.getActiveAttribute=function(){if(this._jsxcellindex){var Lbw=this.fbzh()[this._jsxcellindex];if(Lbw)return Lbw.getPath().doReplace("@","");}return null;};pnH.prototype.onAfterEdit=function(krF,dMk,ccm,xgF){var dnf=tHD.getCurrent();var FLp=this.fbzh()[this._jsxcellindex].getPath().doReplace("@","");var xfw=this.getSelectedId();if(krF==null)krF=this._jsxhFfl;var cBH=krF&&krF.parentElement?krF.parentElement.id:null;if(dMk._jsxvalidrow==null||dMk._jsxvalidrow!=cBH){jsx3.util.Logger.doLog("GRID10","onAfterEdit called for invalid row "+cBH,9);return;}if(!(krF.jsxmask==null||krF.jsxmask=="jsxnull")){if(dMk==null||typeof(dMk.getValue)=="function"&&dMk.getValue()!=dMk._jsxprevmaskvalue){var KGN=this.doEvent(jsx3.gui.Interactive.AFTER_EDIT,{objEVENT:dnf,strATTRIBUTENAME:FLp,strRECORDID:xfw,objMASK:dMk,objGUI:krF,intCOLUMNINDEX:this._jsxcellindex});if(KGN!==false&&dMk!=null){this.updateCell(FLp,xfw,krF,dMk);if(ccm&&dMk instanceof jsx3.gui.Menu)this.getActiveCell().focus();}}}if(dMk!=null&&xgF!==true){this.resetMask(dMk);delete this._jsxcurmask;delete dMk._jsxvalidrow;}};pnH.prototype.updateCell=function(CPp,Gtw,KqD,DLj){if(DLj==null)DLj=this.getActiveMask();if(KqD==null)KqD=this._jsxhFfl;if(DLj&&KqD){if(CPp==null)CPp=this.fbzh()[this._jsxcellindex].getPath().doReplace("@","");if(Gtw==null)Gtw=this.getSelectedId();var wPt=typeof(DLj.getMaskValue)=="function"?DLj.getMaskValue():DLj.getValue();if(wPt==null)wPt="";this.insertRecordProperty(Gtw,CPp,wPt,true);}};pnH.prototype.doKeyDown=function(pJc,vMC){if(this.jsxsupermix(pJc,vMC))return;if(this._jsxhFfl==null||this._jsxhFfl.parentElement==null)return;var zKx=this._jsxhFfl;var vht=this.fbzh().length;var JJN=pJc.keyCode();var xtf=JJN>=tHD.KEY_ARROW_LEFT&&JJN<=tHD.KEY_ARROW_DOWN||JJN==tHD.KEY_TAB&&(!this.getTabListener()||this.getTabListener()==jsx3.Boolean.TRUE);var FwG=xtf;if(xtf){var xCm=null;var Hml=zKx==zKx.parentElement.firstChild;var fLz=zKx.cellIndex>=vht-1;var vgg=zKx.parentElement==zKx.parentElement.parentElement.firstChild;var Bsv=zKx.parentElement==zKx.parentElement.parentElement.lastChild;if(JJN==tHD.KEY_ARROW_LEFT||pJc.shiftKey()&&JJN==tHD.KEY_TAB){if(JJN==tHD.KEY_TAB)JJN=tHD.KEY_ARROW_LEFT;if(Hml){if(vgg)xCm=zKx;else xCm=zKx.parentElement.previousSibling.children(vht-1);}else{xCm=zKx.previousSibling;}}else{if(JJN==tHD.KEY_ARROW_UP){if(vgg)xCm=zKx;else xCm=zKx.parentElement.previousSibling.children(zKx.cellIndex);}else{if(JJN==tHD.KEY_ARROW_RIGHT||JJN==tHD.KEY_TAB){if(JJN==tHD.KEY_TAB)JJN=tHD.KEY_ARROW_RIGHT;if(fLz){if(Bsv)xCm=zKx;else xCm=zKx.parentElement.nextSibling.children(0);}else{xCm=zKx.nextSibling;}}else{if(JJN==tHD.KEY_ARROW_DOWN){if(Bsv)xCm=zKx;else xCm=zKx.parentElement.nextSibling.children(zKx.cellIndex);}}}}this.doFocusItem(xCm,true,pJc);}else{if(JJN==tHD.KEY_ENTER){}else{if(JJN==tHD.KEY_TAB&&pJc.shiftKey()){this.focus();FwG=true;}else{if(JJN==tHD.KEY_TAB){this.getRendered().lastChild.focus();FwG=true;}}}}if(FwG){pJc.cancelBubble();pJc.cancelReturn();}};pnH.prototype.doExecute=function(Kdt,qMD){this._doExecute(this.isOldEventProtocol(),Kdt,qMD);};pnH.prototype._doExecute=function(MGN,bbt,vJD){if(bbt==null&&this._jsxrowid)bbt=this._jsxrowid.substring(this.getId().length);if(vJD==null)vJD=this._jsxcellindex;if(bbt==null)return;if(!this.jBkCc(bbt))return;var Dlt=this.getRecordNode(bbt);if(Dlt!=null)this.eval(Dlt.getAttribute("jsxexecute"),{strRECORDID:bbt,intCOLUMNINDEX:vJD});if(MGN)this.doEvent(jsx3.gui.Interactive.EXECUTE,{objEVENT:MGN instanceof tHD?MGN:null,strRECORDID:bbt,intCOLUMNINDEX:vJD});};pnH.prototype.doClick=function(qgN,wkz){var HBC=qgN.srcElement();if(HBC.tagName=="TBODY"||HBC.tagName=="TR")return;var wtM=this.getRendered();while(HBC.tagName!="TD"&&HBC!=wtM)HBC=HBC.parentElement;if(HBC.tagName=="TD"){if(HBC.parentElement.JSXDragId==null)return;if(HBC.cellIndex==this.fbzh().length)return;HBC.focus();qgN.cancelBubble();qgN.cancelReturn();}};pnH.prototype.vNqvs=function(){var Ddm="";var pjL=this.fbzh();var skw=pjL.length;for(var LjP=0;LjP<skw;LjP++){var bJx=pjL[LjP];var Bmp=bJx.getChildren();for(var khw=0;khw<Bmp.length;khw++){Ddm=Ddm+Bmp[khw].paint();}}return Ddm;};pnH.prototype.redrawRecord=function(vjr,rvw){if(rvw==jsx3.xml.CDF.DELETE){this.resetMask();}this.jsxsuper(vjr,rvw);};pnH.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.Column",jsx3.gui.Block,null,function(rJn){rJn.DEFAULTWIDTH="&nbsp;";rJn.DEFAULTWIDTH=100;rJn.DEFAULTCELLCLASSLIST="jsx30column_c1";rJn.DEFAULTCELLCLASSGRID="jsx30column_c3";rJn.TYPETEXT="text";rJn.TYPENUMBER="number";rJn.FIXED=0;rJn.RESIZEABLE=1;rJn.RESIZABLE=1;rJn.DEFAULT_XSL="<xsl:choose><xsl:when test=\"@path@ and not(@path@='')\"><xsl:value-of select=\"@path@\"/></xsl:when><xsl:otherwise>&#160;</xsl:otherwise></xsl:choose>";rJn.IMG_ASCENDING=jsx3.resolveURI("JSX/images/list/sort_asc.gif");rJn.IMG_DESCENDING=jsx3.resolveURI("JSX/images/list/sort_desc.gif");rJn.DEFAULTTEXT="&nbsp;";rJn.VALIGNTOP="top";rJn.VALIGNMIDDLE="middle";rJn.prototype.init=function(NmG,mBp,jxp,cgn){this.jsxsuper(NmG,null,null,jxp,null,mBp);if(cgn!=null)this.setPath(cgn);};rJn.prototype.onSet=function(rpd){return rpd instanceof jsx3.gui.List;};rJn.prototype.onDestroy=function(kgd,gpH){if(kgd&&gpH)this.destroyView(kgd);return this.doEvent(jsx3.gui.Interactive.DESTROY,{objPARENT:kgd});};rJn.prototype.getDataType=function(){return this.jsxdatatype==null?rJn.TYPETEXT:this.jsxdatatype;};rJn.prototype.setDataType=function(PsF){this.jsxdatatype=PsF;return this;};rJn.prototype.getEditMask=function(){return this.jsxmask==null?null:this.jsxmask;};rJn.prototype.setEditMask=function(sLP){this.jsxmask=sLP;return this;};rJn.prototype.getResizable=function(){return this.jsxresize==null?jsx3.Boolean.TRUE:this.jsxresize;};rJn.prototype.setResizable=function(kCD){this.jsxresize=kCD;return this;};rJn.prototype.getPath=function(){return this.jsxpath==null?"@jsxid":this.jsxpath;};rJn.prototype.setPath=function(KKk){this.jsxpath=KKk;return this;};rJn.prototype.getSortPath=function(){return this.jsxsortpath!=null?this.jsxsortpath:this.getPath();};rJn.prototype.setSortPath=function(Grk){this.jsxsortpath=Grk;return this;};rJn.prototype.getWrap=function(){return this.jsxwrap==null?jsx3.Boolean.FALSE:this.jsxwrap;};rJn.prototype.setWrap=function(NvD){this.jsxwrap=NvD;return this;};rJn.prototype.getVAlign=function(){return this.jsxvalign==null?rJn.VALIGNTOP:this.jsxvalign;};rJn.prototype.setVAlign=function(HnJ){this.jsxvalign=HnJ;return this;};rJn.prototype.paint=function(ntC,lBc){this.applyDynamicProperties();var DKM=this.getParent();var kdx="";if(DKM.getResizable()){var mkj=DKM.fbzh();var jLD=mkj.indexOf(this);if(jLD!=0&&mkj[jLD-1].getResizable()||ntC&&mkj[mkj.length-1].getResizable())kdx="<img "+DKM.renderHandler(jsx3.gui.Event.MOUSEDOWN,"dCJj")+" align=\"absbottom\" style=\"position:absolute;left:0px;top:0px;"+DKM.nrgKz()+"\" unselectable=\"on\" src=\""+jsx3.gui.Block.SPACE+"\" class=\"jsx30column_anchor\">";}if(ntC){return "<td  unselectable=\"on\"  class=\"jsx30column_cell\" style=\"position:relative;\" width=\"*\" ><nobr>"+kdx+"&nbsp;</nobr></td>";}else{var bBG=this.renderHandler(jsx3.gui.Event.MOUSEUP,"doMouseUp");if(DKM.getCanReorder())bBG=bBG+DKM.renderHandler(jsx3.gui.Event.MOUSEDOWN,"vjwj");else{if(DKM.getCanSort()!=0&&this.getCanSort()!=0)bBG=bBG+DKM.renderHandler(jsx3.gui.Event.CLICK,"qxJx");}var NcD=lBc==null?"":"background-image:url("+(lBc==jsx3.gui.List.SORTASCENDING?rJn.IMG_ASCENDING:rJn.IMG_DESCENDING)+");background-repeat:no-repeat;background-position-x:99%;background-position-y:center;";var lFm=this.getWrap()?"":"overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis;";var FsH=this.getVAlign()==rJn.VALIGNTOP?DKM.nrgKz():"";return "<td cellindex=\""+this.getChildIndex()+"\" id=\""+this.getId()+"\" unselectable=\"on\" "+bBG+" class=\"jsx30column_cell\" style=\"padding-left:0px;position:relative;"+this.Bqxnk(ntC)+this.gdtqB()+this.nnPmr()+this.mnbFn()+this.nwrgK()+this.PGwwt()+this.DHnnv()+NcD+this.jlMxm()+"\" "+this.Gqgtx()+this.dkmsd()+"><div style=\""+FsH+lFm+"width:100%;padding-left:4px;vertical-align:middle;\">"+kdx+"<span>"+this.pNnDp()+"</span>"+"</div></td>";}};rJn.prototype.repaint=function(){this.getParent().resetXslCacheData();this.getParent().repaintHead();this.getParent().repaintBody();};rJn.prototype.Bqxnk=function(MmB){return !this.getCursor()||MmB?"cursor:default;":"cursor:"+this.getCursor()+";";};rJn.prototype.pNnDp=function(){return this.getText()?this.getText():rJn.DEFAULTTEXT;};rJn.prototype.Gqgtx=function(mKz){if(mKz==true)return " width=\"*\" ";return " width=\""+(this.getWidth()?this.getWidth():rJn.DEFAULTWIDTH)+"\" ";};rJn.prototype.nbpjv=function(){return this.getClassName()?this.getClassName():this.getParent() instanceof jsx3.gui.Grid?rJn.DEFAULTCELLCLASSGRID:rJn.DEFAULTCELLCLASSLIST;};rJn.prototype.getXSLString=function(Klf){return this.jsxxsl;};rJn.prototype.setXSLString=function(Ccf){if(Ccf==null||Ccf==""){delete this.jsxxsl;}else{this.jsxxsl=Ccf;}return this;};rJn.prototype.paintXSLString=function(BKP){var hJB=this.getPath()?"<xsl:value-of select=\""+this.getPath()+"\"/>":"";if(this.getParent().getWrap()==jsx3.Boolean.TRUE){var Fcz="";var zqP="";}else{var Fcz="<nobr>";var zqP="</nobr>";}if(BKP){return "<td style=\"position:relative;\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" unselectable=\"on\" width=\"*\" class=\""+this.nbpjv()+"\">&#160;</td>";}else{if(this.getParent() instanceof jsx3.gui.Grid){var hhN=(myMask=this.getEditMask())==null?"":" jsxmask=\""+myMask+"\" ";return "<td valign=\"top\" "+this.getParent().BxCtt()+" "+hhN+this.renderHandler(jsx3.gui.Event.FOCUS,"doFocus")+this.getParent().renderHandler(jsx3.gui.Event.BLUR,"doBlurItem")+" style=\"position:relative;"+this.PGwwt()+";\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" unselectable=\"on\" "+this.Gqgtx()+" class=\""+this.nbpjv()+"\">"+Fcz+this.getXSLStringVal()+zqP+"</td>";}else{return "<td style=\"position:relative;"+this.PGwwt()+"\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" unselectable=\"on\" "+this.Gqgtx()+" class=\""+this.nbpjv()+"\">"+Fcz+this.getXSLStringVal()+zqP+"</td>";}}};rJn.prototype.doFocus=function(wMg,CcH){this.getParent().doFocusItem(CcH);};rJn.prototype.getXSLStringVal=function(){if(this.getXSLString()){var qfB=this.getPath();if(qfB)return this.getXSLString().doReplace("@path@",qfB);else return this.getXSLString();}else{var qfB=this.getPath();if(qfB)return rJn.DEFAULT_XSL.doReplace("@path@",qfB);else return "";}};rJn.prototype.getCanSort=function(){return this.jsxsort==null?1:this.jsxsort;};rJn.prototype.setCanSort=function(sdq){this.jsxsort=sdq;return this;};rJn.prototype.getMaskProperties=function(){return jsx3.gui.Block.MASK_NO_EDIT;};rJn.getVersion=function(){return "3.0.00";};});jsx3.gui.Column.prototype.getResizeable=jsx3.gui.Column.prototype.getResizable;jsx3.gui.Column.prototype.setResizeable=jsx3.gui.Column.prototype.setResizable;
jsx3.Class.defineClass("jsx3.gui.DatePicker",jsx3.gui.Block,[jsx3.gui.Form],function(Kbk){var xxD=jsx3.gui.Event;var wsm=jsx3.gui.Interactive;Kbk.DEFAULT_FORMAT="M/d/yyyy";Kbk.DEFAULT_WEEK_START=0;Kbk.PnFz=jsx3.resolveURI("JSX/images/jsxdatepicker/next.gif");Kbk.GLNM=jsx3.resolveURI("JSX/images/jsxdatepicker/previous.gif");Kbk.prototype.jsxformat=Kbk.DEFAULT_FORMAT;Kbk.prototype.jsxfirstweekday=Kbk.DEFAULT_WEEK_START;Kbk.prototype._jsxGbHg=null;Kbk.prototype._jsxvvmz=null;Kbk.prototype.init=function(JfH,Ljl,rPp,dqq,LKL){this.jsxsuper(JfH,Ljl,rPp,dqq,LKL);this.jsxyear=1970;this.jsxmonth=0;this.jsxdate=1;};Kbk.prototype.zphB=function(){var BDx=this.GNpl(true);this.CbNb();BDx.show();this.doEvent(wsm.SHOW);this._jsxLLxD=true;xxD.subscribe(xxD.MOUSEDOWN,this,"MKDL");};Kbk.prototype.MKDL=function(Cjq){var nsx=this.GNpl();if(nsx!=null){nsx.destroy();this.doEvent(wsm.HIDE);}this._jsxLLxD=false;xxD.unsubscribe(xxD.MOUSEDOWN,this);};Kbk.prototype.getFormat=function(){return this.jsxformat!=null?this.jsxformat:Kbk.prototype.jsxformat;};Kbk.prototype.setFormat=function(LhJ){this.jsxformat=LhJ;delete this._jsxmPrD;};Kbk.prototype.getFirstDayOfWeek=function(){return this.jsxfirstweekday!=null?this.jsxfirstweekday:Kbk.prototype.jsxfirstweekday;};Kbk.prototype.setFirstDayOfWeek=function(JJl){if(JJl>=0&&JJl<=6){this.jsxfirstweekday=JJl;}else{throw new jsx3.IllegalArgumentException("jsxfirstweekday",JJl);}};Kbk.prototype.getDate=function(){if(this.jsxyear!=null)return new Date(this.jsxyear,this.jsxmonth,this.jsxdate);else return null;};Kbk.Ckwj=["yyyy","yy","MMMM","MMM","MM","M","dd","d","EEEE","EEE","EE"];Kbk.prototype.dFqp=function(){if(this._jsxmPrD==null){this._jsxmPrD=[];var BCl=0;var qkh=this.getFormat();L1:while(qkh.length>0){if(qkh.charAt(0)=="\\"){if(this._jsxmPrD[BCl]==null)this._jsxmPrD[BCl]="";this._jsxmPrD[BCl]+=qkh.substring(1,2);qkh=qkh.substring(2);}else{L2:for(var dkb=0;dkb<Kbk.Ckwj.length;dkb++){var mNP=Kbk.Ckwj[dkb];if(qkh.indexOf(mNP)==0){this._jsxmPrD.push(dkb);qkh=qkh.substring(mNP.length);BCl=this._jsxmPrD.length;continue L1;}}if(this._jsxmPrD[BCl]==null)this._jsxmPrD[BCl]="";this._jsxmPrD[BCl]+=qkh.charAt(0);qkh=qkh.substring(1);}}}return this._jsxmPrD;};Kbk.prototype.KbFP=function(){var vPw=this.dFqp();var frv=this.getServer();var jrw="";if(this.jsxyear!=null){var gcc=this.getDate();var BGf=""+gcc.getFullYear();var gHB=""+(gcc.getMonth()+1);var GMk=""+gcc.getDate();for(var pKJ=0;pKJ<vPw.length;pKJ++){var xzt=vPw[pKJ];if(typeof(xzt)=="number"){switch(xzt){case 0:jrw=jrw+BGf;break;case 1:jrw=jrw+BGf.substring(BGf.length-2);break;case 2:jrw=jrw+this.HPCx(gcc.getMonth(),frv);break;case 3:jrw=jrw+this.HPCx(gcc.getMonth(),frv).substring(0,3);break;case 4:jrw=jrw+(gHB.length<2?"0"+gHB:gHB);break;case 5:jrw=jrw+gHB;break;case 6:jrw=jrw+(GMk.length<2?"0"+GMk:GMk);break;case 7:jrw=jrw+GMk;break;case 8:jrw=jrw+frv.getDynamicProperty("@Day"+gcc.getDay());break;case 9:jrw=jrw+frv.getDynamicProperty("@Day"+gcc.getDay()).substring(0,3);break;case 10:jrw=jrw+frv.getDynamicProperty("@Day"+gcc.getDay()).substring(0,2);break;}}else{jrw=jrw+xzt;}}}else{for(var pKJ=0;pKJ<vPw.length;pKJ++){var xzt=vPw[pKJ];if(typeof(xzt)=="number"){jrw=jrw+Kbk.Ckwj[xzt];}else{jrw=jrw+xzt;}}}return jrw;};Kbk.prototype.getValue=function(){var lLk=this.getRendered();return lLk!=null?lLk.value:null;};Kbk.prototype.setDate=function(rBf){if(rBf!=null){this.jsxyear=rBf.getFullYear();this.jsxmonth=rBf.getMonth();this.jsxdate=rBf.getDate();}else{this.jsxyear=this.jsxmonth=this.jsxdate=null;}var GCk=this.getRendered();if(GCk!=null)GCk.value=this.KbFP();};Kbk.prototype.tPHh=function(Bwg){var znf=new Date(this._jsxGbHg+Bwg,this._jsxvvmz,1);this._jsxGbHg=znf.getFullYear();this._jsxvvmz=znf.getMonth();this.CbNb();};Kbk.prototype.jBlD=function(Lpg){var Kgf=new Date(this._jsxGbHg,this._jsxvvmz+Lpg,1);this._jsxGbHg=Kgf.getFullYear();this._jsxvvmz=Kgf.getMonth();this.CbNb();};Kbk.prototype.cClk=function(rLk,xbL){rLk=xxD.wrap(rLk);var sjc=xbL.id.substring(xbL.id.lastIndexOf("_")+1).split("-");var MMK=this.getDate();var xGw=new Date(sjc[0],sjc[1],sjc[2]);if(!xGw.equals(MMK)){if(this.doEvent(wsm.CHANGE,{objEVENT:rLk,oldDATE:MMK,newDATE:xGw})!==false){this.setDate(xGw);this.CbNb();var BLg=this.getRendered();BLg.value=this.KbFP();}}this.MKDL();};Kbk.prototype.CbNb=function(){var BCr=this.GNpl();if(BCr!=null)BCr.setHTML(this.MNLm(this._jsxGbHg,this._jsxvvmz),true);};Kbk.prototype.doFocus=function(bmk,hrK){var frj=hrK;frj.blur();if(this._jsxLLxD)return;if(this.getEnabled()!=jsx3.gui.Form.STATEENABLED)return;var sBc=this.getDate();if(sBc!=null){this._jsxGbHg=sBc.getFullYear();this._jsxvvmz=sBc.getMonth();}this.zphB();};Kbk.prototype.doMouseUp=function(GLj,MbK){if(GLj.rightButton()){this.MKDL();this.jsxsupermix(GLj,MbK);}};Kbk.Lsgl={};Kbk.Lsgl[xxD.FOCUS]=true;Kbk.Lsgl[xxD.MOUSEUP]=true;Kbk.prototype.paint=function(){this.applyDynamicProperties();if(this.jsxyear!=null){this._jsxGbHg=this.jsxyear;this._jsxvvmz=this.jsxmonth;}else{var Dzc=new Date();this._jsxGbHg=Dzc.getFullYear();this._jsxvvmz=Dzc.getMonth();}var sHD="jsx3.GO('"+this.getId()+"')";var dBf=this.getClassName()!=null?this.getClassName():"jsx30textbox";var Drq=this.getEnabled()==jsx3.gui.Form.STATEENABLED?this.getBackgroundColor():this.getDisabledBackgroundColor();var gFK="<input";gFK=gFK+(" type=\"text\""+this.paintEnabled()+this.dkmsd());gFK=gFK+this.renderHandlers(Kbk.Lsgl);gFK=gFK+(" id=\""+this.getId()+"\" class=\""+dBf+"\"");gFK=gFK+(" label=\""+this.getName()+"\"");gFK=gFK+this.BxCtt();gFK=gFK+(" value=\""+this.KbFP()+"\"");gFK=gFK+(" style=\"padding-left:2px;"+this.mnbFn());gFK=gFK+this.DHnnv();gFK=gFK+(this.nggnf()+this.gMtsd()+this.Gqgtx()+this.nhLcs());gFK=gFK+(this.chbLq()+this.hqPwJ()+this.vrKJJ());gFK=gFK+this.NHPtn();if(Drq!=null)gFK=gFK+("background-color:"+Drq+";");if(this.getBackground()!=null)gFK=gFK+(this.getBackground()+";");gFK=gFK+this.nnPmr();gFK=gFK+this.nwrgK();gFK=gFK+this.PGwwt();gFK=gFK+(this.vMFll()+this.rcPjv()+this.fgxdw()+this.Bqxnk());gFK=gFK+this.getCSSOverride();gFK=gFK+("\""+this.renderAttributes(null,true)+"/>");return gFK;};Kbk.prototype.MNLm=function(sHf,LFD){var gJv=this.getId();var HHC="jsx3.GO('"+gJv+"')";var kbN="tPHh";var Dsm="jBlD";var vFJ="<table cellspacing=\"0\" class=\"jsx3_dp_cal\">";vFJ=vFJ+"<tr class=\"year\">";vFJ=vFJ+("<td class=\"prev\"><img id=\""+gJv+"_dy\" onclick=\""+HHC+"."+kbN+"(-1);\" src=\""+Kbk.GLNM+"\"/></td>");vFJ=vFJ+("<td class=\"title\">"+sHf+"</td>");vFJ=vFJ+("<td class=\"next\"><img id=\""+gJv+"_uy\" onclick=\""+HHC+"."+kbN+"(1);\" src=\""+Kbk.PnFz+"\"/></td>");vFJ=vFJ+"</tr>";vFJ=vFJ+"<tr class=\"month\">";vFJ=vFJ+("<td class=\"prev\"><img id=\""+gJv+"_dm\" onclick=\""+HHC+"."+Dsm+"(-1);\" src=\""+Kbk.GLNM+"\"/></td>");vFJ=vFJ+("<td class=\"title\">"+this.HPCx(LFD)+"</td>");vFJ=vFJ+("<td class=\"next\"><img id=\""+gJv+"_um\" onclick=\""+HHC+"."+Dsm+"(1);\" src=\""+Kbk.PnFz+"\"/></td>");vFJ=vFJ+"</tr>";vFJ=vFJ+"<tr class=\"days\"><td class=\"cal\" colspan=\"3\">";vFJ=vFJ+this.Chpp(sHf,LFD);vFJ=vFJ+"</td></tr></table>";return "<span class=\"jsx3_dp_cal\" onmousedown=\"jsx3.gui.Event.wrap(event).cancelBubble();\" onclick=\"jsx3.gui.Event.wrap(event).cancelBubble();\" style=\"z-index:5000;position:absolute;left:0px;top:0px;\">"+vFJ+"</span>";};Kbk.prototype.Chpp=function(Phf,dgD){var wgq=this.getServer();var Bgj=new Date(Phf,dgD,1);var lgz=this.getFirstDayOfWeek();var Fzb=Bgj.getDay();var xwG=Bgj.getLastDateOfMonth();var KCq=this.getId();var xCx="jsx3.GO('"+KCq+"')";var pkj="cClk";var wnF="<table cellspacing=\"0\" class=\"jsx3_dp_month\">";wnF=wnF+"<tr>";for(var MvB=lgz;MvB<lgz+7;MvB++){wnF=wnF+("<th>"+this.HblM(MvB%7,wgq)+"</th>");}wnF=wnF+"</tr>";var PMp=new Date(Phf,dgD,1-(Fzb-lgz+7)%7);var Dth=PMp.getDate();var Dgx=new Date(Phf,dgD+1,1);var zvs=Dgx.getDate();var mpt=new Date();var MvB=0;while(MvB<=xwG){wnF=wnF+"<tr>";for(var rqw=0;rqw<7;rqw++){var PDm=Phf;var Gct=dgD;var Chh=null;var Nfs=null;var xkm="over";if(MvB==0){if((rqw+lgz)%7==Fzb){MvB=1;}else{PDm=PMp.getFullYear();Gct=PMp.getMonth();Nfs="prev";Chh=Dth;Dth++;}}if(MvB>0){if(MvB<=xwG){Nfs="normal";Chh=MvB;MvB++;}else{PDm=Dgx.getFullYear();Gct=Dgx.getMonth();Nfs="next";Chh=zvs;zvs++;}}if(this.jsxyear==PDm&&this.jsxmonth==Gct&&this.jsxdate==Chh)Nfs="selected";var Hks=Chh==mpt.getDate()&&Gct==mpt.getMonth()&&PDm==mpt.getFullYear();if(Hks){Nfs=Nfs+" today";xkm=xkm+" today";}wnF=wnF+("<td id=\""+KCq+"_"+PDm+"-"+Gct+"-"+Chh+"\"");wnF=wnF+(" class=\""+Nfs+"\" onmouseover=\"this.className='"+xkm+"'\" onmouseout=\"this.className='"+Nfs+"'\" onclick=\""+xCx+"."+pkj+"(event,this);\">");wnF=wnF+Chh;wnF=wnF+"</td>";}wnF=wnF+"</tr>";}wnF=wnF+"</table>";return wnF;};Kbk.prototype.HblM=function(cnC,DzM){if(DzM==null)DzM=this.getServer();return DzM.getDynamicProperty("@Day"+cnC%7).substring(0,2);};Kbk.prototype.HPCx=function(pMz,rvM){if(rvM==null)rvM=this.getServer();return rvM.getDynamicProperty("@Month"+pMz%12);};Kbk.prototype.GNpl=function(Mwf){var lKr="jsxDatePicker"+this.getId();var Jhl=jsx3.gui.Heavyweight.GO(lKr);if(Mwf){if(Jhl!=null)Jhl.destroy();var FnL=this.getRendered();Jhl=new jsx3.gui.Heavyweight(lKr,this);Jhl.addXRule(FnL,"E","W",0);Jhl.addXRule(FnL,"W","E",0);Jhl.addYRule(FnL,"N","N",0);Jhl.addYRule(FnL,"S","S",0);}return Jhl;};Kbk.prototype.doValidate=function(){var Krt=this.getDate()!=null||this.getRequired()==jsx3.gui.Form.OPTIONAL?jsx3.gui.Form.STATEVALID:jsx3.gui.Form.STATEINVALID;this.setValidationState(Krt);return Krt;};});
jsx3.Class.defineClass("jsx3.gui.Slider",jsx3.gui.Block,[jsx3.gui.Form],function(lcj){lcj.HORIZONTAL=0;lcj.VERTICAL=1;lcj.wPhC=100;lcj.fwtm=15;lcj.LChf=7;lcj.GHxm=lcj.fwtm;lcj.wmDG=15;lcj.pxqf=100;lcj.bbpr="JSX/images/slider/top.gif";lcj.tJbs="JSX/images/slider/bottom.gif";lcj.MlLk="JSX/images/slider/left.gif";lcj.tgfc="JSX/images/slider/right.gif";lcj.vgzc="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#aaffffff, EndColorStr=#FF9090af);";lcj.lPzc="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#aaffffff, EndColorStr=#FF9090af);";lcj.nfCb="border:solid 1px #9898a5;border-right-color:#ffffff;border-bottom-color:#ffffff;";lcj.dxCb="border:solid 1px #9898a5;border-right-color:#ffffff;border-top-color:#ffffff;";lcj.prototype.jsxlength=100;lcj.prototype.jsxvalue=0;lcj.prototype.jsxpainttrack=jsx3.Boolean.TRUE;lcj.prototype.jsxtrackclick=jsx3.Boolean.TRUE;lcj.prototype.jsximg=null;lcj.prototype.init=function(vHG,PhK,cNn,sbg){this.jsxsuper(vHG,PhK,cNn);this.jsxlength=sbg;};lcj.prototype.getValue=function(){return this.jsxvalue!=null?this.jsxvalue:0;};lcj.prototype.setValue=function(JCD){this.jsxvalue=JCD==null?null:Math.max(0,Math.min(lcj.pxqf,JCD));this.zKhm();return this;};lcj.prototype.doValidate=function(){return this.setValidationState(jsx3.gui.Form.STATEVALID).getValidationState();};lcj.prototype.getLength=function(){return this.jsxlength!=null?this.jsxlength:lcj.wPhC;};lcj.prototype.setLength=function(MLf,cGz){this.jsxlength=MLf;if(cGz)this.repaint();return this;};lcj.prototype.setWidth=function(DwM,xxz){if(this.getOrientation()==lcj.HORIZONTAL)this.setLength(DwM,xxz);return this;};lcj.prototype.setHeight=function(nsc,lsz){if(this.getOrientation()==lcj.VERTICAL)this.setLength(nsc,lsz);return this;};lcj.prototype.getOrientation=function(){return this.jsxorientation!=null?this.jsxorientation:lcj.HORIZONTAL;};lcj.prototype.setOrientation=function(dgg){this.jsxorientation=dgg;return this;};lcj.prototype.getPaintTrack=function(){return this.jsxpainttrack!=null?this.jsxpainttrack:jsx3.Boolean.TRUE;};lcj.prototype.setPaintTrack=function(hrb){this.jsxpainttrack=intValue;return this;};lcj.prototype.getTrackClickable=function(){return this.jsxtrackclick!=null?this.jsxtrackclick:jsx3.Boolean.TRUE;};lcj.prototype.setTrackClickable=function(kbN){this.jsxtrackclick=intValue;return this;};lcj.prototype.getHandleImage=function(){return this.jsximg;};lcj.prototype.setHandleImage=function(zhd){this.jsximg=zhd;return this;};lcj.prototype.zKhm=function(){var qkM=this.getRendered();if(qkM!=null){var DqB=qkM.children(1);var LDx=qkM.children(0);if(this.getOrientation()==lcj.HORIZONTAL){var Jtc=LDx.offsetWidth-DqB.offsetWidth;DqB.style.pixelLeft=Math.round(this.getValue()*Jtc/lcj.pxqf);DqB.style.pixelTop=Math.round((lcj.fwtm-lcj.GHxm)/2);}else{var DbD=LDx.offsetHeight-DqB.offsetHeight;DqB.style.pixelLeft=Math.round((lcj.fwtm-lcj.GHxm)/2);DqB.style.pixelTop=DbD-Math.round(this.getValue()*DbD/lcj.pxqf);}}};lcj.prototype.paint=function(){this.applyDynamicProperties();var xGK=this.getOrientation()==lcj.HORIZONTAL;var dwf=this.getEnabled()==jsx3.gui.Form.STATEENABLED;var tMg="jsx3.GO('"+this.getId()+"')";var xBM=Math.round((lcj.fwtm-lcj.LChf)/2)+"px ";var kBB="0px ";var fLf="padding:"+(xGK?xBM+kBB+xBM+kBB:kBB+xBM+kBB+xBM)+";";var jct="";jct=jct+("<span id=\""+this.getId()+"\" class=\"jsx30slider\" "+this.BxCtt()+this.dkmsd());jct=jct+(" style=\""+fLf);jct=jct+(this.nggnf()+this.gMtsd()+this.HvNs()+this.pmFc()+this.vrKJJ()+this.wjHzp()+this.NHPtn()+this.rcPjv()+this.chbLq()+this.hqPwJ());jct=jct+("\""+this.renderHandlers()+this.renderAttributes(null,true)+">");var mPF=(xGK?"width:100%;height:":"height:100%;width:")+lcj.LChf+"px;";jct=jct+("<span class=\"track\" style=\""+mPF);jct=jct+(this.rbmq()+this.CPHq()+this.qdrd());if(!this.getPaintTrack())jct=jct+"visibility:hidden;";jct=jct+"\"";if(this.getTrackClickable()&&dwf)jct=jct+this.renderHandler(jsx3.gui.Event.CLICK,"nKpf");jct=jct+">&nbsp;</span>";var CtM=xGK?0:Math.floor((lcj.fwtm-lcj.GHxm)/2);var Lhc=xGK?Math.floor((lcj.fwtm-lcj.GHxm)/2):0;var mlc=xGK?lcj.wmDG:lcj.GHxm;var Jdx=xGK?lcj.GHxm:lcj.wmDG;var xBk=this.getHandleImage();if(xBk==null)xBk=xGK?lcj.bbpr:lcj.MlLk;jct=jct+("<span class=\"handle\" style=\"left:"+CtM+"px;top:"+Lhc+"px;width:"+mlc+"px;height:"+Jdx+"px;"+"\""+(dwf?this.renderHandler(jsx3.gui.Event.MOUSEDOWN,"tqfL"):"")+">");jct=jct+("<img class=\""+(dwf?"handle":"handle_disabled")+"\" src=\""+jsx3.resolveURI(xBk)+"\" width=\""+mlc+"\" height=\""+Jdx+"\"/></span>");jct=jct+"</span>";this.getServer().subscribe(jsx3.app.Server.EVENT_PAINT,this,"zKhm");return jct;};lcj.prototype.tqfL=function(gkk,txC){var DrJ=this.getOrientation()==lcj.HORIZONTAL;var gmC=this;jsx3.gui.Interactive.beginMoveConstrained(gkk,txC,function(wvM,CwM){return gmC.rfdL(wvM,CwM);});jsx3.gui.Event.subscribe(jsx3.gui.Event.MOUSEMOVE,this,"xKxr");jsx3.gui.Event.subscribe(jsx3.gui.Event.MOUSEUP,this,"tmzr");};lcj.prototype.nKpf=function(dLj,kbK){var BfJ=this.getOrientation()==lcj.HORIZONTAL;var NxH=this.xNjd(BfJ?dLj.getOffsetX():dLj.getOffsetY());NxH=this.constrainValue(NxH);if(this.jsxvalue!=NxH){var fsh=this.doEvent(jsx3.gui.Interactive.CHANGE,{objEVENT:dLj,fpPREVIOUS:this.jsxvalue,fpVALUE:NxH});if(fsh!==false)this.setValue(NxH);}};lcj.prototype.rfdL=function(GBn,MCn){var bzJ=this.getRendered();var hcH=this.getOrientation()==lcj.HORIZONTAL;var xvK=0,sJJ=0;if(bzJ!=null){var NDs=bzJ.children(0);var kbv=bzJ.children(1);if(hcH){sJJ=kbv.offsetY;xVal=lcj.pxqf*GBn/(NDs.offsetWidth-kbv.offsetWidth);xVal=this.constrainValue(xVal);xvK=Math.round(xVal*(NDs.offsetWidth-kbv.offsetWidth)/lcj.pxqf);}else{xvK=kbv.offsetX;yVal=lcj.pxqf*MCn/(NDs.offsetHeight-kbv.offsetHeight);yVal=this.constrainValue(yVal);sJJ=Math.round(yVal*(NDs.offsetHeight-kbv.offsetHeight)/lcj.pxqf);}}return [xvK,sJJ];};lcj.prototype.xKxr=function(xHh){var jww=this.constrainValue(this.xNjd());this.doEvent(jsx3.gui.Interactive.INCR_CHANGE,{objEVENT:xHh.event,fpVALUE:jww});};lcj.prototype.tmzr=function(qPh){jsx3.EventHelp.reset();jsx3.gui.Event.unsubscribe(jsx3.gui.Event.MOUSEMOVE,this,"xKxr");jsx3.gui.Event.unsubscribe(jsx3.gui.Event.MOUSEUP,this,"tmzr");var bnw=this.constrainValue(this.xNjd());var CHg=this.doEvent(jsx3.gui.Interactive.CHANGE,{objEVENT:qPh.event,fpPREVIOUS:this.jsxvalue,fpVALUE:bnw});if(CHg===false)this.setValue(this.jsxvalue);else this.jsxvalue=bnw;};lcj.prototype.xNjd=function(JNH){var hlH=this.getRendered();if(hlH!=null){var nBF=this.getOrientation()==lcj.HORIZONTAL;var CFs=hlH.children(0);var Mbv=hlH.children(1);return nBF?lcj.pxqf*(JNH!=null?JNH:Mbv.offsetLeft)/(CFs.offsetWidth-Mbv.offsetWidth):lcj.pxqf*(1-(JNH!=null?JNH:Mbv.offsetTop)/(CFs.offsetHeight-Mbv.offsetHeight));}else{return 0;}};lcj.prototype.constrainValue=function(klv){return Math.max(0,Math.min(lcj.pxqf,klv));};lcj.prototype.HvNs=function(){if(this.getOrientation()==lcj.HORIZONTAL){return isNaN(this.getLength())?"width:"+this.getLength()+";":"width:"+this.getLength()+"px;";}else{return "width:"+lcj.fwtm+"px;";}};lcj.prototype.pmFc=function(){if(this.getOrientation()==lcj.HORIZONTAL){return "height:"+lcj.fwtm+"px;";}else{return isNaN(this.getLength())?"height:"+this.getLength()+";":"height:"+this.getLength()+"px;";}};lcj.prototype.rbmq=function(){if(this.getEnabled()==jsx3.gui.Form.STATEENABLED)return this.getBackgroundColor()?"background-color:"+this.getBackgroundColor()+";":"";else return this.getDisabledBackgroundColor()?"background-color:"+this.getDisabledBackgroundColor()+";":"";};lcj.prototype.CPHq=function(){var Flk=this.getBackground()||"";return Flk||this.rbmq()?Flk+";":this.getOrientation()==lcj.HORIZONTAL?lcj.vgzc:lcj.lPzc;};lcj.prototype.qdrd=function(){return this.getBorder()?this.getBorder()+";":this.getOrientation()==lcj.HORIZONTAL?lcj.nfCb:lcj.dxCb;};lcj.getVersion=function(){return "3.0.00";};});
jsx3.Class.defineClass("jsx3.gui.Heavyweight",null,null,function(fgP){var KJm=jsx3.util.Logger.getLogger(fgP.jsxclass.getName());fgP.instances=new Object();fgP.ID=1;fgP.DEFAULTZINDEX=32000;fgP.prototype.init=function(hzF,Bgs){this._setId(hzF?hzF:fgP.getKey());this._owner=Bgs;fgP.instances[hzF]=this;};fgP.getKey=function(){return "jsx_heavyweight_"+fgP.ID++;};fgP.prototype.getBody=function(){if(this._owner){var pMs=this._owner.getDocument();if(pMs)return pMs.getElementsByTagName("BODY")[0];else KJm.warn("document of owner of "+this.getId()+" is null");}else{KJm.warn("owner of "+this.getId()+" is null");}return null;};fgP.GO=function(HPD){return fgP.instances[HPD];};fgP.prototype.show=function(twf){var prD=this.getId();var Kcp=this.getHTML();if(Kcp==null||Kcp=="")return;var vln=this.getWidth();strWidth=vln==null?"width:100px;":"width:"+vln+"px;";intHeight=this.getHeight();strHeight=intHeight==null?"":"height:"+intHeight+"px;";strHTML="<span id=\""+prD+"\" class=\"jsx30block\" style=\"position:absolute;overflow:;"+strWidth+strHeight+"left:0px;top:0px;z-index:"+this.getZIndex()+";visibility:hidden;\">"+Kcp+"</span>";var wGN=this.getDomParent();wGN.insertAdjacentHTML("BeforeEnd",strHTML);this.applyRatio();this.applyRules("Y");this.applyRules("X");if(twf!=false)this.setVisibility(jsx3.gui.Block.VISIBILITYVISIBLE);if(this._owner)this._owner.subscribe(jsx3.gui.Interactive.DESTROY,this,"NbCf");};fgP.prototype.applyRatio=function(bcz){if(objGUI=this.getRendered()){if(bcz){var KmK=objGUI.offsetHeight;var Fdn=objGUI.offsetWidth;}else{var KmK=objGUI.children(0).offsetHeight;var Fdn=objGUI.children(0).offsetWidth;}if(vntRatio=this.getRatio()){Fdn=parseInt(vntRatio*(Fdn+KmK));objGUI.style.pixelWidth=Fdn;objGUI.children(0).style.pixelWidth=Fdn;if(bcz!=true){KmK=objGUI.children(0).offsetHeight;objGUI.style.pixelHeight=KmK;}else{objGUI.children(0).style.pixelHeight=KmK;}}else{if(bcz!=true){objGUI.style.pixelWidth=Fdn;objGUI.style.pixelHeight=KmK;}}}};fgP.prototype.applyRules=function(bLv){var trN=this.getRendered();var ttN=this.getDomParent();if(bLv=="X"){var hkm="clientWidth";var KMd="pixelLeft";var Hcm="pixelWidth";var Mdx=trN.children(0).offsetWidth;var Gzg=this.getWidth();}else{var hkm="clientHeight";var KMd="pixelTop";var Hcm="pixelHeight";var Mdx=trN.children(0).offsetHeight;var Gzg=this.getHeight();}var vMG=this.getPositionRules()[bLv].length;var gdz=ttN[hkm];var PCp=0;for(var sjH=0;sjH<vMG;sjH++){var DbD=this.getPositionRule(sjH,bLv);var cmK=this.getPoint(trN,DbD.POINT);if(DbD.PIXEL==null){PCp=gdz-Mdx;}else{PCp=DbD.PIXEL+DbD.OFFSET-cmK[bLv];}if(PCp<0||PCp+Mdx>gdz){DbD.VIEWSIZE=PCp<0?Mdx+PCp:gdz-PCp;DbD.VIEWORIGIN=PCp;}else{trN.style[KMd]=PCp;return;}}var tBL=-1;var sdz=-1;for(var sjH=0;sjH<vMG;sjH++){var DbD=this.getPositionRule(sjH,bLv);if(tBL<DbD.VIEWSIZE){tBL=DbD.VIEWSIZE;sdz=sjH;}}var DbD=this.getPositionRule(Math.max(0,sdz),bLv);if(DbD!=null){trN.style[KMd]=DbD.VIEWORIGIN;if(Gzg==null){trN.children(0).style[Hcm]=DbD.VIEWSIZE-10;if(this.getOverflow()==jsx3.gui.Block.OVERFLOWSCROLL)trN.children(0).style.overflow="auto";trN.style[Hcm]=DbD.VIEWSIZE-10;if(DbD.VIEWORIGIN<0)trN.style[KMd]=10;}}};fgP.prototype.hide=function(){var HwL=null;if((HwL=this.getRendered())!=null)HwL.outerHTML="";if(this._owner)this._owner.unsubscribe(jsx3.gui.Interactive.DESTROY,this);};fgP.prototype.NbCf=function(Fjl){KJm.trace("onOwnerDestroyed "+Fjl.target.getName());var Jpn=Fjl.context.objPARENT;var zPK=Jpn.getDocument().getElementById(this.getId());if(zPK!=null)zPK.outerHTML="";this._owner.unsubscribe(jsx3.gui.Interactive.DESTROY,this);this._owner=null;delete fgP.instances[this.getId()];};fgP.prototype.destroy=function(){this.hide();this._owner=null;delete fgP.instances[this.getId()];};fgP.prototype.getRendered=function(){if(this._owner){var jJm=this._owner.getDocument();if(jJm)return jJm.getElementById(this.getId());else KJm.warn("document of owner of "+this.getId()+" is null");}else{KJm.warn("owner of "+this.getId()+" is null");}return null;};fgP.prototype.getId=function(){return this.id;};fgP.prototype._setId=function(tmx){this.id=tmx;};fgP.prototype.getHTML=function(){return this.html;};fgP.prototype.setHTML=function(Pdw,zJt){this.html=Pdw;if(zJt){var NjC=this.getRendered();if(NjC!=null)NjC.innerHTML=Pdw;}return this;};fgP.prototype.getDomParent=function(){return this._parent==null?this.getBody():this._parent;};fgP.prototype.setDomParent=function(PbJ){this._parent=PbJ;return this;};fgP.prototype.getRatio=function(){return this.ratio;};fgP.prototype.setRatio=function(kHB){this.ratio=kHB;return this;};fgP.prototype.getOverflow=function(){return this.overflow==null?jsx3.gui.Block.OVERFLOWSCROLL:this.overflow;};fgP.prototype.setOverflow=function(fdg){this.overflow=fdg;return this;};fgP.prototype.setVisibility=function(NgP){if(objGUI=this.getRendered())objGUI.style.visibility=NgP;return this;};fgP.prototype.getZIndex=function(){return this.zindex!=null?this.zindex:fgP.DEFAULTZINDEX;};fgP.prototype.setZIndex=function(Kdq){this.zindex=Kdq;return this;};fgP.prototype.getWidth=function(){return this.width==null?null:this.width;};fgP.prototype.setWidth=function(Dsf){this.width=Dsf;return this;};fgP.prototype.getHeight=function(){return this.height==null?null:this.height;};fgP.prototype.setHeight=function(tvz){this.height=tvz;return this;};fgP.prototype.addXRule=function(rxw,KPw,Ckr,wGm){var Mgk=rxw instanceof jsx3.gui.Event?rxw.clientX():this.getPoint(rxw,KPw).X;this.addRule(Mgk,Ckr,wGm,"X");return this;};fgP.prototype.addYRule=function(thw,Mjw,FHq,Pqm){var hGj=thw instanceof jsx3.gui.Event?thw.clientY():this.getPoint(thw,Mjw).Y;this.addRule(hGj,FHq,Pqm,"Y");return this;};fgP.prototype.addRule=function(NFB,wsq,qbl,wGl){var qdc=this.getPositionRules();var BwP=qdc[wGl];BwP[BwP.length]={PIXEL:NFB,OFFSET:qbl,POINT:wsq};return this;};fgP.prototype.getPositionRule=function(zzP,nrl){return this.getPositionRules()[nrl][zzP];};fgP.prototype.getPositionRules=function(){if(typeof(this.positionrules)!="object"){this.positionrules=new Object();this.positionrules.X=new Array();this.positionrules.Y=new Array();}return this.positionrules;};fgP.prototype.getPoint=function(fpC,Nxz){if(typeof(fpC)=="number")return {X:fpC,Y:fpC};var CdC=null;if(fpC instanceof jsx3.gui.Block)CdC=fpC.getAbsolutePosition(this.getDomParent());else CdC=jsx3.BrowserDOM.getRelativePosition(this.getDomParent(),fpC);switch(Nxz){case "N":return {X:CdC.L+CdC.W/2,Y:CdC.T};case "S":return {X:CdC.L+CdC.W/2,Y:CdC.T+CdC.H};case "E":return {X:CdC.L+CdC.W,Y:CdC.T+CdC.H/2};case "W":return {X:CdC.L,Y:CdC.T+CdC.H/2};case "NE":return {X:CdC.L+CdC.W,Y:CdC.T};case "SE":return {X:CdC.L+CdC.W,Y:CdC.T+CdC.H};case "SW":return {X:CdC.L,Y:CdC.T+CdC.H};case "NW":return {X:CdC.L,Y:CdC.T};case "O":return {X:CdC.L+CdC.W/2,Y:CdC.T+CdC.H/2};}};fgP.prototype.toString=function(){return "jsx3.gui.Heavyweight "+this.getId();};fgP.getVersion=function(){return "3.00.00";};});
jsx3.Class.defineClass("jsx3.lang.System",null,null,function(znl){jsx3.lang.System.doExecute=function(_jsxDNb,jsxbless_objContext){var _jsxLHC=0;var _jsxMLN=0;var _jsxxqv=_jsxDNb.indexOf("\r\n");var _jsxJzB=null;var _jsxsvp=0;_jsxxqv=_jsxxqv==-1?_jsxDNb.length:_jsxxqv+2;var _jsxFsf;if(jsxbless_objContext){for(var Gnb in jsxbless_objContext){eval("var "+Gnb+" = jsxbless_objContext['"+Gnb+"'];");}}while(_jsxxqv!=-1&&_jsxMLN<_jsxDNb.length){var _jsxLjc=_jsxDNb.substring(_jsxMLN,_jsxxqv);try{_jsxFsf=eval(_jsxLjc);_jsxMLN=_jsxxqv;}catch(e){var zfd=jsx3.NativeError.wrap(e);if(zfd instanceof jsx3.NativeError&&zfd.isStructural()){if(_jsxJzB==_jsxxqv){throw zfd;}}else{throw zfd;}}_jsxJzB=_jsxxqv;_jsxxqv=_jsxDNb.indexOf("\r\n",_jsxxqv);_jsxxqv=_jsxxqv==-1?_jsxDNb.length:_jsxxqv+2;_jsxsvp++;}return _jsxFsf;};jsx3.lang.System.GO=function(lGx,fzK){var rHk=null;if(lGx!=null){if(lGx.indexOf("_jsx")==0){var dhn=lGx.split("_")[2];if(fzK&&fzK!=dhn)return null;if(jsx3.pChgk[dhn])rHk=jsx3.pChgk[dhn].getJSXById(lGx);if(rHk==null){var sjt=jsx3.app.Server.allServers();for(var kbb=0;rHk==null&&kbb<sjt.length;kbb++){var Pjh=sjt[kbb];if(Pjh.getEnv("namespace")==dhn){rHk=Pjh.getJSXById(lGx);}}}}else{if(fzK){rHk=jsx3.pChgk[fzK].getJSXByName(lGx);}else{for(var kbb in jsx3.pChgk){if((rHk=this.pChgk[kbb].getJSXByName(lGx))!=null)return rHk;}var sjt=jsx3.app.Server.allServers();for(var kbb=0;rHk==null&&kbb<sjt.length;kbb++){if((rHk=sjt[kbb].getJSXByName(lGx))!=null)return rHk;}}}}return rHk;};znl.getApp=function(MmF){return jsx3.pChgk[MmF];};znl.registerApp=function(jFj){var LqK=jFj.getEnv("namespace");if(jFj.getEnv("system"))jsx3[LqK]=jFj;else window[LqK]=jFj;jsx3.pChgk[LqK]=jFj;};znl.deregisterApp=function(Npj){var CbK=Npj.getEnv("namespace");if(jsx3[CbK]==Npj)delete jsx3[CbK];if(window[CbK]==Npj)window[CbK]=null;if(jsx3.pChgk[CbK]==Npj)delete jsx3.pChgk[CbK];};znl.activateApp=function(zdj){jsx3.registerApp(zdj);};znl.getAddins=function(xrl){if(xrl==null)xrl=new jsx3.app.Settings(jsx3.app.Settings.DOMAIN_SYSTEM);return xrl.get("addins");};znl.getVersion=function(){return "3.1.1";};});
jsx3.Alerts=jsx3.gui.Alerts;jsx3.Event=jsx3.gui.Interactive;jsx3.Form=jsx3.gui.Form;jsx3.Block=jsx3.gui.Block;jsx3.BlockX=jsx3.gui.BlockX;jsx3.ToolbarButton=jsx3.gui.ToolbarButton;jsx3.WindowBar=jsx3.gui.WindowBar;jsx3.Dialog=jsx3.gui.Dialog;jsx3.Button=jsx3.gui.Button;jsx3.TextBox=jsx3.gui.TextBox;jsx3.CheckBox=jsx3.gui.CheckBox;jsx3.RadioButton=jsx3.gui.RadioButton;jsx3.Splitter=jsx3.gui.Splitter;jsx3.LayoutGrid=jsx3.gui.LayoutGrid;jsx3.Stack=jsx3.gui.Stack;jsx3.StackGroup=jsx3.gui.StackGroup;jsx3.Tab=jsx3.gui.Tab;jsx3.TabbedPane=jsx3.gui.TabbedPane;jsx3.Select=jsx3.gui.Select;jsx3.Menu=jsx3.gui.Menu;jsx3.Tree=jsx3.gui.Tree;jsx3.List=jsx3.gui.List;jsx3.Grid=jsx3.gui.Grid;jsx3.Column=jsx3.gui.Column;jsx3.DatePicker=jsx3.gui.DatePicker;jsx3.Slider=jsx3.gui.Slider;jsx3.Heavyweight=jsx3.gui.Heavyweight;jsx3.Entity=jsx3.xml.Entity;jsx3.Document=jsx3.xml.Document;jsx3.CDF=jsx3.xml.CDF;jsx3.Settings=jsx3.app.Settings;jsx3.UserSettings=jsx3.app.UserSettings;jsx3.Cache=jsx3.app.Cache;jsx3.DOM=jsx3.app.DOM;jsx3.Server=jsx3.app.Server;jsx3.Model=jsx3.app.Model;jsx3.EventDispatcher=jsx3.util.EventDispatcher;jsx3.Collection=jsx3.util.Collection;jsx3.ERROR=jsx3.util.Logger;jsx3.HttpRequest=jsx3.net.Request;jsx3.HttpForm=jsx3.net.Form;doInherit=jsx3.doInherit;doImplement=jsx3.doImplement;doMixin=jsx3.doMixin;doDefine=jsx3.doDefine;inheritance=jsx3.Object;jsx3.doExecute=jsx3.lang.System.doExecute;jsx3.GO=jsx3.lang.System.GO;jsx3.getApp=jsx3.lang.System.getApp;jsx3.registerApp=jsx3.lang.System.registerApp;jsx3.activateApp=jsx3.lang.System.activateApp;jsx3.deregisterApp=jsx3.lang.System.deregisterApp;jsx3.getAddins=jsx3.lang.System.getAddins;jsx3.getVersion=jsx3.lang.System.getVersion;
jsx3.Class.defineClass("jsx3.gui.Sound",jsx3.gui.Painted,[jsx3.gui.Interactive],function(JmD){JmD.wLqj=new Object();JmD.wLqj.gmmg=function(DPf){return typeof(DPf.GetQuickTimeVersion)!="undefined";};JmD.wLqj.bgCn=function(bPf){bPf.Play();};JmD.wLqj.Lnxt=function(mxf){mxf.Stop();};JmD.wLqj.Bvxz=function(xwf){xwf.Stop();xwf.Rewind();};JmD.wLqj.rDvB=function(Jvf){return Jvf.GetDuration()/Jvf.GetTimeScale();};JmD.wLqj.htmn=function(gvf){return gvf.GetTime()/gvf.GetTimeScale();};JmD.wLqj.nfnB=function(rtf,Mpf){rtf.SetTime(Mpf*rtf.GetTimeScale());};JmD.wLqj.lbpc=function(Csf,hxf){Csf.SetVolume(this.HFdb(hxf));};JmD.wLqj.HFdb=function(swf){return Math.round(swf*255/100);};JmD.wLqj.toString=function(){return "Apple QuickTime";};JmD.wLqj.Ddpx=function(wqf){return this+" "+wqf.GetQuickTimeVersion();};JmD.kcxP=new Object();JmD.kcxP.gmmg=function(Gjf){return typeof(Gjf.GetVersionInfo)!="undefined";};JmD.kcxP.bgCn=function(djf){if(djf.CanPlay()){djf.DoPlay();if(djf.jsxlength==null){djf.jsxlength=djf.GetLength();djf.SetPreFetch(false);}}};JmD.kcxP.Lnxt=function(PNd){if(PNd.CanPause())PNd.DoPause();};JmD.kcxP.Bvxz=function(KMd){if(KMd.CanStop())KMd.DoStop();};JmD.kcxP.rDvB=function(hMd){if(hMd.GetPlayState()!=0||hMd.GetPreFetch()){return hMd.GetLength()/1000;}else{return hMd.jsxlength!=null?hMd.jsxlength/1000:Number.NaN;}};JmD.kcxP.htmn=function(gGd){return gGd.GetPosition()/1000;};JmD.kcxP.nfnB=function(rFd,Mzd){if(rFd.GetPlayState()!=0){rFd.SetPosition(Mzd*1000);}else{rFd.DoPlay();rFd.SetPosition(Mzd*1000);rFd.DoPause();}};JmD.kcxP.Flkq=function(Mwd){return Mwd.GetPlayState()==3;};JmD.kcxP.lbpc=function(kwd,Czd){kwd.SetVolume(this.HFdb(Czd));};JmD.kcxP.HFdb=function(NPd){return Math.round(NPd);};JmD.kcxP.toString=function(){return "RealPlayer";};JmD.kcxP.Ddpx=function(dtd){return this+" "+dtd.GetVersionInfo();};JmD.wlqK=new Object();JmD.wlqK.gmmg=function(nmd){return typeof(nmd.GetMediaInfoString)!="undefined";};JmD.wlqK.bgCn=function(Pld){Pld.Play();};JmD.wlqK.Lnxt=function(Kkd){Kkd.Pause();};JmD.wlqK.Bvxz=function(hkd){hkd.Stop();};JmD.wlqK.rDvB=function(sjd){return sjd.Duration;};JmD.wlqK.htmn=function(Dhd){return Dhd.CurrentPosition;};JmD.wlqK.nfnB=function(bhd,wcd){bhd.CurrentPosition=wcd;};JmD.wlqK.Flkq=function(mgd){return mgd.PlayState==2;};JmD.wlqK.lbpc=function(xfd,ckd){xfd.Volume=this.HFdb(ckd);};JmD.wlqK.HFdb=function(njd){return Math.max(-10000,Math.round(2500*Math.log(njd*100)/Math.LN10-10000));};JmD.wlqK.toString=function(){return "Windows Media Player";};JmD.wlqK.Ddpx=function(Cbd){if(this.VERSION==null){try{this.ACTIVEX=new ActiveXObject("WMPlayer.OCX.7");this.VERSION=this.ACTIVEX.versionInfo;}catch(e){this.VERSION="Unknown Version";}}return this+" "+this.VERSION;};JmD.fpjP=new Object();JmD.fpjP.gmmg=function(FPc){return true;};JmD.fpjP.bgCn=function(cPc){if(typeof(cPc.Play)!="undefined")cPc.Play();};JmD.fpjP.Lnxt=function(nxc){if(typeof(nxc.Pause)!="undefined")nxc.Pause();};JmD.fpjP.Bvxz=function(Pwc){if(typeof(Pwc.Stop)!="undefined")Pwc.Stop();};JmD.fpjP.rDvB=function(Kvc){return Number.NaN;};JmD.fpjP.htmn=function(hvc){return Number.NaN;};JmD.fpjP.nfnB=function(stc,Npc){};JmD.fpjP.Flkq=function(Dsc){return false;};JmD.fpjP.lbpc=function(bsc,twc){if(typeof(bsc.SetVolume)!="undefined")bsc.SetVolume(this.HFdb(twc));};JmD.fpjP.HFdb=function(cvc){return Math.round(cvc);};JmD.fpjP.toString=function(){return "Generic";};JmD.fpjP.Ddpx=function(gpc){return this.toString();};JmD.bvLz=[JmD.wLqj,JmD.kcxP,JmD.wlqK,JmD.fpjP];JmD.prototype.jsxurl=null;JmD.prototype.jsxvolume=50;JmD.prototype._jsxNmBb=null;JmD.prototype.init=function(JMD,hrM){this.jsxsuper(JMD);this.jsxurl=hrM;};JmD.prototype.getURL=function(){return this.jsxurl;};JmD.prototype.setURL=function(kbM){this.jsxurl=kbM;return this;};JmD.prototype.getVolume=function(){return this.jsxvolume;};JmD.prototype.nqJg=function(){var wxB=this.jsxvolume!=null?this.jsxvolume:this.prototype.jsxvolume;return this.fkzM().HFdb(wxB);};JmD.prototype.setVolume=function(CJC){this.jsxvolume=CJC==null?null:Math.max(0,Math.min(100,CJC));var lJb=this.getRendered();if(lJb!=null){var dBz=this.jsxvolume!=null?this.jsxvolume:this.prototype.jsxvolume;this.fkzM().lbpc(lJb,dBz);}return this;};JmD.prototype.play=function(){var tvb=this.getRendered();if(tvb!=null)this.fkzM().bgCn(tvb);};JmD.prototype.pause=function(){var mmb=this.getRendered();if(mmb!=null)this.fkzM().Lnxt(mmb);};JmD.prototype.rewind=function(){var Hdb=this.getRendered();if(Hdb!=null)this.fkzM().Bvxz(Hdb);};JmD.prototype.getLength=function(){var zJN=this.getRendered();return zJN!=null?this.fkzM().rDvB(zJN):Number.NaN;};JmD.prototype.getPosition=function(){var hBN=this.getRendered();return hBN!=null?this.fkzM().htmn(hBN):Number.NaN;};JmD.prototype.setPosition=function(gbf){var CsN=this.getRendered();if(CsN!=null)this.fkzM().nfnB(CsN,gbf);};JmD.prototype.getPluginVersion=function(){var vkN=this.getRendered();if(vkN!=null)return this.fkzM().Ddpx(vkN);else return this.fkzM().toString();};JmD.prototype.fkzM=function(){if(this._jsxNmBb!=null)return this._jsxNmBb;var hMM=this.getRendered();if(hMM!=null){for(var nKL=0;nKL<JmD.bvLz.length;nKL++){var PNL=JmD.bvLz[nKL];if(PNL.gmmg(hMM)){this._jsxNmBb=PNL;break;}}return this._jsxNmBb;}else{return JmD.fpjP;}};JmD.prototype.paint=function(){this.applyDynamicProperties();var dsz=this.nqJg();return "<embed id=\""+this.getId()+"\" name=\""+this.getName()+"\" class=\"jsx30sound\" src=\""+jsx3.resolveURI(this.getURL())+"\" enablejavascript=\"true\" autostart=\"false\" "+this.renderAttributes()+" volume=\""+dsz+"\" prefetch=\"true\"/>";};JmD.prototype.getPropertiesPath=function(){return "GI_Builder/components/properties/templates/Sound.xml";};JmD.prototype.getModelEventsPath=function(){return "GI_Builder/components/modelevents/templates/Sound.xml";};});
jsx3.Class.defineClass("jsx3.gui.Window",jsx3.app.Model,null,function(hmH){var mFm=jsx3.util.Logger.getLogger(hmH.jsxclass.getName());var gjp=new jsx3.net.URI(jsx3.resolveURI("jsx3.gui.window.html"));hmH.DID_OPEN="didOpen";hmH.WILL_CLOSE="willClose";hmH.DID_FOCUS="didFocus";hmH.DID_RESIZE="didResize";hmH.PARENT_DID_CLOSE="parentDidClose";hmH.prototype.jsxwidth=400;hmH.prototype.jsxheight=300;hmH.prototype.jsxresizable=jsx3.Boolean.FALSE;hmH.prototype.jsxscrollable=jsx3.Boolean.FALSE;hmH.prototype.jsxdependent=jsx3.Boolean.TRUE;hmH.prototype.jsxtitle="";hmH.prototype._jsxwindow=null;hmH.prototype._jsxNhvx=null;hmH.prototype.init=function(kgG){this.jsxsuper(kgG);};hmH.prototype.open=function(){if(this._jsxwindow!=null&&!this._jsxwindow.closed){throw new jsx3.Exception("Window "+this+" already open.");}else{var wHc=window.open(gjp,this.getId(),"directories=no,location=no,menubar=no,status=yes,personalbar=no,titlebar=yes,toolbar=no,width="+this.getWidth()+","+"height="+this.getHeight()+","+"dependent="+(this.isDependent()?"yes":"no")+","+"resizable="+(this.isResizable()?"yes":"no")+","+"scrollbars="+(this.isScrollable()?"yes":"no"));if(wHc!=null){wHc["_jsxwindow"]=this;this._jsxwindow=wHc;this._jsxNhvx=window;return true;}else{return false;}}};hmH.prototype.close=function(){if(this._jsxwindow!=null&&!this._jsxwindow.closed){this._jsxwindow.close();return true;}else{throw new jsx3.Exception("Window "+this+" not open.");}};hmH.prototype.focus=function(){if(this._jsxwindow!=null&&!this._jsxwindow.closed){this._jsxwindow.focus();}else{throw new jsx3.Exception("Window "+this+" not open.");}};hmH.prototype.isOpen=function(){return this._jsxwindow!=null&&!this._jsxwindow.closed;};hmH.prototype.isParentOpen=function(){return this._jsxNhvx!=null&&!this._jsxNhvx.closed;};hmH.prototype.moveTo=function(rBv,Nbq){if(this._jsxwindow!=null&&!this._jsxwindow.closed){if(this._jsxNhvx!=null&&!this._jsxNhvx.closed)this._jsxwindow.moveBy(rBv-this._jsxwindow.screenLeft+this._jsxNhvx.screenLeft,Nbq-this._jsxwindow.screenTop+this._jsxNhvx.screenTop);else this._jsxwindow.moveBy(rBv-this._jsxwindow.screenLeft,Nbq-this._jsxwindow.screenTop);}else{throw new jsx3.Exception("Window "+this+" not open.");}};hmH.prototype.constrainToScreen=function(){if(this._jsxwindow!=null&&!this._jsxwindow.closed){var HBb=this._jsxwindow;if(HBb.screenLeft<0||HBb.screenLeft>screen.width||HBb.screenTop<0||HBb.screenTop>screen.height)HBb.moveTo(0,0);}};hmH.prototype.getOffsetLeft=function(){if(this._jsxwindow!=null&&!this._jsxwindow.closed){if(this._jsxNhvx!=null&&!this._jsxNhvx.closed)return this._jsxwindow.screenLeft-this._jsxNhvx.screenLeft;else return this._jsxwindow.screenLeft;}else{throw new jsx3.Exception("Window "+this+" not open.");}};hmH.prototype.getOffsetTop=function(){if(this._jsxwindow!=null&&!this._jsxwindow.closed){if(this._jsxNhvx!=null&&!this._jsxNhvx.closed)return this._jsxwindow.screenTop-this._jsxNhvx.screenTop;else return this._jsxwindow.screenTop;}else{throw new jsx3.Exception("Window "+this+" not open.");}};hmH.prototype.onLoad=function(czN){mFm.debug("onLoad");var jxn=czN.document;var xCm=czN.opener;var jbs=jxn.getElementsByTagName("body")[0];jbs.innerHTML=this.getRootBlock().paint();var sfN=this.getServer().getRootDocument();var kNG=new jsx3.util.Collection(sfN.getElementsByTagName("link"));var fPx=null;while((fPx=kNG.next())!=null){if(fPx.rel=="stylesheet"){var trs=fPx.href;mFm.trace("appending stylesheet "+trs+" to window "+this.getName());var JcB=jxn.createElement("link");JcB.id=fPx.id;JcB.href=trs;JcB.rel=fPx.rel;JcB.type=fPx.type;jbs.appendChild(JcB);}}czN["jsx3"]=xCm.jsx3;this._jsxwindow=czN;this._jsxNhvx=xCm;this.publish({subject:hmH.DID_OPEN});};hmH.prototype.onFocus=function(){mFm.debug("onFocus");this.publish({subject:hmH.DID_FOCUS});};hmH.prototype.onBeforeUnload=function(){mFm.debug("onBeforeUnload");if(this._jsxwindow!=null){for(var tcM in this._jsxwindow){try{this._jsxwindow[tcM]=null;}catch(e){}}}if(this._jsxNhvx!=null&&!this._jsxNhvx.closed)this._jsxNhvx.focus();this._jsxwindow=null;this._jsxNhvx=null;this.publish({subject:hmH.WILL_CLOSE});};hmH.prototype.onResize=function(){mFm.trace("onResize");this.jsxwidth=this._jsxwindow.document.body.clientWidth;this.jsxheight=this._jsxwindow.document.body.clientHeight;this.publish({subject:hmH.DID_RESIZE});};hmH.prototype.onParentUnload=function(){mFm.debug("onParentUnload");this.publish({subject:hmH.DID_PARENT_CLOSE});};hmH.prototype.getRootBlock=function(){var rDb=this.getChild(0);if(rDb==null){rDb=new jsx3.gui.Block(this.getName()+"_JSXROOT",0,0,"100%","100%","");rDb.setDynamicProperty("jsxbgcolor","@Solid Light");rDb.setRelativePosition(jsx3.gui.Block.ABSOLUTE);rDb.setZIndex(-1);rDb.setOverflow(jsx3.gui.Block.OVERFLOWEXPAND);rDb.setIndex(0);this.setChild(rDb);}return rDb;};hmH.prototype.getWindow=function(){if(this._jsxwindow!=null&&!this._jsxwindow.closed)return this._jsxwindow;return null;};hmH.prototype.getParentWindow=function(){if(this._jsxNhvx!=null&&!this._jsxNhvx.closed)return this._jsxNhvx;return null;};hmH.prototype.getDocument=function(){if(this._jsxwindow!=null&&!this._jsxwindow.closed)return this._jsxwindow.document;return null;};hmH.prototype.paint=function(){return this.getRootBlock().paint();};hmH.prototype.repaint=function(){return this.getRootBlock().repaint();};hmH.prototype.getWidth=function(){return this.jsxwidth;};hmH.prototype.setWidth=function(xHg){if(this._jsxwindow!=null&&!this._jsxwindow.closed){this._jsxwindow.resizeBy(xHg-this.jsxwidth,0);}this.jsxwidth=xHg;};hmH.prototype.getHeight=function(){return this.jsxheight;};hmH.prototype.setHeight=function(nKB){if(this._jsxwindow!=null&&!this._jsxwindow.closed){this._jsxwindow.resizeBy(0,nKB-this.jsxheight);}this.jsxheight=nKB;};hmH.prototype.isResizable=function(){return this.jsxresizable;};hmH.prototype.setResizable=function(jfN){this.jsxresizable=jsx3.Boolean.valueOf(jfN);};hmH.prototype.isScrollable=function(){return this.jsxscrollable;};hmH.prototype.setScrollable=function(wDw){this.jsxscrollable=jsx3.Boolean.valueOf(wDw);};hmH.prototype.isDependent=function(){return this.jsxdependent;};hmH.prototype.setDependent=function(blP){this.jsxdependent=jsx3.Boolean.valueOf(blP);};hmH.prototype.getTitle=function(){return this.jsxtitle;};hmH.prototype.setTitle=function(pxN){this.jsxtitle=pxN;if(this._jsxwindow!=null&&!this._jsxwindow.closed)this._jsxwindow.document.title=pxN;};hmH.prototype.toString=function(snN){return this.jsxsuper()+" "+this.getName();};});
jsx3.Class.defineClass("jsx3.gui.ImageButton",jsx3.gui.Block,[jsx3.gui.Form],function(Bpg){var CtD=jsx3.gui.Event;var Bpm=jsx3.gui.Interactive;var Cqj=jsx3.gui.Form;Bpg.TYPE_NORMAL=0;Bpg.TYPE_TOGGLE=1;Bpg.STATE_OFF=0;Bpg.STATE_ON=1;Bpg.prototype.jsximage=null;Bpg.prototype.jsxoverimage=null;Bpg.prototype.jsxdownimage=null;Bpg.prototype.jsxonimage=null;Bpg.prototype.jsxdisabledimage=null;Bpg.prototype.jsxprefetch=jsx3.Boolean.TRUE;Bpg.prototype.jsxtype=Bpg.TYPE_NORMAL;Bpg.prototype.jsxstate=Bpg.STATE_OFF;Bpg.prototype._jsxmPDj=null;Bpg.prototype._jsxDCpF=false;Bpg.prototype.init=function(bsG,fHJ,wPn,jtN,fvd){this.jsxsuper(bsG,fHJ,wPn,jtN,fvd);};Bpg.prototype.getImage=function(){return this.jsximage;};Bpg.prototype.setImage=function(Cgm){this.jsximage=Cgm;return this;};Bpg.prototype.getOverImage=function(){return this.jsxoverimage;};Bpg.prototype.setOverImage=function(zHl){this.jsxoverimage=zHl;return this;};Bpg.prototype.getDownImage=function(){return this.jsxdownimage;};Bpg.prototype.setDownImage=function(xvl){this.jsxdownimage=xvl;return this;};Bpg.prototype.getOnImage=function(){return this.jsxonimage;};Bpg.prototype.setOnImage=function(vjl){this.jsxonimage=vjl;return this;};Bpg.prototype.getDisabledImage=function(){return this.jsxdisabledimage;};Bpg.prototype.setDisabledImage=function(sKk){this.jsxdisabledimage=sKk;return this;};Bpg.prototype.getState=function(){return this.jsxstate;};Bpg.prototype.setState=function(rPK){this.jsxstate=rPK;var xMD=this.getRendered();if(xMD!=null)xMD.src=this.Bzlt(false,false);return this;};Bpg.prototype.getType=function(){return this.jsxtype;};Bpg.prototype.setType=function(rDm){this.jsxtype=rDm;return this;};Bpg.prototype.isPreFetch=function(){return this.jsxprefetch;};Bpg.prototype.setPreFetch=function(CtK){this.jsxprefetch=jsx3.Boolean.valueOf(CtK);return this;};Bpg.prototype.setEnabled=function(nnP,LCx){if(this._jsxmPDj!=null)this._jsxmPDj.setEnabled(nnP==Cqj.STATEENABLED);return this.jsxsupermix(nnP,LCx);};Bpg.HJjl={};Bpg.HJjl[CtD.CLICK]=true;Bpg.HJjl[CtD.MOUSEOVER]=true;Bpg.HJjl[CtD.MOUSEOUT]=true;Bpg.HJjl[CtD.MOUSEDOWN]=true;Bpg.HJjl[CtD.MOUSEUP]=true;Bpg.HJjl[CtD.KEYDOWN]=true;Bpg.prototype.paint=function(){this.applyDynamicProperties();var BLw=this.getKeyBinding();if(BLw!=null){var nMD=this;if(this._jsxmPDj!=null)this._jsxmPDj.destroy();this._jsxmPDj=this.doKeyBinding(function(hqN){nMD.doClick(hqN,nMD.getRendered());},BLw);this._jsxmPDj.setEnabled(this.getEnabled()!=Cqj.STATEDISABLED);}var Bfx="<span id=\""+this.getId()+"\" label=\""+this.getName()+"\""+this.dkmsd();Bfx=Bfx+" class=\"jsx30imagebutton\" style=\"";Bfx=Bfx+(this.vrKJJ()+this.nggnf()+this.gMtsd()+this.gdtqB()+this.rBNqD()+this.wjHzp()+this.NHPtn()+this.vMFll()+this.rcPjv()+this.fgxdw()+this.Bqxnk()+this.chbLq()+this.hqPwJ()+this.jlMxm());Bfx=Bfx+"\"";Bfx=Bfx+this.renderHandlers(this.getEnabled()==Cqj.STATEENABLED?Bpg.HJjl:null);Bfx=Bfx+this.renderAttributes(null,true);Bfx=Bfx+("><img src=\""+this.Bzlt(false,false)+"\" style=\""+this.Gqgtx()+this.nhLcs()+"\"/>");if(!this._jsxDCpF&&this.isPreFetch()){var FBv=[this.getImage(),this.getOverImage(),this.getDownImage(),this.getOnImage(),this.getDisabledImage()];for(var gMK=0;gMK<FBv.length;gMK++){var BNC=FBv[gMK];if(BNC){BNC=jsx3.resolveURI(BNC);Bfx=Bfx+("<img src=\""+BNC+"\" style=\"display:none;\"/>");}}this._jsxDCpF=true;}Bfx=Bfx+"</span>";return Bfx;};Bpg.prototype.Bzlt=function(qdH,xlH){var qfj=null;if(this.getEnabled()==Cqj.STATEENABLED){if(qdH)qfj=this.getOverImage();else{if(xlH)qfj=this.getDownImage();}if(this.getType()==Bpg.TYPE_TOGGLE&&this.getState()==Bpg.STATE_ON)qfj=qfj||this.getOnImage();}else{qfj=this.getDisabledImage();}qfj=qfj||this.getImage();return qfj?jsx3.resolveURI(qfj):"";};Bpg.prototype.doClick=function(Prk,FvK){if(this.getType()==Bpg.TYPE_TOGGLE){var Gvp=this.getState()==Bpg.STATE_OFF?Bpg.STATE_ON:Bpg.STATE_OFF;var kvc=this.doEvent(Bpm.TOGGLE,{objEVENT:Prk,intSTATE:Gvp});if(kvc!==false){this.setState(Gvp);FvK.children(0).src=this.Bzlt(false,false);}}this.doEvent(Bpm.EXECUTE,{objEVENT:Prk});};Bpg.prototype.doMouseOver=function(lgk,rkK){rkK.children(0).src=this.Bzlt(true,false);};Bpg.prototype.doMouseOut=function(Bbj,HfK){HfK.children(0).src=this.Bzlt(false,false);};Bpg.prototype.doMouseDown=function(dLj,kbK){if(!dLj.rightButton())kbK.children(0).src=this.Bzlt(false,true);};Bpg.prototype.doMouseUp=function(FFj,LJJ){if(FFj.rightButton())this.jsxsupermix(FFj,LJJ);else LJJ.children(0).src=this.Bzlt(false,false);};Bpg.prototype.doKeyDown=function(bxj,hCJ){if(bxj.enterKey()||bxj.spaceKey())this.doClick(bxj,hCJ);};Bpg.prototype.doValidate=function(){var bzP=null;if(this.getType()==Bpg.NORMAL)bzP=Cqj.STATEVALID;else bzP=this.getState()==Bpg.STATE_ON||this.getRequired()==Cqj.OPTIONAL?Cqj.STATEVALID:Cqj.STATEINVALID;this.setValidationState(bzP);return bzP;};});
