//********************************************************************************************************** // 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.34.2 //********************************************************************************************************** var eo_hs=-1;var eo_ht=-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,b,c,d){this.aku=a;this.akv=new Array();this.aku.akw=this;if(typeof(ValidatorOnLoad)=="function")_eofu_ap(this,1,50);else this.akx();this.aky="\t"+b;this.akz=c;this.ala=d;}function _eofme_d(a){if((typeof(Page_ValidationActive)=="boolean")&&Page_ValidationActive)this.akx();else _eofu_ap(this,1,50);}function _eofme_e(){this.aku.onmousedown=_eofme_r;this.aku.onmouseup=_eofme_s;this.aku.onkeydown=_eofme_t;this.aku.onkeyup=_eofme_u;this.aku.eo_hu=this.aku.onkeypress;this.aku.onkeypress=_eofme_v;this.aku.onfocus=_eofme_w;this.aku.onblur=_eofme_x;this.aku.onselectstart=_eofme_y;this.aku.ondragstart=_eofi_cm;this.aku.onselect=_eofi_cm;}function _eofme_f(){this.aku.akw=this;this.aku.onmousedown=null;this.aku.onmouseup=null;this.aku.onkeydown=null;this.aku.onkeyup=null;this.aku.onkeypress=null;this.aku.onfocus=null;this.aku.onblur=null;this.aku.onselectstart=null;this.aku.ondragstart=null;this.aku.onselect=null;this.aku=null;}function _eofme_g(){var a=this.aku.value;if(a){if(this.aku.createTextRange){var b=this.aku.createTextRange();b.moveEnd("character",-a.length);b.select();}else if(this.aku.setSelectionRange)this.aku.setSelectionRange(0,0);}}function _eofme_h(){this.akv=new Array();this.alb=null;}function _eofme_i(){this.alc();}function _eofme_j(){var a="";if(this.ala)a=this.ala;else{for(var b=0;b=b)&&(c.abn=b)&&(d=0)break;}if(c>=0){if(!this.alb)this.aku.focus();if(this.alx((a.shiftKey&&(b==9))?-1:1,false))return true;}}if(_eofu_ck(b)||(b==eo_ct)){switch(b){case eo_cp:this.alx(-1,true);break;case eo_cr:this.alx(1,true);break;case eo_cq:if(this.alb)this.alb.aly(1);this.alc();break;case eo_cs:if(this.alb)this.alb.aly(-1);this.alc();break;case eo_ct:if(this.alb){var f=this.alb.alz();if(f&2){this.alb.ama();this.alc();}if(f&1){this.alx(-1,true);}}break;}return true;}if(b==eo_cu){if(this.alb&&this.alb.u())this.alc();return true;}return false;}function _eofme_aj(a){if(this.aku.eo_hu)this.aku.eo_hu(a);if(this.aku.readOnly)return;if(!this.alv()){if(this.alw(a))return false;}if(this.alb){this.ala=null;if(!a)a=window.event;var b=_eofu_cl(a);if((b==9)||(b==27))return;if(this.alb.alm(a)){if(this.alb.amb(b))this.alx(1,false);this.alc();}_eofi_dn(this.aku,a);return false;}}function _eofme_ak(a){if(this.aku.readOnly)return;if(!this.alb){var b=_eofme_cp();for(var c=0;c0){d++;if(d>=this.akv.length){if(b)d=0;else return false;}}else{d--;if(d<0){if(b)d=this.akv.length-1;else return false;}}var e=this.akv[d];if(e.alr())continue;this.alt(e);return true;}return false;}function _eofme_an(){return this.akv;}function _eofme_ao(){for(var a=0;a=0)b.setSelectionRange(c,c+this.alh());}}this.amn=true;}function _eofme_at(){this.amn=false;this.bd();}function _eofme_au(){var a=0;for(var b=0;bf)f=a[g].length;}this.amt=f;this.amq=d;if(!d)this.amq=0;this.amr=e;if(e==null)this.amr=a.length-1;if(bthis.amr)b=this.amr;this.amu=b;this.amv=c;}function _eofme_be(){var a=this.amu;if(a!=null){if(a>this.amr)a=this.amr;if(athis.amr)this.amu=this.amr;if(this.amu0){e++;c=Math.floor(c/10);}this.ali=e;}function _eofme_bm(){var a;if(this.amz){a=_eofu_ej(this.amz);if(athis.amr){return _eofme_cj(_eofme_ck(this.amr,this.amy),this.ali,true," ");}return _eofme_cj(this.amz,this.ali,true," ");}else{a=this.ak();if(a!=null){var b=this.alf.akz;if(b&&b.ana)return b.ana(this,a);else return _eofme_cj(_eofme_ck(a,this.amy),this.ali,true," ");}else{return _eofme_cj("",this.ali,true," ");}}}function _eofme_bn(){return this.ali;}function _eofme_bo(a){if(this.amz)this.at=_eofu_ej(this.amz);if(this.at==null)this.at=a;else this.at+=a;if(a>0){if(this.at>this.amr)this.at=this.amq;}else{if(this.at=48)&&(c<=57)){if(this.amz==null)this.amz="";this.amz+=String.fromCharCode(c);if(this.amz.length>this.ali)this.amz=this.amz.substr(this.amz.length-this.ali);this.ama();return true;}else return false;}function _eofme_bq(a){return this.amz&&(this.amz.length>=this.ali)&&(a>=32)&&(a<128);}function _eofme_br(){var a=this.amz;if(a){a=_eofu_ej(a);if(athis.amr)a=this.amr;this.at=a;}this.amz=null;}function _eofme_bs(){if(!this.amz&&this.at)this.amz=this.at.toString();if(this.amz){this.amz=this.amz.substr(0,this.amz.length-1);if(this.amz)return 2;else{this.at=null;return 3;}}return 1;}function _eofme_bt(){this.amz=null;return true;}function _eofme_bu(){var a=this.amn&&this.amz?_eofu_ej(this.amz):this.at;if(a==null)return null;if(athis.amr)a=this.amr;return a;}_eofme_bl.prototype=new _eofme_ap();_eofme_bl.prototype.ald=_eofme_bm;_eofme_bl.prototype.alh=_eofme_bn;_eofme_bl.prototype.alr=_eofi_cm;_eofme_bl.prototype.aly=_eofme_bo;_eofme_bl.prototype.alm=_eofme_bp;_eofme_bl.prototype.amb=_eofme_bq;_eofme_bl.prototype.bd=_eofme_br;_eofme_bl.prototype.alz=_eofme_bs;_eofme_bl.prototype.u=_eofme_bt;_eofme_bl.prototype.amx=_eofme_bc;_eofme_bl.prototype.ak=_eofme_bu;var eo_hv=0;var eo_hw=1;var eo_hx=2;var eo_hy=3;function _eofme_bv(a){this.anb=a;this.anc=0;this.and=new Array();this.ane=new Array();var b=eo_hv;for(var c=0;c')b=eo_hw;else if(d=='|')b=eo_hv;else{this.and[this.anc]=d;this.ane[this.anc]=b;}}}function _eofme_bw(){return this.anc;}function _eofme_bx(a,b){var c=this.ane[a];if(c==eo_hy)return this.and[a];switch(this.and[a]){case'0':return _eofme_a(b);case'9':return _eofme_a(b)||(b==' ');case'#':return _eofme_a(b)||(b==' ')||(b=='+')||(b=='-');case'L':return this.anf(_eofme_b(b),b,c);case'?':return this.anf(_eofme_b(b)||(b==' '),b,c);case'A':return this.anf(_eofme_a(b)||_eofme_b(b),b,c);case'a':return this.anf(_eofme_a(b)||_eofme_b(b)||(b==' '),b,c);}return this.and[a];}function _eofme_by(a,b,c){if(a&&b){if(c==eo_hw)b=b.toUpperCase();else if(c==eo_hx)b=b.toLowerCase();return b;}return null;}_eofme_bv.prototype.alh=_eofme_bw;_eofme_bv.prototype.ang=_eofme_bx;_eofme_bv.prototype.anf=_eofme_by;function _eofme_bz(a,b,c){this.anb=new _eofme_bv(a);this.anh=c;this.at=b;this.amz=null;}function _eofme_ca(){return this.ani(this.at);}function _eofme_cb(){return this.anb.alh();}function _eofme_cc(a){var b;var c=_eofu_cl(a);var d=String.fromCharCode(c);if(this.amz==null)this.amz="";var b=this.amz.length;d=this.anb.ang(b,d);if(d!=null){this.amz+=d;this.ama();return true;}return false;}function _eofme_cd(a){return this.amz&&(this.amz.length>=this.anb.length)&&(a>=32)&&(a<128);}function _eofme_ce(){var a=this.amz;if(a)this.at=a;this.amz=null;}function _eofme_cf(){if(!this.amz&&this.at)this.amz=this.at;if(this.amz){this.amz=this.amz.substr(0,this.amz.length-1);if(this.amz)return 2;else{this.at=null;return 3;}}return 1;}function _eofme_cg(){this.amz=null;return true;}function _eofme_ch(){var a=this.amn&&this.amz?this.amz:this.at;return a;}function _eofme_ci(a){var b="";for(var c=0;c0){if(c)a=d+a;else a=a+d;b-=d.length;}return a;}function _eofme_ck(a,b){return _eofme_cj(a.toString(),b,true," ");}function _eofme_cl(a){if(!a)a=window.event;if(!a)return false;var b=_eofu_cl(a);return a.shiftKey&&b==9;}function _eofme_cm(){eo_hs=-1;eo_ht=-1;}function _eofme_cn(a){_eofme_cm();if(_eofme_cl(a))eo_hs=_eofi_ee();}function _eofme_co(a){_eofme_cm();if(_eofme_cl(a))eo_ht=_eofi_ee();}function _eofme_cp(){if((eo_hs>0)&&(eo_ht<0))return true;if((eo_ht>0)&&((_eofi_ee()-eo_ht)<200))return true;return false;}var eo_hz=0;var eo_ia=1;var eo_ib=2;var eo_ic=3;function _eofme_cq(a){this.acp(a[0]);if(a[1])this.akv=a[1].aap;else this.akv=new Array();for(var b=0;b