//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2004-2006 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 5.0.25.2 //********************************************************************************************************** var eo_ik=-1;var eo_il=-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;a=Math.floor(a);while(a>0){b++;a=Math.floor(a/10);}return b;}function _eofme_d(a,b,c){if(b==null)return null;b=b.trim();var d="";var e=_eofme_c(a);var f=null;var g=b.indexOf('.');if(g>=0){f=b.substr(g+1);b=b.substr(0,g);}for(var h=0;h=b)&&(c.abz=b)&&(d=0)break;}if(c>=0){if(!this.ama)this.alu.focus();if(this.amw((a.shiftKey&&(b==9))?-1:1,false))return true;}}if(_eofu_cl(b)||(b==eo_da)){switch(b){case eo_cw:this.amw(-1,true);break;case eo_cy:this.amw(1,true);break;case eo_cx:if(this.ama)this.ama.amx(1);this.amb();break;case eo_cz:if(this.ama)this.ama.amx(-1);this.amb();break;case eo_da:if(this.ama){var f=this.ama.amy();if(f&2){this.ama.amz();this.amb();}if(f&1){this.amw(-1,true);}}break;}return true;}if(b==eo_db){if(this.ama&&this.ama.u())this.amb();return true;}return false;}function _eofme_al(a){if(this.alu.eo_in)this.alu.eo_in(a);if(this.alu.readOnly)return;if(!this.amu()){if(this.amv(a))return false;}if(this.ama){this.alz=null;if(!a)a=window.event;var b=_eofu_cm(a);if((b==9)||(b==27))return;if(this.ama.aml(a)){if(this.ama.ana(b))this.amw(1,false);this.amb();}}_eofi_dv(this.alu,a);return false;}function _eofme_am(a){if(this.alu.readOnly)return;if(!this.ama){var b=_eofme_df();for(var c=0;c0){d++;if(d>=this.alv.length){if(b)d=0;else return false;}}else{d--;if(d<0){if(b)d=this.alv.length-1;else return false;}}var e=this.alv[d];if(e.amq())continue;this.ams(e);return true;}return false;}function _eofme_ap(){return this.alv;}function _eofme_aq(){for(var a=0;a=0){try{b.setSelectionRange(c,c+this.amg());}catch(e){}}}}this.ano=true;}function _eofme_av(){this.ano=false;this.be();}function _eofme_aw(){var a=0;for(var b=0;bh)h=a[i].length;}this.aob=h;this.anx=d;if(!d)this.anx=0;this.any=e;if(e==null)this.any=a.length-1;if(f&&(b==null))b=this.anx;if(bthis.any)b=this.any;this.aoc=b;this.aod=c;this.aoe=g;}function _eofme_bk(a){var b=this.aoc;if(b!=null){if(b>this.any)b=this.any;if(b0)this.aof(this.anx);else this.aof(this.any);}else{var b=this.aoc+a;if((a>0)&&(b>this.any)){if(this.aoa)this.aof(this.anx);else this.aof(null);}else if((a<0)&&(b=0)||(this.aoc!=null))this.aoc=a;else this.aoc=this.any+a+1;if(this.aoc>this.any)this.aoc=this.any;if(this.aoc0)this.au=this.anx;else this.au=this.any;}else this.au+=a;if(a>0){if(this.au>this.any)this.au=this.anx;}else{if(this.au=48)&&(c<=57))||((c==46)&&this.aoj)){this.ank();if(this.aoi==null)this.aoi="";this.aoi+=String.fromCharCode(c);if(this.aoi.length>this.amg()){if(this.aoj)this.aoi=this.aoi.substr(0,this.amg());else this.aoi=this.aoi.substr(this.aoi.length-this.amg());}this.amz();return true;}else return false;}function _eofme_bz(a){return this.aoi&&(this.aoi.length>=this.amg())&&(a>=32)&&(a<128);}function _eofme_ca(){var a=this.aoi;if(a){a=parseFloat(a);if(athis.any)a=this.any;this.au=a;this.ank();}this.aoi=null;}function _eofme_cb(){this.ank();if(!this.aoi&&this.au)this.aoi=this.au.toString();if(this.aoi){this.aoi=this.aoi.substr(0,this.aoi.length-1);if(this.aoi)return 2;else{this.au=null;return 3;}}return 1;}function _eofme_cc(){this.ank();this.aoi=null;return true;}function _eofme_cd(){var a=this.ano&&this.aoi?parseFloat(this.aoi):this.au;if(a==null)return null;if(athis.any)a=this.any;return a;}function _eofme_ce(){var a=this.al();this.ant(!this.aoa||(a!=null));}_eofme_bt.prototype=new _eofme_ar();_eofme_bt.prototype.amc=_eofme_bu;_eofme_bt.prototype.anw=_eofme_bv;_eofme_bt.prototype.amg=_eofme_bw;_eofme_bt.prototype.amq=_eofi_cn;_eofme_bt.prototype.amx=_eofme_bx;_eofme_bt.prototype.aml=_eofme_by;_eofme_bt.prototype.ana=_eofme_bz;_eofme_bt.prototype.be=_eofme_ca;_eofme_bt.prototype.amy=_eofme_cb;_eofme_bt.prototype.u=_eofme_cc;_eofme_bt.prototype.aog=_eofme_bi;_eofme_bt.prototype.al=_eofme_cd;_eofme_bt.prototype.ans=_eofme_ce;var eo_io=0;var eo_ip=1;var eo_iq=2;var eo_ir=3;function _eofme_cf(a){if(!a)a="";if(a.charAt(0)=='-'){this.aol=true;a=a.substr(1);}this.aom=a;this.aon=0;this.aoo=new Array();this.aop=new Array();var b=eo_io;for(var c=0;c')b=eo_ip;else if(d=='|')b=eo_io;else{this.aoo[this.aon]=d;this.aop[this.aon]=b;this.aon++;}}}function _eofme_cg(){return this.aon;}function _eofme_ch(a,b){var c=this.aop[a];if(c==eo_ir)return this.aoo[a];var d=String.fromCharCode(b);switch(this.aoo[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.aoq(_eofme_b(b),d,c);case'?':return this.aoq(_eofme_b(b)||(d==' '),d,c);case'A':return this.aoq(_eofme_a(b)||_eofme_b(b),d,c);case'a':return this.aoq(_eofme_a(b)||_eofme_b(b)||(d==' '),d,c);}return this.aoo[a];}function _eofme_ci(a){if(this.aop[a]==eo_ir)return this.aoo[a];switch(this.aoo[a]){case'0':case'9':case'#':case'L':case'?':case'A':case'a':return null;}return this.aoo[a];}function _eofme_cj(a,b){var c=this.aor(a,b);if(c){a++;var b;while(b=this.aos(a)){c+=b;a++;}}return c;}function _eofme_ck(a,b,c){if(a&&b){if(c==eo_ip)b=b.toUpperCase();else if(c==eo_iq)b=b.toLowerCase();return b;}return null;}function _eofme_cl(){return this.aol;}_eofme_cf.prototype.amg=_eofme_cg;_eofme_cf.prototype.aor=_eofme_ch;_eofme_cf.prototype.aot=_eofme_cj;_eofme_cf.prototype.aos=_eofme_ci;_eofme_cf.prototype.aoq=_eofme_ck;_eofme_cf.prototype.aou=_eofme_cl;function _eofme_cm(a,b,c){this.aom=new _eofme_cf(a);this.aoe=c;this.au=b;this.aoi=null;}function _eofme_cn(a){return this.aov(this.al(),a);}function _eofme_co(a){this.au=this.aov(a);this.amz();}function _eofme_cp(){return this.aom.amg();}function _eofme_cq(a){var b;var c=_eofu_cm(a);if(this.aoi==null)this.aoi="";var b=this.aoi.length;var d=this.aom.aot(b,c);if(d!=null){this.ank();this.aoi+=d;this.amz();return true;}return false;}function _eofme_cr(a){return this.aoi&&(this.aoi.length>=this.aom.amg())&&(a>=32)&&(a<128);}function _eofme_cs(){var a=this.aoi;if(a){this.ank();this.au=a;}this.aoi=null;}function _eofme_ct(){this.ank();if(!this.aoi&&this.au)this.aoi=this.au;if(this.aoi){this.aoi=this.aoi.substr(0,this.aoi.length-1);while(this.aoi){var a=this.aoi.length;var b=this.aom.aos(a-1);if(b)this.aoi=this.aoi.substr(0,this.aoi.length-1);else break;}if(this.aoi)return 2;else{this.au=null;return 3;}}return 1;}function _eofme_cu(){this.ank();this.aoi=null;return true;}function _eofme_cv(){var a=this.ano&&this.aoi?this.aoi:this.au;return a;}function _eofme_cw(a,b){var c="";if(a==null)a="";if(this.aom.aou()&&(a.lengththis.aom.amg())b.aow=a.substr(this.aom.amg());else b.aow="";b.aox=_eofme_cz(d,this.aom.amg(),false,' ');return c;}function _eofme_cy(){var a=this.amc();var b=new Object();b.aow=a;this.ant(this.aor(a,b));}_eofme_cm.prototype=new _eofme_ar();_eofme_cm.prototype.amc=_eofme_cn;_eofme_cm.prototype.anw=_eofme_co;_eofme_cm.prototype.amg=_eofme_cp;_eofme_cm.prototype.amq=_eofi_cn;_eofme_cm.prototype.aml=_eofme_cq;_eofme_cm.prototype.ana=_eofme_cr;_eofme_cm.prototype.be=_eofme_cs;_eofme_cm.prototype.amy=_eofme_ct;_eofme_cm.prototype.u=_eofme_cu;_eofme_cm.prototype.al=_eofme_cv;_eofme_cm.prototype.aov=_eofme_cw;_eofme_cm.prototype.aor=_eofme_cx;_eofme_cm.prototype.ans=_eofme_cy;function _eofme_cz(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_da(a,b){return _eofme_cz(a.toString(),b,true," ");}function _eofme_db(a){if(!a)a=window.event;if(!a)return false;var b=_eofu_cm(a);return a.shiftKey&&b==9;}function _eofme_dc(){eo_ik=-1;eo_il=-1;}function _eofme_dd(a){_eofme_dc();if(_eofme_db(a))eo_ik=_eofi_em();}function _eofme_de(a){_eofme_dc();if(_eofme_db(a))eo_il=_eofi_em();}function _eofme_df(){if((eo_ik>0)&&(eo_il<0))return true;if((eo_il>0)&&((_eofi_em()-eo_il)<200))return true;return false;}var eo_is=0;var eo_it=1;var eo_iu=2;var eo_iv=3;function _eofme_dg(a){this.adb(a[0]);if(a[1])this.alv=a[1].aba;else this.alv=new Array();for(var b=0;b0)this.aoe=this.aoe.substr(0,1);}function _eofme_dh(a){this.adw(a);this.alu=document.getElementById(this.c);if(!this.alu)return;this.ame=new _eofme_e(this.alu,null,null,this.alz);this.ame.anh();for(var b=0;bb.length)e=b.length;g=b.substr(0,e);d.aow=b.substr(e);}else{var h=b.indexOf('.');var i=h>=0?b.substr(0,h):b;var j=h>=0?b.substr(h+1):"";if(e>i.length)e=i.length;if(j.length>f)j=j.substr(0,f);g=i.substr(0,e)+"."+j;d.aow=b.substr(e+1+j.length);}if(!c){g=_eofme_d(a.getMaxValue(),g,a.getDecimals());a.setText(g);}return true;}function _eofme_ds(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.aow=b.substr(k.length);if(!d)a.setText(k);return true;}return false;}function _eofme_dt(a,b,c){if(a.indexOf(b)<0)return 0;a=a.substr(b.length);var d=this.aoz(a,c,true);d++;return d;}function _eofme_du(a,b,c,d){if(a.apf.aor(b,d)){if(!c)a.setText(d.aox);return true;}return false;}function _eofme_dv(){for(var a=0;athis.any)this.anx=this.any;this.au=null;if(b!=null){b=b.trim();if(b){this.au=parseFloat(b);if(isNaN(this.au))this.au=0;if(this.authis.any)this.au=this.any;}}}else if(this.f==eo_iu){if(f)f=f.split('|');else f=new Array();this.anz=f;this.au=null;if(!b)b="";for(var i=0;i