//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2004-2006 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 4.0.43.2 //********************************************************************************************************** var eo_hw=-1;var eo_hx=-1;function _eofme_a(a){return(a>=48)&&(a<=57);}function _eofme_b(a){return((a>=65)&&(a<=90))||((a>=97)&&(a<=122));}function _eofme_c(a){var b=0;while(a>0){b++;a=Math.floor(a/10);}return b;}function _eofme_d(a,b){if(b==null)return null;b=b.trim();var c="";var d=_eofme_c(a);for(var e=0;e=b)&&(c.abq=b)&&(d=0)break;}if(c>=0){if(!this.all)this.ale.focus();if(this.amh((a.shiftKey&&(b==9))?-1:1,false))return true;}}if(_eofu_ck(b)||(b==eo_cx)){switch(b){case eo_ct:this.amh(-1,true);break;case eo_cv:this.amh(1,true);break;case eo_cu:if(this.all)this.all.ami(1);this.alm();break;case eo_cw:if(this.all)this.all.ami(-1);this.alm();break;case eo_cx:if(this.all){var f=this.all.amj();if(f&2){this.all.amk();this.alm();}if(f&1){this.amh(-1,true);}}break;}return true;}if(b==eo_cy){if(this.all&&this.all.u())this.alm();return true;}return false;}function _eofme_al(a){if(this.ale.eo_hy)this.ale.eo_hy(a);if(this.ale.readOnly)return;if(!this.amf()){if(this.amg(a))return false;}if(this.all){this.alk=null;if(!a)a=window.event;var b=_eofu_cl(a);if((b==9)||(b==27))return;if(this.all.alw(a)){if(this.all.aml(b))this.amh(1,false);this.alm();}}_eofi_dt(this.ale,a);return false;}function _eofme_am(a){if(this.ale.readOnly)return;if(!this.all){var b=_eofme_dc();for(var c=0;c0){d++;if(d>=this.alf.length){if(b)d=0;else return false;}}else{d--;if(d<0){if(b)d=this.alf.length-1;else return false;}}var e=this.alf[d];if(e.amb())continue;this.amd(e);return true;}return false;}function _eofme_ap(){return this.alf;}function _eofme_aq(){for(var a=0;a=0)b.setSelectionRange(c,c+this.alr());}}this.amz=true;}function _eofme_av(){this.amz=false;this.bd();}function _eofme_aw(){var a=0;for(var b=0;bh)h=a[i].length;}this.anm=h;this.ani=d;if(!d)this.ani=0;this.anj=e;if(e==null)this.anj=a.length-1;if(bthis.anj)b=this.anj;this.ann=b;this.ano=c;this.anp=g;}function _eofme_bk(a){var b=this.ann;if(b!=null){if(b>this.anj)b=this.anj;if(b0)this.anq(this.ani);else this.anq(this.anj);}else{var b=this.ann+a;if((a>0)&&(b>this.anj)){if(this.anl)this.anq(this.ani);else this.anq(null);}else if((a<0)&&(b=0)||(this.ann!=null))this.ann=a;else this.ann=this.anj+a+1;if(this.ann>this.anj)this.ann=this.anj;if(this.annthis.anj){return _eofme_cw(_eofme_cx(this.anj,this.ans),this.als,true,b);}return _eofme_cw(this.ant,this.als,true,b);}else{c=this.ak();if(c!=null){var d=this.alp.alj;if(d&&d.anu)return d.anu(this,c);else return _eofme_cw(_eofme_cx(c,this.ans),this.als,true,b);}else{return _eofme_cw("",this.als,true,b);}}}function _eofme_bv(a){this.ant=a;this.amk();}function _eofme_bw(){return this.als;}function _eofme_bx(a){if(this.ant)this.at=_eofu_ej(this.ant);if(this.at==null){if(a>0)this.at=this.ani;else this.at=this.anj;}else this.at+=a;if(a>0){if(this.at>this.anj)this.at=this.ani;}else{if(this.at=48)&&(c<=57)){if(this.ant==null)this.ant="";this.ant+=String.fromCharCode(c);if(this.ant.length>this.als)this.ant=this.ant.substr(this.ant.length-this.als);this.amk();return true;}else return false;}function _eofme_bz(a){return this.ant&&(this.ant.length>=this.als)&&(a>=32)&&(a<128);}function _eofme_ca(){var a=this.ant;if(a){a=_eofu_ej(a);if(athis.anj)a=this.anj;this.at=a;}this.ant=null;}function _eofme_cb(){if(!this.ant&&this.at)this.ant=this.at.toString();if(this.ant){this.ant=this.ant.substr(0,this.ant.length-1);if(this.ant)return 2;else{this.at=null;return 3;}}return 1;}function _eofme_cc(){this.ant=null;return true;}function _eofme_cd(){var a=this.amz&&this.ant?_eofu_ej(this.ant):this.at;if(a==null)return null;if(athis.anj)a=this.anj;return a;}function _eofme_ce(){var a=this.ak();this.ane(!this.anl||(a!=null));}_eofme_bt.prototype=new _eofme_ar();_eofme_bt.prototype.aln=_eofme_bu;_eofme_bt.prototype.anh=_eofme_bv;_eofme_bt.prototype.alr=_eofme_bw;_eofme_bt.prototype.amb=_eofi_cm;_eofme_bt.prototype.ami=_eofme_bx;_eofme_bt.prototype.alw=_eofme_by;_eofme_bt.prototype.aml=_eofme_bz;_eofme_bt.prototype.bd=_eofme_ca;_eofme_bt.prototype.amj=_eofme_cb;_eofme_bt.prototype.u=_eofme_cc;_eofme_bt.prototype.anr=_eofme_bi;_eofme_bt.prototype.ak=_eofme_cd;_eofme_bt.prototype.and=_eofme_ce;var eo_hz=0;var eo_ia=1;var eo_ib=2;var eo_ic=3;function _eofme_cf(a){if(!a)a="";this.anv=a;this.anw=0;this.anx=new Array();this.any=new Array();var b=eo_hz;for(var c=0;c')b=eo_ia;else if(d=='|')b=eo_hz;else{this.anx[this.anw]=d;this.any[this.anw]=b;this.anw++;}}}function _eofme_cg(){return this.anw;}function _eofme_ch(a,b){var c=this.any[a];if(c==eo_ic)return this.anx[a];var d=String.fromCharCode(b);switch(this.anx[a]){case'0':return _eofme_a(b)?d:null;case'9':return(_eofme_a(b)||(d==' '))?d:null;case'#':return(_eofme_a(b)||(d==' ')||(d=='+')||(d=='-'))?d:null;case'L':return this.anz(_eofme_b(b),d,c);case'?':return this.anz(_eofme_b(b)||(d==' '),d,c);case'A':return this.anz(_eofme_a(b)||_eofme_b(b),d,c);case'a':return this.anz(_eofme_a(b)||_eofme_b(b)||(d==' '),d,c);}return this.anx[a];}function _eofme_ci(a,b,c){if(a&&b){if(c==eo_ia)b=b.toUpperCase();else if(c==eo_ib)b=b.toLowerCase();return b;}return null;}_eofme_cf.prototype.alr=_eofme_cg;_eofme_cf.prototype.aoa=_eofme_ch;_eofme_cf.prototype.anz=_eofme_ci;function _eofme_cj(a,b,c){this.anv=new _eofme_cf(a);this.anp=c;this.at=b;this.ant=null;}function _eofme_ck(a){return this.aob(this.ak(),a);}function _eofme_cl(a){this.ant=this.aob(a);this.amk();}function _eofme_cm(){return this.anv.alr();}function _eofme_cn(a){var b;var c=_eofu_cl(a);if(this.ant==null)this.ant="";var b=this.ant.length;var d=this.anv.aoa(b,c);if(d!=null){this.ant+=d;this.amk();return true;}return false;}function _eofme_co(a){return this.ant&&(this.ant.length>=this.anv.length)&&(a>=32)&&(a<128);}function _eofme_cp(){var a=this.ant;if(a)this.at=a;this.ant=null;}function _eofme_cq(){if(!this.ant&&this.at)this.ant=this.at;if(this.ant){this.ant=this.ant.substr(0,this.ant.length-1);if(this.ant)return 2;else{this.at=null;return 3;}}return 1;}function _eofme_cr(){this.ant=null;return true;}function _eofme_cs(){var a=this.amz&&this.ant?this.ant:this.at;return a;}function _eofme_ct(a,b){var c="";if(a==null)a="";for(var d=0;dthis.anv.alr())b.aoc=a.substr(0,this.anv.alr());else b.aoc="";b.aod=_eofme_cw(d,this.anv.alr(),false,' ');return c;}function _eofme_cv(){var a=this.aln();var b=new Object();b.aoc=a;this.ane(this.aoa(a,b));}_eofme_cj.prototype=new _eofme_ar();_eofme_cj.prototype.aln=_eofme_ck;_eofme_cj.prototype.anh=_eofme_cl;_eofme_cj.prototype.alr=_eofme_cm;_eofme_cj.prototype.amb=_eofi_cm;_eofme_cj.prototype.alw=_eofme_cn;_eofme_cj.prototype.aml=_eofme_co;_eofme_cj.prototype.bd=_eofme_cp;_eofme_cj.prototype.amj=_eofme_cq;_eofme_cj.prototype.u=_eofme_cr;_eofme_cj.prototype.ak=_eofme_cs;_eofme_cj.prototype.aob=_eofme_ct;_eofme_cj.prototype.aoa=_eofme_cu;_eofme_cj.prototype.and=_eofme_cv;function _eofme_cw(a,b,c,d){if(!a)a="";else b-=a.length;while(b>0){if(c)a=d+a;else a=a+d;b-=d.length;}return a;}function _eofme_cx(a,b){return _eofme_cw(a.toString(),b,true," ");}function _eofme_cy(a){if(!a)a=window.event;if(!a)return false;var b=_eofu_cl(a);return a.shiftKey&&b==9;}function _eofme_cz(){eo_hw=-1;eo_hx=-1;}function _eofme_da(a){_eofme_cz();if(_eofme_cy(a))eo_hw=_eofi_ek();}function _eofme_db(a){_eofme_cz();if(_eofme_cy(a))eo_hx=_eofi_ek();}function _eofme_dc(){if((eo_hw>0)&&(eo_hx<0))return true;if((eo_hx>0)&&((_eofi_ek()-eo_hx)<200))return true;return false;}var eo_id=0;var eo_ie=1;var eo_if=2;var eo_ig=3;function _eofme_dd(a){this.acs(a[0]);if(a[1])this.alf=a[1].aas;else this.alf=new Array();for(var b=0;b0)this.anp=this.anp.substr(0,1);}function _eofme_de(a){this.adn(a);this.ale=document.getElementById(this.c);this.alp=new _eofme_e(this.ale,null,null,this.alk);this.alp.ams();for(var b=0;bb.length)e=b.length;var f=b.substr(0,e);d.aoc=b.Substring(e);if(!c){f=_eofme_d(a.getMaxValue(),f);a.setText(f);}return true;}function _eofme_do(a,b,c,d,e){if(!a.getChoices())return true;var f=-1;var g=0;var h=a.getChoices.split('|');for(var i=0;ig){g=j;f=i;}}if(f>=0){var k=h[f];e.aoc=b.substr(0,k.length);if(!d)a.setText(k);return true;}return false;}function _eofme_dp(a,b,c){if(a.indexOf(b)<0)return 0;a=a.substr(0,b.length);var d=this.aof(a,c,true);d++;return d;}function _eofme_dq(a,b,c){var d=new Object();d.aoc=b;if(a.aoa(b,d)){if(!c)a.setText(d.aod);return true;}return false;}function _eofme_dr(){for(var a=0;athis.anj)this.ani=this.anj;this.at=null;if(b!=null){b=b.trim();if(b){this.at=parseInt(b);if(isNaN(this.at))this.at=0;if(this.atthis.anj)this.at=this.anj;}}}else if(this.f==eo_if){if(f)f=f.split('|');else f=new Array();this.ank=f;this.at=null;if(!b)b="";for(var h=0;h