//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2006-2018 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 17.2.92.0 //********************************************************************************************************** EO17292.g.ahx=-1;EO17292.g.ahy=-1;EO17292.g.ahz=[14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,0x18,0x18,0x18,0x1a,0x18,0x18,0x18,20,0x15,0x18,0x19,0x18,0x13,0x18,0x18,8,8,8,8,8,8,8,8,8,8,0x18,0x18,0x19,0x19,0x19,0x18,0x18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,0x18,0x15,0x1b,0x12,0x1b,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,0x19,0x15,0x19,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,0x18,0x1a,0x1a,0x1a,0x1a,0x1c,0x1c,0x1b,0x1c,1,0x16,0x19,0x13,0x1c,0x1b,0x1c,0x19,10,10,0x1b,1,0x1c,0x18,0x1b,10,1,0x17,10,10,10,0x18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x19,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0x19,1,1,1,1,1,1,1,1];EO17292.f.bfq=function(a){return(a>=48)&&(a<=57);};EO17292.f.bfr=function(a){if(a>0xff)return false;if(((a>=65)&&(a<=90))||((a>=97)&&(a<=122)))return true;var b=EO17292.g.ahz[a];switch(b){case 0:case 1:case 2:case 3:case 4:return true;}return false;};EO17292.f.bfs=function(a){var b=0;a=Math.floor(a);while(a>0){b++;a=Math.floor(a/10);}return b;};EO17292.f.bft=function(a,b,c){if(b==null)return null;b=b.trim();var d="";var e=EO17292.f.bfs(a);var f=null;var g=EO17292.f.ath();var h=b.indexOf(g);if(h>=0){f=b.substr(h+1);b=b.substr(0,h);}for(var i=0;i=b)&&(a.aev=a)&&(c=0)break;}if(d>=0){if(this.awx){return b!=9;}if(!this.ayj)this.aye.focus();if(this.azi){this.azi=false;if(b!=9)return true;}if(this.azj((a.shiftKey&&(b==9))?-1:1,false))return true;}}if(EO17292.f.ae()&&this.ayj){if(this.ayj.aan==EO17292.g.aig){if(b==78)b=EO17292.g.acb;else if(b==80)b=EO17292.g.abz;else if(b==68)b=EO17292.g.acd;}else if(this.ayj.aan==EO17292.g.aif){if(b==68)b=EO17292.g.acd;}}if(EO17292.f.amn(b)||(b==EO17292.g.acc)){if(this.awx)return true;switch(b){case EO17292.g.aby:this.azj(-1,true);break;case EO17292.g.aca:this.azj(1,true);break;case EO17292.g.abz:if(this.ayj)this.ayj.azk(1);this.aim();break;case EO17292.g.acb:if(this.ayj)this.ayj.azk(-1);this.aim();break;case EO17292.g.acc:if(this.ayj){var g=this.ayj.azl();if(g&2){if(this.ayj.azm())return true;this.aim();}if(g&1){this.azj(-1,true);}}break;}return true;}if(b==EO17292.g.acd){if(this.awx)return true;if(this.ayj&&this.ayj.aba()){this.ayj.abr=null;this.ayj.azm();this.aim();}return true;}if(b==EO17292.g.acg){if(this.awx)return true;for(var e=0;e=0;e--){var h=this.ayf[e];if(h.aza())continue;this.azc(h);break;}return true;}return false;};EO17292.f.bhb=function(a){if(this.aye.eo_bo)this.aye.eo_bo(a);if(this.aye.readOnly)return;if(!this.azg()){if(this.azh(a)){EO17292.f.ahr(this.aye,a);return false;}}if(!a)a=window.event;var b=EO17292.f.amo(a);if((b==9)||(b==13)||(b==27)){if(this.azn){if(this.azn(this.azo,b))return false;}}if(this.ayj){this.awx=null;if(this.ayj.ayt(a)){if(this.ayj.azp(b)){this.azi=true;this.azq=false;this.azj(1,false);}this.aim();}else{var c=this.ayj?this.ayj.azr():-1;c++;if(c0){d++;if(d>=this.ayf.length){if(this.azn){if(this.azn(this.azo,true))return true;}if(b)d=0;else return false;}}else{d--;if(d<0){if(this.azn){if(this.azn(this.azo,false))return true;}if(b)d=this.ayf.length-1;else return false;}}var e=this.ayf[d];if(e.aza())continue;this.azc(e);return true;}return false;};EO17292.f.bhh=function(){return this.ayf;};EO17292.f.bhi=function(a){for(var b=0;b=0){try{c.setSelectionRange(a,b);}catch(e){}}}};EO17292.f.bho=function(){this.axm=false;this.acc();};EO17292.f.bhp=function(){var a=0;for(var b=0;bh)h=a[i].length;}this.axa=h;this.bas=d;if(!d)this.bas=0;this.bat=e;if(e==null)this.bat=a.length-1;if(f&&(b==null))b=this.bas;if(bthis.bat)b=this.bat;this.baw=b;this.bax=c;this.bay=g;};EO17292.f.bie=function(a){var b=this.baw;if(b!=null){if(b>this.bat)b=this.bat;if(b0)this.ayb(this.bas);else this.ayb(this.bat);}else{var b=this.baw+a;if((a>0)&&(b>this.bat)){if(this.bav)this.ayb(this.bas);else this.ayb(null);}else if((a<0)&&(bthis.bba.length)f=f.substr(0,this.bba.length);if(this.bba==f.toLowerCase()){d++;if(d==1)this.ayb(e);}}this.azq=d==1;return d>0;};EO17292.f.bik=function(a){if(a!=this.baw){this.baf();if(a!=null){if((a>=0)||(this.baw!=null))this.baw=a;else this.baw=this.bat+a+1;if(this.baw>this.bat)this.baw=this.bat;if(this.baw0)this.abr=this.bas;else this.abr=this.bat;}else this.abr+=a;if(a>0){if(this.abr>this.bat)this.abr=this.bas;}else{if(this.abr=48)&&(c<=57))||((c==e)&&this.bbe)){this.baf();if(this.bbd==null)this.bbd="";this.bbd+=String.fromCharCode(c);var f=this.bbd;var g=f.indexOf(d);if(g<0){if(f.length>this.ayp)f=f.substr(f.length-this.ayp);}else{var h=f.substr(0,g);if(g>this.ayp)h=h.substr(h.length-g);var i=f.substr(g+1);if(i.length>this.bbe)i=i.substr(i.length-this.bbe);f=h+d+i;}this.bbd=f;this.azm();return true;}else return false;};EO17292.f.biu=function(a){return this.bbd&&(this.bbd.length>=this.ahu())&&(a>=32)&&(a<128);};EO17292.f.biv=function(){var a=this.bbd;if(a){a=EO17292.f.ati(a);if(this.bbh){var b=this.bbh(a);if(b!=a){a=b;this.bbi=true;}}if(athis.bat)a=this.bat;this.abr=a;this.baf();}this.bbd=null;};EO17292.f.biw=function(){this.baf();if(!this.bbd&&this.abr)this.bbd=EO17292.f.atj(this.abr);if(this.bbd){this.bbd=this.bbd.substr(0,this.bbd.length-1);if(this.bbd)return 2;else{this.abr=null;return 3;}}return 1;};EO17292.f.bix=function(){this.baf();this.bbd=null;return true;};EO17292.f.biy=function(a){var b=this.axm&&this.bbd?EO17292.f.ati(this.bbd):this.abr;if(b==null)return null;if(!a){if(bthis.bat)b=this.bat;}return b;};EO17292.f.biz=function(){var a=this.av();this.bao(!this.bav||(a!=null));};EO17292.f.bja=function(a,b){if(!this.bbe)a=EO17292.f.ara(a,this.ahu(),true,b);else{var c=EO17292.f.ath();var d=a.indexOf(c);var e="";var f="";if(d>=0){e=a.substr(0,d);f=a.substr(d+1);}else{e=a;}if(e.length>this.ayp)e=e.substr(e.length-this.ayp);else e=EO17292.f.ara(e,this.ayp,true,b);if(f.length>this.bbe)f=f.substr(f.length-this.ayp);else f=EO17292.f.ara(f,this.bbe,false,b);a=e+c+f;}return a;};EO17292.f.bio.prototype=new EO17292.f.bhj();EO17292.f.bio.prototype.ayk=EO17292.f.bip;EO17292.f.bio.prototype.bar=EO17292.f.biq;EO17292.f.bio.prototype.ahu=EO17292.f.bir;EO17292.f.bio.prototype.aza=EO17292.f.afo;EO17292.f.bio.prototype.azk=EO17292.f.bis;EO17292.f.bio.prototype.ayt=EO17292.f.bit;EO17292.f.bio.prototype.azp=EO17292.f.biu;EO17292.f.bio.prototype.acc=EO17292.f.biv;EO17292.f.bio.prototype.azl=EO17292.f.biw;EO17292.f.bio.prototype.aba=EO17292.f.bix;EO17292.f.bio.prototype.bbb=EO17292.f.bic;EO17292.f.bio.prototype.av=EO17292.f.biy;EO17292.f.bio.prototype.ban=EO17292.f.biz;EO17292.f.bio.prototype.bbf=EO17292.f.bja;EO17292.g.aia=0;EO17292.g.aib=1;EO17292.g.aic=2;EO17292.g.aid=3;EO17292.f.bjb=function(a){if(!a)a="";if(a.charAt(0)=='-'){this.bbj=true;a=a.substr(1);}this.bbk=a;this.bbl=0;this.bbm=new Array();this.bbn=new Array();var b=EO17292.g.aia;for(var c=0;c')b=EO17292.g.aib;else if(d=='|')b=EO17292.g.aia;else{this.bbm[this.bbl]=d;this.bbn[this.bbl]=b;this.bbl++;}}};EO17292.f.bjc=function(){return this.bbl;};EO17292.f.bjd=function(a,b){var c=this.bbn[a];if(c==EO17292.g.aid)return this.bbm[a];var d=String.fromCharCode(b);switch(this.bbm[a]){case'0':return EO17292.f.bfq(b)?d:null;case'9':return(EO17292.f.bfq(b)||(d==' '))?d:null;case'#':return(EO17292.f.bfq(b)||(d==' ')||(d=='+')||(d=='-'))?d:null;case'L':return this.bbo(EO17292.f.bfr(b),d,c);case'?':return this.bbo(EO17292.f.bfr(b)||(d==' '),d,c);case'A':return this.bbo(EO17292.f.bfq(b)||EO17292.f.bfr(b),d,c);case'a':return this.bbo(EO17292.f.bfq(b)||EO17292.f.bfr(b)||(d==' '),d,c);}return this.bbm[a];};EO17292.f.bje=function(a){if(this.bbn[a]==EO17292.g.aid)return this.bbm[a];switch(this.bbm[a]){case'0':case'9':case'#':case'L':case'?':case'A':case'a':return null;}return this.bbm[a];};EO17292.f.bjf=function(a,b){var c;var d="";while(c=this.bbp(a)){d+=c;a++;}var e=this.bbq(a,b);if(!e)e="";d+=e;return d;};EO17292.f.bjg=function(a,b,c){if(a&&b){if(c==EO17292.g.aib)b=b.toUpperCase();else if(c==EO17292.g.aic)b=b.toLowerCase();return b;}return null;};EO17292.f.bjh=function(){return this.bbj;};EO17292.f.bjb.prototype.ahu=EO17292.f.bjc;EO17292.f.bjb.prototype.bbq=EO17292.f.bjd;EO17292.f.bjb.prototype.bbr=EO17292.f.bjf;EO17292.f.bjb.prototype.bbp=EO17292.f.bje;EO17292.f.bjb.prototype.bbo=EO17292.f.bjg;EO17292.f.bjb.prototype.bbs=EO17292.f.bjh;EO17292.f.bji=function(a,b,c){this.aan=EO17292.g.aih;this.bbk=new EO17292.f.bjb(a);this.bay=c;this.abr=b;this.bbd=null;};EO17292.f.bjj=function(a){return this.bbt(this.av(),a);};EO17292.f.bjk=function(a){this.abr=this.bbt(a);this.azm();};EO17292.f.bjl=function(){return this.bbk.ahu();};EO17292.f.bjm=function(a){var b;var c=EO17292.f.amo(a);if(this.bbd==null)this.bbd="";b=this.bbd.length;var d=this.bbk.bbr(b,c);if(d!=null){this.baf();this.bbd+=d;this.azm();return true;}return false;};EO17292.f.bjn=function(a){return this.bbd&&(this.bbd.length>=this.bbk.ahu())&&(a>=32)&&(a<128);};EO17292.f.bjo=function(){var a=this.bbd;if(a){this.baf();this.abr=a;}this.bbd=null;};EO17292.f.bjp=function(){this.baf();if(!this.bbd&&this.abr)this.bbd=this.abr;if(this.bbd){this.bbd=this.bbd.substr(0,this.bbd.length-1);while(this.bbd){var a=this.bbd.length;var b=this.bbk.bbp(a-1);if(b)this.bbd=this.bbd.substr(0,this.bbd.length-1);else break;}if(this.bbd)return 2;else{this.abr=null;return 3;}}return 1;};EO17292.f.bjq=function(){this.baf();this.bbd=null;return true;};EO17292.f.bjr=function(){var a=this.axm&&this.bbd?this.bbd:this.abr;return a;};EO17292.f.bjs=function(a,b){var c="";if(a==null)a="";if(this.bbk.bbs()&&(a.lengththis.bbk.ahu())b.bbu=a.substr(this.bbk.ahu());else b.bbu="";b.bbv=EO17292.f.ara(d,this.bbk.ahu(),false,' ');return c;};EO17292.f.bju=function(){var a=this.ayk();var b=new Object();b.bbu=a;this.bao(this.bbq(a,b));};EO17292.f.bji.prototype=new EO17292.f.bhj();EO17292.f.bji.prototype.ayk=EO17292.f.bjj;EO17292.f.bji.prototype.bar=EO17292.f.bjk;EO17292.f.bji.prototype.ahu=EO17292.f.bjl;EO17292.f.bji.prototype.aza=EO17292.f.afo;EO17292.f.bji.prototype.ayt=EO17292.f.bjm;EO17292.f.bji.prototype.azp=EO17292.f.bjn;EO17292.f.bji.prototype.acc=EO17292.f.bjo;EO17292.f.bji.prototype.azl=EO17292.f.bjp;EO17292.f.bji.prototype.aba=EO17292.f.bjq;EO17292.f.bji.prototype.av=EO17292.f.bjr;EO17292.f.bji.prototype.bbt=EO17292.f.bjs;EO17292.f.bji.prototype.bbq=EO17292.f.bjt;EO17292.f.bji.prototype.ban=EO17292.f.bju;EO17292.f.bjv=function(a,b){return EO17292.f.ara(a.toString(),b,true," ");};EO17292.f.bjw=function(){EO17292.g.ahx=-1;EO17292.g.ahy=-1;};EO17292.f.bjx=function(a){EO17292.f.bjw();if(EO17292.f.app(a)==true)EO17292.g.ahx=EO17292.f.aap();};EO17292.f.bjy=function(a){EO17292.f.bjw();if(EO17292.f.app(a)==true)EO17292.g.ahy=EO17292.f.aap();};EO17292.f.bjz=function(){if((EO17292.g.ahx>0)&&(EO17292.g.ahy<0))return true;if((EO17292.g.ahy>0)&&((EO17292.f.aap()-EO17292.g.ahy)<200))return true;return false;};EO17292.g.aie=0;EO17292.g.aif=1;EO17292.g.aig=2;EO17292.g.aih=3;EO17292.f.bka=function(a){this.afy(a[0]);if(a[1])this.ayf=a[1].aem;else this.ayf=new Array();for(var b=0;bb.length)e=b.length;g=b.substr(0,e);d.bbu=b.substr(e);}else{var h=EO17292.f.ath();var i=b.indexOf(h);var j=i>=0?b.substr(0,i):b;var k=i>=0?b.substr(i+1):"";if(e>j.length)e=j.length;if(k.length>f)k=k.substr(0,f);g=j.substr(0,e)+h+k;d.bbu=b.substr(e+1+k.length);}if(!c){g=EO17292.f.bft(a.getMaxValue(),g,a.getDecimals());a.setText(g,true);}return true;};EO17292.f.bkm=function(a,b,c,d,e){if(!a.getChoices())return true;var f=-1;var g=0;var h=a.getChoices();for(var i=0;ig){g=j;f=i;}}if(f>=0){var k=h[f];e.bbu=b.substr(k.length);if(!d)a.setText(k);return true;}return false;};EO17292.f.bkn=function(a,b,c){if(a.indexOf(b)<0)return 0;a=a.substr(b.length);var d=this.bbz(a,c,true);d++;return d;};EO17292.f.bko=function(a,b,c,d){if(a.bcf.bbq(b,d)){if(!c)a.setText(d.bbv);return true;}return false;};EO17292.f.bkp=function(){for(var a=0;a0){var i=1;for(var j=0;jthis.bat)this.bas=this.bat;this.abr=null;if(b!=null){b=b.trim();if(b){this.abr=EO17292.f.ati(b);if(isNaN(this.abr))this.abr=0;if(this.abrthis.bat)this.abr=this.bat;}}}else if(this.aan==EO17292.g.aig){if(f)f=f.split('|');else f=new Array();this.bau=f;this.abr=null;if(!b)b="";for(var j=0;j