//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2006-2024 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 17.0.40.0 //********************************************************************************************************** EO1740.g.aqd=0;EO1740.g.aqe=1;EO1740.g.aqf=2;EO1740.g.aqg=3;EO1740.g.aqh=4;EO1740.g.aqi=5;EO1740.g.aqj=100000;if(EO1740.f.acs())EO1740.g.aqj=EO1740.g.aqj*100;EO1740.f.abrr=function(a,b,c,d){this.abnl=a;this.abnm=b;this.abnn=c;this.abno=d;};EO1740.f.abrs=function(a){var b=a;if(!b)b="{posted_file_name} - {posted_file_type} ({posted_file_size}bytes)";b=b.replace(/\{posted_file_name\}/g,this.abnm);b=b.replace(/\{posted_file_type\}/g,this.abnn);b=b.replace(/\{posted_file_size\}/g,this.abno);var c=this.abno/1024/1024;if(c<=0.01)c=0.01;else if(c<10)c=Math.ceil(c*100)/100;else c=Math.ceil(c*10)/10;b=b.replace(/\{posted_file_size_mb\}/g,c);var d=Math.ceil(this.abno/1024);if(d==0)d=1;b=b.replace(/\{posted_file_size_kb\}/g,d);return b;};EO1740.f.abrt=function(){return this.abnm;};EO1740.f.abru=function(){return this.abnn;};EO1740.f.abrv=function(){return this.abno;};EO1740.f.abrr.prototype.bbt=EO1740.f.abrs;EO1740.f.abrr.prototype.getClientFileName=EO1740.f.abrt;EO1740.f.abrr.prototype.getContentType=EO1740.f.abru;EO1740.f.abrr.prototype.getFileSize=EO1740.f.abrv;EO1740.f.abrw=function(a){if(a)this.abnp(a);};EO1740.f.abrx=function(a){this.afy(a[0]);this.abnq(a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23]);};EO1740.f.abry=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){this.aaam=a==null?1:a;this.abnr=b;this.amh=EO1740.g.aqd;this.abns=c;this.asn=e;this.abnt=d;this.abnu=f;this.abnv=g;this.abnw=h;this.abnx=l;this.bbw=i;this.abny=j;this.abnz=o;this.aboa=new Array();if(k){for(var w=0;w"+""+"";c.write(d);c.close();return c;};EO1740.f.absg=function(){if(!EO1740.g.aqm&&!EO1740.g.aqk){EO1740.f.abse(document);}if(this.abod&&!this.abos){this.abos=EO1740.f.acl(this.abod);if(!this.abos)this.acx("StartToolBarButton is invalid.");else{var a=this;this.abot=this.abos.bcx;this.abos.bcx=function(b,c){return a.abou(b,c);};this.abov=this.abos.getItem(this.aboe);if(!this.abov)this.acx("ToolBarItem specified by StartToolBarButton does not exist.");else{if(this.abov.apw)this.abom();else{var d=this.abos.ael;this.abos.ael=function(){if(d)d.apply(this);a.abom();}}}}}if(this.abof&&!this.abow){this.abow=EO1740.f.acl(this.abof);if(!this.abow)this.acx("StopToolBarButton is invalid.");else{this.abox=this.abow.getItem(this.abog);if(!this.abox)this.acx("ToolBarItem specified by StopToolBarButton does not exist.");}}if(!this.aboy){this.abom();this.aboy=true;}this.aboz();};EO1740.f.absh=function(a,b){if(b==this.abov)return false;if(b==this.abox){this.cancel();return false;}var c=this.abot;if(c){if(typeof(c)=="string")c=window[c];if(c)return c(a,b);}};EO1740.f.absi=function(){return this.aii?this.aii:this.aaft;};EO1740.f.absj=function(){this.abok();this.aavq();EO1740.f.akz(this,EO1740.g.at);EO1740.f.akz(this,EO1740.g.au);EO1740.f.akz(this,EO1740.g.av);EO1740.f.akz(this,EO1740.g.aw);EO1740.f.akz(this,EO1740.g.ax);EO1740.f.akz(this,EO1740.g.ay);EO1740.f.akz(this,EO1740.g.az);EO1740.f.akz(this,EO1740.g.bc);if(EO1740.f.r()=="IE")EO1740.f.akz(this,EO1740.g.ba);if(this.abon){this.abon.eo_aby=null;this.abon.onclick=null;}if(this.asi){this.asi.eo_aby=null;this.asi.onclick=null;}for(var a=0;a";e=document.getElementById(g);}else{e=document.createElement("INPUT");e.type="file";e.id=e.name=g;if(this.abov&&(EO1740.f.r()=="MZ"))e.title=this.abov.abpg();}EO1740.f.ao(this.abpb,e);EO1740.f.ao(this.abpc,c);EO1740.f.ao(this.abpd,f);if(b){if(EO1740.f.r()=="IE"){if(EO1740.f.ac(document))b.rows[0].cells[1].style.paddingLeft="8px";}else if((EO1740.f.r()=="MZ")&&(EO1740.f.u()<22)){var h=document.createElement("INPUT");h.type="file";h.style.position="absolute";h.style.left="-3000px";h.style.top="0px";h.size=10;this.abph=h;d.appendChild(h);b.rows[0].cells[1].style.paddingLeft="8px";}else{e.style.width="100%";b.rows[0].cells[1].style.paddingLeft="8px";}e.eo_abz=c;c.value="";e.eo_aca=this;if(EO1740.f.r()!="SA"){d.appendChild(e);c.style.width="100%";}e.style.display="block";if((EO1740.f.r()=="IE")||(EO1740.f.r()=="MZ")||(EO1740.f.r()=="SA")){b.style.display="block";EO1740.f.apd(e,1);}else{b.style.display="none";d.style.position="";}}else{EO1740.f.apd(e,1);this.ablh=e;e.onmouseup=function(){EO1740.f.acq(function(){EO1740.f.agh(document.body);},10);};if(EO1740.f.r()!="SA")d.appendChild(e);}EO1740.f.akx(this,EO1740.g.av,100);}this.abor();};EO1740.f.absl=function(){if(!this.abpb)return;var a=this.abpa;for(var b=0;b0){c=true;a--;}}var d=this.abpb[b];var e=this.abpc[b];var f=this.abpd[b];if(c){d.disabled=this.agh;if(e)e.disabled=this.agh;if(f)f.disabled=this.agh;if(this.abov)this.abov.abpi(this.agh);}else{d.disabled=true;if(e)e.disabled=true;if(f)f.disabled=true;if(this.abov)this.abov.abpi(false);}}};EO1740.f.absm=function(){if(!this.abpb||!this.abpb.length)return;for(var a=0;a0)&&(d=0)&&(d>this.abpq))d=this.abpq;this.abpr=d;if(this.abpt){this.abpt.aavq(d);EO1740.f.ao(this.abpp,this.abpt);this.abpt=null;}if((this.abpq>0)&&(this.abpr>=0)){this.abps();this.abpt=new EO1740.f.abud(this.abpr);}if(this.abpq>=0){if(this.abpr<0){switch(this.abpr){case-1:this.adt("unknown_error","An unknown error has occurred.");break;case-2:this.adt("max_size_exceeded","The size of the submitted data exceeded the maximum allowed size.");break;case-3:break;case-4:this.adt("aborted","The server has aborted the uploading process because httpRuntime -> executionTimeout has been met. Please modify your web.config to give it a larger value.");break;case-5:this.adt("module_required","EO.Web.Runtime must be added into your web.config's httpModules section because another HttpModule (Usually FormsAuthenticationModule) fetched the upload data before it reaches AJAXUploader. Please see \"Using AJAXUploader\" in the help file for details.");break;}this.aavq();this.abom();return true;}else if(this.abpr>=this.abpq){this.amh=EO1740.g.aqi;EO1740.f.akx(this,EO1740.g.bb,1);return true;}EO1740.f.akx(this,EO1740.g.aw,EO1740.g.aqj);}var e=0;if(this.abpo!=null)e=this.abpo.aa();if(e<200)EO1740.f.akx(this,EO1740.g.at,20);else if(e<1000)EO1740.f.akx(this,EO1740.g.at,100);else if(e<3000)EO1740.f.akx(this,EO1740.g.at,300);else EO1740.f.akx(this,EO1740.g.at,1000);}else if(this.amh==EO1740.g.aqg){if(!this.abpx(b,"DeleteFile"))return;this.amh=EO1740.g.aqd;this.abqb(EO1740.f.bi(b,"PostedFiles"));if(this.aboc)this.abom();this.aex(EO1740.g.az);}else if(this.amh==EO1740.g.aqh){this.aavq();this.abom();}else if(this.amh==EO1740.g.aqi){this.abqc=2;this.aavq();this.abqb(EO1740.f.bi(b,"PostedFiles"));this.abom();EO1740.f.akx(this,EO1740.g.ay,0);}return true;}return false;};EO1740.f.absv=function(a){if(a==EO1740.g.au){var b=new EO1740.f.aeo("upload");b.abw(this.aaf,new EO1740.f.aeo(this.abnr));b.abw("s",new EO1740.f.aeo(this.abni));if(EO1740.g.aqm){var c=EO1740.f.absf();EO1740.f.abse(c);}EO1740.g.aql.innerHTML="";for(var d=0;dj)){if(EO1740.f.r()=="SA")this.abpe.style.clip=EO1740.f.amt(null,j,null,null);else this.abpe.style.clip=EO1740.f.amt(null,null,null,k-j);}if(this.ablh&&this.ablh.eo_acc)EO1740.f.agh(document.body);}}else if(a==EO1740.g.ba){for(var d=0;db){this.abph.size=this.abph.size-1;c=EO1740.f.akd(this.abph);}c=this.abph.size;for(var a=0;a0)&&(b>0)&&this.abpp&&this.abpp.length){var d=this.abpp[this.abpp.length-1];c=d.abqm(a);}if((a>0)&&(b>0)){if(c&&this.abpn&&(c0)f(this,a,c);}catch(e){}}}};EO1740.f.abta=function(a,b,c,d,e,f,g){if(d){if(c>0){var h=d.getMaximum()-d.getMinimum();var i=Math.round(c/a*h+d.getMinimum());d.setValue(i)}else d.setValue(d.getMinimum());}if(e){if(c>0){var j=f;if(!j)j="Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";j=j.replace(/\{transferred\}/g,c);j=j.replace(/\{total\}/g,a);j=j.replace(/\{percentage\}/g,this.getPercentage());j=j.replace(/\{current_file_name\}/g,this.getCurrentFileName());j=j.replace(/\{total_file_count\}/g,this.getTotalFileCount());j=j.replace(/\{transferred_file_count\}/g,this.getTransferredFileCount());j=j.replace(/\{elapsed_seconds\}/g,this.getElapsedSeconds());j=j.replace(/\{estimated_remaining_seconds\}/g,this.getEstimiatedSecondsRemaining());e.innerHTML=j;}else{e.innerHTML="";}}if(g)g.disabled=!(c>0)||(b>=a);};EO1740.f.abtb=function(){EO1740.f.akz(this,EO1740.g.aw);EO1740.f.akz(this,EO1740.g.at);if(this.amh!=EO1740.g.aqd){if(this.abni){var a=new EO1740.f.aeo("cancel");a.abw(this.aaf,new EO1740.f.aeo(this.abnr));a.abw("s",new EO1740.f.aeo(this.abni));this.abpu(a);this.amh=EO1740.g.aqh;}}this.abpq=-1;this.abpr=-1;this.abpp=null;this.abps();if(!this.abni)this.aavq();this.abni=null;this.abql();};EO1740.f.abtc=function(){if(this.abqc){var a=this.abqc==2?this.abnu:this.asn;this.abqc=0;if(a){a=window[a];if(a)a(this);}}};EO1740.f.abtd=function(){if(this.abpn>0)return Math.round(this.abpn*100/this.abpq);else if(this.abpr>0)return Math.round(this.abpr*100/this.abpq);else return null;};EO1740.f.abte=function(){if(this.abpq<0)return null;return this.abpq;};EO1740.f.abtf=function(){if(this.abpr<0)return null;if(this.abpn>0)return this.abpn;return this.abpr;};EO1740.f.abtg=function(){if(this.abpo!=null)return Math.round(this.abpo.aa()/1000);else return null;};EO1740.f.abth=function(){if(!this.abpp)return 0;var a=this.abpp.length-3;if(a<0)a=0;var b=this.abpp.length-1;var c=this.abpp[a].abqp(this.abpp[b]);return c;};EO1740.f.abti=function(){if(!this.abpp||!this.abpq)return null;var a=this.getSpeed();if(a==0)a=1;var b=this.getTotalBytes();var c=this.getTransferredBytes();var d=b-c;if(d<0)d=0;return Math.round(d/a);};EO1740.f.abtj=function(){if(this.amh!=EO1740.g.aqd)return;if(this.aboo){for(var a=0;a=k.length)){var l=i.substring(i.length-k.length);if(l==k){h=true;break;}}}if(!h){var m=i;var n=m.lastIndexOf('/');if(n<0)n=m.lastIndexOf('\\');if(n>0)m=m.substr(n+1);this.adt("extension_not_allowed","File '"+m+"' has an extension that is not allowed.");return b;}}g+=";"+f[c];}if(this.abqi!=g){this.abqi=g;this.abqq=null;}if((e>0)&&a&&this.aboj&&(this.abqq!=g)){this.abqq=g;var o=window[this.aboj];if(o&&(o(this,f)==false))return b;}return e;};EO1740.f.abto=function(){var a=null;if(this.abnx){for(var b=0;b"+k+"
";h+=k;}this.aboq.innerHTML=h;}if(this.aboo){if(this.aboa.length)this.aboo.style.display="block";else this.aboo.style.display="none";}if(this.axv){var l=window[this.axv];if(l)l(this);}};EO1740.f.abtr=function(){return this.abqa;};EO1740.f.abts=function(){return this.abpy;};EO1740.f.abtt=function(){return this.abpz;};EO1740.f.abtu=function(){if(!this.abob)return null;var a="";for(var b=0;b0)a+="|";a+=this.abob[b];}return a;};EO1740.f.abtv=function(a){if(a){a=a.toLowerCase();this.abob=a.split("|");this.abqr=a;}else{this.abob=null;this.abqr=" ";}};EO1740.f.abtw=function(){return this.aboa;};EO1740.f.abtx=function(){this.abqc=1;if(EO1740.g.s)this.abqs();if(this.abon)this.abon.disabled=true;this.aboz();};EO1740.f.abty=function(a,b){this.abqg=true;this.adv(a,b);};EO1740.f.abtz=function(){if(this.aboa&&this.aboa.length)return this.aboa.length.toString();return"";};EO1740.f.abua=function(){var a=this.abpj(true);return a==0;};EO1740.f.abub=function(){return this.amh!=EO1740.g.aqd;};EO1740.f.abuc=function(a){this.aboi=a;this.aboz();};EO1740.f.abrw.prototype=new EO1740.f.anx();EO1740.f.abrw.prototype.abnp=EO1740.f.abrx;EO1740.f.abrw.prototype.abnq=EO1740.f.abry;EO1740.f.abrw.prototype.abnd=EO1740.f.abrz;EO1740.f.abrw.prototype.abh=EO1740.f.absg;EO1740.f.abrw.prototype.aek=EO1740.f.absd;EO1740.f.abrw.prototype.abqt=EO1740.f.absd;EO1740.f.abrw.prototype.act=EO1740.f.absj;EO1740.f.abrw.prototype.abom=EO1740.f.absk;EO1740.f.abrw.prototype.abqs=EO1740.f.absp;EO1740.f.abrw.prototype.aex=EO1740.f.absv;EO1740.f.abrw.prototype.abpv=EO1740.f.abss;EO1740.f.abrw.prototype.abpu=EO1740.f.absr;EO1740.f.abrw.prototype.abpw=EO1740.f.absu;EO1740.f.abrw.prototype.abpx=EO1740.f.abst;EO1740.f.abrw.prototype.abqe=EO1740.f.absw;EO1740.f.abrw.prototype.aavq=EO1740.f.absx;EO1740.f.abrw.prototype.abql=EO1740.f.abtc;EO1740.f.abrw.prototype.abps=EO1740.f.absz;EO1740.f.abrw.prototype.abqn=EO1740.f.abta;EO1740.f.abrw.prototype.abok=EO1740.f.abtb;EO1740.f.abrw.prototype.abol=EO1740.f.abtj;EO1740.f.abrw.prototype.abpl=EO1740.f.abtk;EO1740.f.abrw.prototype.abnf=EO1740.f.abtl;EO1740.f.abrw.prototype.abpj=EO1740.f.abtn;EO1740.f.abrw.prototype.acb=EO1740.f.abtp;EO1740.f.abrw.prototype.aca=EO1740.f.afn;EO1740.f.abrw.prototype.abqb=EO1740.f.abtq;EO1740.f.abrw.prototype.abqd=EO1740.f.abto;EO1740.f.abrw.prototype.aam=EO1740.f.absi;EO1740.f.abrw.prototype.adt=EO1740.f.abty;EO1740.f.abrw.prototype.av=EO1740.f.abtz;EO1740.f.abrw.prototype.aboz=EO1740.f.absy;EO1740.f.abrw.prototype.abou=EO1740.f.absh;EO1740.f.abrw.prototype.abqu=EO1740.f.abuc;EO1740.f.abrw.prototype.abqj=EO1740.f.absm;EO1740.f.abrw.prototype.abor=EO1740.f.absl;EO1740.f.abrw.prototype.getPercentage=EO1740.f.abtd;EO1740.f.abrw.prototype.getTotalBytes=EO1740.f.abte;EO1740.f.abrw.prototype.getTransferredBytes=EO1740.f.abtf;EO1740.f.abrw.prototype.getElapsedSeconds=EO1740.f.abtg;EO1740.f.abrw.prototype.getEstimiatedSecondsRemaining=EO1740.f.abti;EO1740.f.abrw.prototype.getSpeed=EO1740.f.abth;EO1740.f.abrw.prototype.getCurrentFileName=EO1740.f.abtr;EO1740.f.abrw.prototype.getTotalFileCount=EO1740.f.abts;EO1740.f.abrw.prototype.getTransferredFileCount=EO1740.f.abtt;EO1740.f.abrw.prototype.getAllowedExtension=EO1740.f.abtu;EO1740.f.abrw.prototype.setAllowedExtension=EO1740.f.abtv;EO1740.f.abrw.prototype.getPostedFiles=EO1740.f.abtw;EO1740.f.abrw.prototype.cancel=EO1740.f.abtb;EO1740.f.abrw.prototype.upload=EO1740.f.abtx;EO1740.f.abrw.prototype.isEmpty=EO1740.f.abua;EO1740.f.abrw.prototype.isRunning=EO1740.f.abub;EO1740.f.abud=function(a){this.abpo=new EO1740.f.aaq();this.abqv=a?a:0;};EO1740.f.abue=function(a){this.abqw=new EO1740.f.aaq();this.abqx=a;};EO1740.f.abuf=function(a){var b=a.abqx-this.abqv;var c=EO1740.f.aar(this.abpo.av(),a.abqw.av());c=c/1000;var d=Math.round(b/c);return d;};EO1740.f.abug=function(a){var b=this.abpo;var c=this.abqw;var d=new EO1740.f.aaq();var e=EO1740.f.aar(b.av(),c.av());var f=EO1740.f.aar(c.av(),d.av());if(e==0)return this.abqx;if(f>EO1740.g.aqj)f=EO1740.g.aqj;var g=(this.abqx-this.abqv)*(e+f)/e+this.abqv;g=Math.round(g);if(g>=a)g=a-1;return g;};EO1740.f.abud.prototype.aavq=EO1740.f.abue;EO1740.f.abud.prototype.abqp=EO1740.f.abuf;EO1740.f.abud.prototype.abqm=EO1740.f.abug;EO1740.f.abuh=function(a){if(a)this.abqy(a);};EO1740.f.abui=function(a){this.arf(a[0]);this.abqz(a[1],a[2]);};EO1740.f.abuj=function(a){this.abnv=a!=null?a:"Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";};EO1740.f.abuk=function(a,b){this.avz(a,b);this.abop=document.getElementById(this.aaf+"_pt");if(this.asy)this.abqo=EO1740.f.acl(this.asy+"_ProgressBar");if(!this.abqo&&this.asz)this.abqo=EO1740.f.acl(this.asz+"_ProgressBar");if(this.asy)this.asi=document.getElementById(this.asy+"_CancelButton");if(!this.asi&&this.asz)this.asi=document.getElementById(this.asz+"_CancelButton");if(this.asi){this.asi.eo_bf=this;this.asi.onclick=EO1740.f.abum;EO1740.f.ait(this.asi);}};EO1740.f.abul=function(){this.awa();if(this.asi){this.asi.eo_bf=null;this.asi.onclick=null;}};EO1740.f.abum=function(a){var b=this.eo_bf;if(b){b.end();b.abpm.abok();}EO1740.f.ahr(a);return false;};function fx_UploaderProgressDialog_OnVeilClick(a){if(this.abpm)this.abpm.abnd();};EO1740.f.abuh.prototype=new EO1740.f.bak();EO1740.f.abuh.prototype.abqy=EO1740.f.abui;EO1740.f.abuh.prototype.abqz=EO1740.f.abuj;EO1740.f.abuh.prototype.aek=EO1740.f.abuk;EO1740.f.abuh.prototype.act=EO1740.f.abul;EO1740.f.abuh.prototype.aup=fx_UploaderProgressDialog_OnVeilClick;EO1740.g.d.j("up");