//********************************************************************************************************** // 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.19.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.abt=b)&&(d=0)break;}if(c>=0){if(!this.alt)this.aln.focus();if(this.amp((a.shiftKey&&(b==9))?-1:1,false))return true;}}if(_eofu_cl(b)||(b==eo_da)){switch(b){case eo_cw:this.amp(-1,true);break;case eo_cy:this.amp(1,true);break;case eo_cx:if(this.alt)this.alt.amq(1);this.alu();break;case eo_cz:if(this.alt)this.alt.amq(-1);this.alu();break;case eo_da:if(this.alt){var f=this.alt.amr();if(f&2){this.alt.ams();this.alu();}if(f&1){this.amp(-1,true);}}break;}return true;}if(b==eo_db){if(this.alt&&this.alt.u())this.alu();return true;}return false;}function _eofme_al(a){if(this.aln.eo_in)this.aln.eo_in(a);if(this.aln.readOnly)return;if(!this.amn()){if(this.amo(a))return false;}if(this.alt){this.als=null;if(!a)a=window.event;var b=_eofu_cm(a);if((b==9)||(b==27))return;if(this.alt.ame(a)){if(this.alt.amt(b))this.amp(1,false);this.alu();}}_eofi_du(this.aln,a);return false;}function _eofme_am(a){if(this.aln.readOnly)return;if(!this.alt){var b=_eofme_df();for(var c=0;c0){d++;if(d>=this.alo.length){if(b)d=0;else return false;}}else{d--;if(d<0){if(b)d=this.alo.length-1;else return false;}}var e=this.alo[d];if(e.amj())continue;this.aml(e);return true;}return false;}function _eofme_ap(){return this.alo;}function _eofme_aq(){for(var a=0;a=0){try{b.setSelectionRange(c,c+this.alz());}catch(e){}}}}this.anh=true;}function _eofme_av(){this.anh=false;this.be();}function _eofme_aw(){var a=0;for(var b=0;bh)h=a[i].length;}this.anu=h;this.anq=d;if(!d)this.anq=0;this.anr=e;if(e==null)this.anr=a.length-1;if(f&&(b==null))b=this.anq;if(bthis.anr)b=this.anr;this.anv=b;this.anw=c;this.anx=g;}function _eofme_bk(a){var b=this.anv;if(b!=null){if(b>this.anr)b=this.anr;if(b0)this.any(this.anq);else this.any(this.anr);}else{var b=this.anv+a;if((a>0)&&(b>this.anr)){if(this.ant)this.any(this.anq);else this.any(null);}else if((a<0)&&(b=0)||(this.anv!=null))this.anv=a;else this.anv=this.anr+a+1;if(this.anv>this.anr)this.anv=this.anr;if(this.anv0)this.au=this.anq;else this.au=this.anr;}else this.au+=a;if(a>0){if(this.au>this.anr)this.au=this.anq;}else{if(this.au=48)&&(c<=57))||((c==46)&&this.aoc)){this.and();if(this.aob==null)this.aob="";this.aob+=String.fromCharCode(c);if(this.aob.length>this.alz()){if(this.aoc)this.aob=this.aob.substr(0,this.alz());else this.aob=this.aob.substr(this.aob.length-this.alz());}this.ams();return true;}else return false;}function _eofme_bz(a){return this.aob&&(this.aob.length>=this.alz())&&(a>=32)&&(a<128);}function _eofme_ca(){var a=this.aob;if(a){a=parseFloat(a);if(athis.anr)a=this.anr;this.au=a;this.and();}this.aob=null;}function _eofme_cb(){this.and();if(!this.aob&&this.au)this.aob=this.au.toString();if(this.aob){this.aob=this.aob.substr(0,this.aob.length-1);if(this.aob)return 2;else{this.au=null;return 3;}}return 1;}function _eofme_cc(){this.and();this.aob=null;return true;}function _eofme_cd(){var a=this.anh&&this.aob?parseFloat(this.aob):this.au;if(a==null)return null;if(athis.anr)a=this.anr;return a;}function _eofme_ce(){var a=this.al();this.anm(!this.ant||(a!=null));}_eofme_bt.prototype=new _eofme_ar();_eofme_bt.prototype.alv=_eofme_bu;_eofme_bt.prototype.anp=_eofme_bv;_eofme_bt.prototype.alz=_eofme_bw;_eofme_bt.prototype.amj=_eofi_cn;_eofme_bt.prototype.amq=_eofme_bx;_eofme_bt.prototype.ame=_eofme_by;_eofme_bt.prototype.amt=_eofme_bz;_eofme_bt.prototype.be=_eofme_ca;_eofme_bt.prototype.amr=_eofme_cb;_eofme_bt.prototype.u=_eofme_cc;_eofme_bt.prototype.anz=_eofme_bi;_eofme_bt.prototype.al=_eofme_cd;_eofme_bt.prototype.anl=_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.aoe=true;a=a.substr(1);}this.aof=a;this.aog=0;this.aoh=new Array();this.aoi=new Array();var b=eo_io;for(var c=0;c')b=eo_ip;else if(d=='|')b=eo_io;else{this.aoh[this.aog]=d;this.aoi[this.aog]=b;this.aog++;}}}function _eofme_cg(){return this.aog;}function _eofme_ch(a,b){var c=this.aoi[a];if(c==eo_ir)return this.aoh[a];var d=String.fromCharCode(b);switch(this.aoh[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.aoj(_eofme_b(b),d,c);case'?':return this.aoj(_eofme_b(b)||(d==' '),d,c);case'A':return this.aoj(_eofme_a(b)||_eofme_b(b),d,c);case'a':return this.aoj(_eofme_a(b)||_eofme_b(b)||(d==' '),d,c);}return this.aoh[a];}function _eofme_ci(a){if(this.aoi[a]==eo_ir)return this.aoh[a];switch(this.aoh[a]){case'0':case'9':case'#':case'L':case'?':case'A':case'a':return null;}return this.aoh[a];}function _eofme_cj(a,b){var c=this.aok(a,b);if(c){a++;var b;while(b=this.aol(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.aoe;}_eofme_cf.prototype.alz=_eofme_cg;_eofme_cf.prototype.aok=_eofme_ch;_eofme_cf.prototype.aom=_eofme_cj;_eofme_cf.prototype.aol=_eofme_ci;_eofme_cf.prototype.aoj=_eofme_ck;_eofme_cf.prototype.aon=_eofme_cl;function _eofme_cm(a,b,c){this.aof=new _eofme_cf(a);this.anx=c;this.au=b;this.aob=null;}function _eofme_cn(a){return this.aoo(this.al(),a);}function _eofme_co(a){this.aob=this.aoo(a);this.ams();}function _eofme_cp(){return this.aof.alz();}function _eofme_cq(a){var b;var c=_eofu_cm(a);if(this.aob==null)this.aob="";var b=this.aob.length;var d=this.aof.aom(b,c);if(d!=null){this.and();this.aob+=d;this.ams();return true;}return false;}function _eofme_cr(a){return this.aob&&(this.aob.length>=this.aof.alz())&&(a>=32)&&(a<128);}function _eofme_cs(){var a=this.aob;if(a){this.and();this.au=a;}this.aob=null;}function _eofme_ct(){this.and();if(!this.aob&&this.au)this.aob=this.au;if(this.aob){this.aob=this.aob.substr(0,this.aob.length-1);while(this.aob){var a=this.aob.length;var b=this.aof.aol(a-1);if(b)this.aob=this.aob.substr(0,this.aob.length-1);else break;}if(this.aob)return 2;else{this.au=null;return 3;}}return 1;}function _eofme_cu(){this.and();this.aob=null;return true;}function _eofme_cv(){var a=this.anh&&this.aob?this.aob:this.au;return a;}function _eofme_cw(a,b){var c="";if(a==null)a="";if(this.aof.aon()&&(a.lengththis.aof.alz())b.aop=a.substr(0,this.aof.alz());else b.aop="";b.aoq=_eofme_cz(d,this.aof.alz(),false,' ');return c;}function _eofme_cy(){var a=this.alv();var b=new Object();b.aop=a;this.anm(this.aok(a,b));}_eofme_cm.prototype=new _eofme_ar();_eofme_cm.prototype.alv=_eofme_cn;_eofme_cm.prototype.anp=_eofme_co;_eofme_cm.prototype.alz=_eofme_cp;_eofme_cm.prototype.amj=_eofi_cn;_eofme_cm.prototype.ame=_eofme_cq;_eofme_cm.prototype.amt=_eofme_cr;_eofme_cm.prototype.be=_eofme_cs;_eofme_cm.prototype.amr=_eofme_ct;_eofme_cm.prototype.u=_eofme_cu;_eofme_cm.prototype.al=_eofme_cv;_eofme_cm.prototype.aoo=_eofme_cw;_eofme_cm.prototype.aok=_eofme_cx;_eofme_cm.prototype.anl=_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_el();}function _eofme_de(a){_eofme_dc();if(_eofme_db(a))eo_il=_eofi_el();}function _eofme_df(){if((eo_ik>0)&&(eo_il<0))return true;if((eo_il>0)&&((_eofi_el()-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.acv(a[0]);if(a[1])this.alo=a[1].aau;else this.alo=new Array();for(var b=0;b0)this.anx=this.anx.substr(0,1);}function _eofme_dh(a){this.adq(a);this.aln=document.getElementById(this.c);if(!this.aln)return;this.alx=new _eofme_e(this.aln,null,null,this.als);this.alx.ana();for(var b=0;bb.Length)e=b.Length;g=b.substr(0,e);d.aop=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.aop=b.Substring(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.aop=b.substr(0,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(0,b.length);var d=this.aos(a,c,true);d++;return d;}function _eofme_du(a,b,c){var d=new Object();d.aop=b;if(a.aoy.aok(b,d)){if(!c)a.setText(d.aoq);return true;}return false;}function _eofme_dv(){for(var a=0;athis.anr)this.anq=this.anr;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.anr)this.au=this.anr;}}}else if(this.f==eo_iu){if(f)f=f.split('|');else f=new Array();this.ans=f;this.au=null;if(!b)b="";for(var i=0;i