//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2006-2024 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 18.1.15.0 //********************************************************************************************************** EO18115.g.aqd=0;EO18115.g.aqe=1;EO18115.g.aqf=2;EO18115.g.aqg=3;EO18115.g.aqh=4;EO18115.g.aqi=5;EO18115.g.aqj=100000;if(EO18115.f.act())EO18115.g.aqj=EO18115.g.aqj*100;EO18115.f.abrs=function(a,b,c,d){this.abnn=a;this.abno=b;this.abnp=c;this.abnq=d;};EO18115.f.abrt=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.abno);b=b.replace(/\{posted_file_type\}/g,this.abnp);b=b.replace(/\{posted_file_size\}/g,this.abnq);var c=this.abnq/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.abnq/1024);if(d==0)d=1;b=b.replace(/\{posted_file_size_kb\}/g,d);return b;};EO18115.f.abru=function(){return this.abno;};EO18115.f.abrv=function(){return this.abnp;};EO18115.f.abrw=function(){return this.abnq;};EO18115.f.abrs.prototype.bbu=EO18115.f.abrt;EO18115.f.abrs.prototype.getClientFileName=EO18115.f.abru;EO18115.f.abrs.prototype.getContentType=EO18115.f.abrv;EO18115.f.abrs.prototype.getFileSize=EO18115.f.abrw;EO18115.f.abrx=function(a){if(a)this.abnr(a);};EO18115.f.abry=function(a){this.afz(a[0]);this.abns(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]);};EO18115.f.abrz=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){this.aaan=a==null?1:a;this.abnt=b;this.ami=EO18115.g.aqd;this.abnu=c;this.aso=e;this.abnv=d;this.abnw=f;this.abnx=g;this.abny=h;this.abnz=l;this.bbx=i;this.aboa=j;this.abob=o;this.aboc=new Array();if(k){for(var w=0;w"+""+"";c.write(d);c.close();return c;};EO18115.f.absh=function(){if(!EO18115.g.aqm&&!EO18115.g.aqk){EO18115.f.absf(document);}if(this.abof&&!this.abou){this.abou=EO18115.f.acm(this.abof);if(!this.abou)this.acy("StartToolBarButton is invalid.");else{var a=this;this.abov=this.abou.bcy;this.abou.bcy=function(b,c){return a.abow(b,c);};this.abox=this.abou.getItem(this.abog);if(!this.abox)this.acy("ToolBarItem specified by StartToolBarButton does not exist.");else{if(this.abox.apx)this.aboo();else{var d=this.abou.aem;this.abou.aem=function(){if(d)d.apply(this);a.aboo();}}}}}if(this.aboh&&!this.aboy){this.aboy=EO18115.f.acm(this.aboh);if(!this.aboy)this.acy("StopToolBarButton is invalid.");else{this.aboz=this.aboy.getItem(this.aboi);if(!this.aboz)this.acy("ToolBarItem specified by StopToolBarButton does not exist.");}}if(!this.abpa){this.aboo();this.abpa=true;}this.abpb();};EO18115.f.absi=function(a,b){if(b==this.abox)return false;if(b==this.aboz){this.cancel();return false;}var c=this.abov;if(c){if(typeof(c)=="string")c=window[c];if(c)return c(a,b);}};EO18115.f.absj=function(){return this.aij?this.aij:this.aafu;};EO18115.f.absk=function(){this.abom();this.aavs();EO18115.f.ala(this,EO18115.g.at);EO18115.f.ala(this,EO18115.g.au);EO18115.f.ala(this,EO18115.g.av);EO18115.f.ala(this,EO18115.g.aw);EO18115.f.ala(this,EO18115.g.ax);EO18115.f.ala(this,EO18115.g.ay);EO18115.f.ala(this,EO18115.g.az);EO18115.f.ala(this,EO18115.g.bc);if(EO18115.f.r()=="IE")EO18115.f.ala(this,EO18115.g.ba);if(this.abop){this.abop.eo_aby=null;this.abop.onclick=null;}if(this.asj){this.asj.eo_aby=null;this.asj.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.abox&&(EO18115.f.r()=="MZ"))e.title=this.abox.abpi();}EO18115.f.ap(this.abpd,e);EO18115.f.ap(this.abpe,c);EO18115.f.ap(this.abpf,f);if(b){if(EO18115.f.r()=="IE"){if(EO18115.f.ad(document))b.rows[0].cells[1].style.paddingLeft="8px";}else if((EO18115.f.r()=="MZ")&&(EO18115.f.v()<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.abpj=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(EO18115.f.r()!="SA"){d.appendChild(e);c.style.width="100%";}e.style.display="block";if((EO18115.f.r()=="IE")||(EO18115.f.r()=="MZ")||(EO18115.f.r()=="SA")){b.style.display="block";EO18115.f.ape(e,1);}else{b.style.display="none";d.style.position="";}}else{EO18115.f.ape(e,1);this.ablj=e;e.onmouseup=function(){EO18115.f.acr(function(){EO18115.f.agi(document.body);},10);};if(EO18115.f.r()!="SA")d.appendChild(e);}EO18115.f.aky(this,EO18115.g.av,100);}this.abot();};EO18115.f.absm=function(){if(!this.abpd)return;var a=this.abpc;for(var b=0;b0){c=true;a--;}}var d=this.abpd[b];var e=this.abpe[b];var f=this.abpf[b];if(c){d.disabled=this.agi;if(e)e.disabled=this.agi;if(f)f.disabled=this.agi;if(this.abox)this.abox.abpk(this.agi);}else{d.disabled=true;if(e)e.disabled=true;if(f)f.disabled=true;if(this.abox)this.abox.abpk(false);}}};EO18115.f.absn=function(){if(!this.abpd||!this.abpd.length)return;for(var a=0;a0)&&(d=0)&&(d>this.abps))d=this.abps;this.abpt=d;if(this.abpv){this.abpv.aavs(d);EO18115.f.ap(this.abpr,this.abpv);this.abpv=null;}if((this.abps>0)&&(this.abpt>=0)){this.abpu();this.abpv=new EO18115.f.abue(this.abpt);}if(this.abps>=0){if(this.abpt<0){switch(this.abpt){case-1:this.adu("unknown_error","An unknown error has occurred.");break;case-2:this.adu("max_size_exceeded","The size of the submitted data exceeded the maximum allowed size.");break;case-3:break;case-4:this.adu("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.adu("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.aavs();this.aboo();return true;}else if(this.abpt>=this.abps){this.ami=EO18115.g.aqi;EO18115.f.aky(this,EO18115.g.bb,1);return true;}EO18115.f.aky(this,EO18115.g.aw,EO18115.g.aqj);}var e=0;if(this.abpq!=null)e=this.abpq.ab();if(e<200)EO18115.f.aky(this,EO18115.g.at,20);else if(e<1000)EO18115.f.aky(this,EO18115.g.at,100);else if(e<3000)EO18115.f.aky(this,EO18115.g.at,300);else EO18115.f.aky(this,EO18115.g.at,1000);}else if(this.ami==EO18115.g.aqg){if(!this.abpz(b,"DeleteFile"))return;this.ami=EO18115.g.aqd;this.abqd(EO18115.f.bj(b,"PostedFiles"));if(this.aboe)this.aboo();this.aey(EO18115.g.az);}else if(this.ami==EO18115.g.aqh){this.aavs();this.aboo();}else if(this.ami==EO18115.g.aqi){this.abqe=2;this.aavs();this.abqd(EO18115.f.bj(b,"PostedFiles"));this.aboo();EO18115.f.aky(this,EO18115.g.ay,0);}return true;}return false;};EO18115.f.absw=function(a){if(a==EO18115.g.au){var b=new EO18115.f.aep("upload");b.abx(this.aag,new EO18115.f.aep(this.abnt));b.abx("s",new EO18115.f.aep(this.abnk));if(EO18115.g.aqm){var c=EO18115.f.absg();EO18115.f.absf(c);}EO18115.g.aql.innerHTML="";for(var d=0;dj)){if(EO18115.f.r()=="SA")this.abpg.style.clip=EO18115.f.amu(null,j,null,null);else this.abpg.style.clip=EO18115.f.amu(null,null,null,k-j);}if(this.ablj&&this.ablj.eo_acc)EO18115.f.agi(document.body);}}else if(a==EO18115.g.ba){for(var d=0;db){this.abpj.size=this.abpj.size-1;c=EO18115.f.ake(this.abpj);}c=this.abpj.size;for(var a=0;a0)&&(b>0)&&this.abpr&&this.abpr.length){var d=this.abpr[this.abpr.length-1];c=d.abqo(a);}if((a>0)&&(b>0)){if(c&&this.abpp&&(c0)f(this,a,c);}catch(e){}}}};EO18115.f.abtb=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);};EO18115.f.abtc=function(){EO18115.f.ala(this,EO18115.g.aw);EO18115.f.ala(this,EO18115.g.at);if(this.ami!=EO18115.g.aqd){if(this.abnk){var a=new EO18115.f.aep("cancel");a.abx(this.aag,new EO18115.f.aep(this.abnt));a.abx("s",new EO18115.f.aep(this.abnk));this.abpw(a);this.ami=EO18115.g.aqh;}}this.abps=-1;this.abpt=-1;this.abpr=null;this.abpu();if(!this.abnk)this.aavs();this.abnk=null;this.abqn();};EO18115.f.abtd=function(){if(this.abqe){var a=this.abqe==2?this.abnw:this.aso;this.abqe=0;if(a){a=window[a];if(a)a(this);}}};EO18115.f.abte=function(){if(this.abpp>0)return Math.round(this.abpp*100/this.abps);else if(this.abpt>0)return Math.round(this.abpt*100/this.abps);else return null;};EO18115.f.abtf=function(){if(this.abps<0)return null;return this.abps;};EO18115.f.abtg=function(){if(this.abpt<0)return null;if(this.abpp>0)return this.abpp;return this.abpt;};EO18115.f.abth=function(){if(this.abpq!=null)return Math.round(this.abpq.ab()/1000);else return null;};EO18115.f.abti=function(){if(!this.abpr)return 0;var a=this.abpr.length-3;if(a<0)a=0;var b=this.abpr.length-1;var c=this.abpr[a].abqr(this.abpr[b]);return c;};EO18115.f.abtj=function(){if(!this.abpr||!this.abps)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);};EO18115.f.abtk=function(){if(this.ami!=EO18115.g.aqd)return;if(this.aboq){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.adu("extension_not_allowed","File '"+m+"' has an extension that is not allowed.");return b;}}g+=";"+f[c];}if(this.abqk!=g){this.abqk=g;this.abqs=null;}if((e>0)&&a&&this.abol&&(this.abqs!=g)){this.abqs=g;var o=window[this.abol];if(o&&(o(this,f)==false))return b;}return e;};EO18115.f.abtp=function(){var a=null;if(this.abnz){for(var b=0;b"+k+"
";h+=k;}this.abos.innerHTML=h;}if(this.aboq){if(this.aboc.length)this.aboq.style.display="block";else this.aboq.style.display="none";}if(this.axw){var l=window[this.axw];if(l)l(this);}};EO18115.f.abts=function(){return this.abqc;};EO18115.f.abtt=function(){return this.abqa;};EO18115.f.abtu=function(){return this.abqb;};EO18115.f.abtv=function(){if(!this.abod)return null;var a="";for(var b=0;b0)a+="|";a+=this.abod[b];}return a;};EO18115.f.abtw=function(a){if(a){a=a.toLowerCase();this.abod=a.split("|");this.abqt=a;}else{this.abod=null;this.abqt=" ";}};EO18115.f.abtx=function(){return this.aboc;};EO18115.f.abty=function(){this.abqe=1;if(EO18115.g.s)this.abqu();if(this.abop)this.abop.disabled=true;this.abpb();};EO18115.f.abtz=function(a,b){this.abqi=true;this.adw(a,b);};EO18115.f.abua=function(){if(this.aboc&&this.aboc.length)return this.aboc.length.toString();return"";};EO18115.f.abub=function(){var a=this.abpl(true);return a==0;};EO18115.f.abuc=function(){return this.ami!=EO18115.g.aqd;};EO18115.f.abud=function(a){this.abok=a;this.abpb();};EO18115.f.abrx.prototype=new EO18115.f.any();EO18115.f.abrx.prototype.abnr=EO18115.f.abry;EO18115.f.abrx.prototype.abns=EO18115.f.abrz;EO18115.f.abrx.prototype.abnf=EO18115.f.absa;EO18115.f.abrx.prototype.abi=EO18115.f.absh;EO18115.f.abrx.prototype.ael=EO18115.f.abse;EO18115.f.abrx.prototype.abqv=EO18115.f.abse;EO18115.f.abrx.prototype.acu=EO18115.f.absk;EO18115.f.abrx.prototype.aboo=EO18115.f.absl;EO18115.f.abrx.prototype.abqu=EO18115.f.absq;EO18115.f.abrx.prototype.aey=EO18115.f.absw;EO18115.f.abrx.prototype.abpx=EO18115.f.abst;EO18115.f.abrx.prototype.abpw=EO18115.f.abss;EO18115.f.abrx.prototype.abpy=EO18115.f.absv;EO18115.f.abrx.prototype.abpz=EO18115.f.absu;EO18115.f.abrx.prototype.abqg=EO18115.f.absx;EO18115.f.abrx.prototype.aavs=EO18115.f.absy;EO18115.f.abrx.prototype.abqn=EO18115.f.abtd;EO18115.f.abrx.prototype.abpu=EO18115.f.abta;EO18115.f.abrx.prototype.abqp=EO18115.f.abtb;EO18115.f.abrx.prototype.abom=EO18115.f.abtc;EO18115.f.abrx.prototype.abon=EO18115.f.abtk;EO18115.f.abrx.prototype.abpn=EO18115.f.abtl;EO18115.f.abrx.prototype.abnh=EO18115.f.abtm;EO18115.f.abrx.prototype.abpl=EO18115.f.abto;EO18115.f.abrx.prototype.acc=EO18115.f.abtq;EO18115.f.abrx.prototype.acb=EO18115.f.afo;EO18115.f.abrx.prototype.abqd=EO18115.f.abtr;EO18115.f.abrx.prototype.abqf=EO18115.f.abtp;EO18115.f.abrx.prototype.aan=EO18115.f.absj;EO18115.f.abrx.prototype.adu=EO18115.f.abtz;EO18115.f.abrx.prototype.aw=EO18115.f.abua;EO18115.f.abrx.prototype.abpb=EO18115.f.absz;EO18115.f.abrx.prototype.abow=EO18115.f.absi;EO18115.f.abrx.prototype.abqw=EO18115.f.abud;EO18115.f.abrx.prototype.abql=EO18115.f.absn;EO18115.f.abrx.prototype.abot=EO18115.f.absm;EO18115.f.abrx.prototype.getPercentage=EO18115.f.abte;EO18115.f.abrx.prototype.getTotalBytes=EO18115.f.abtf;EO18115.f.abrx.prototype.getTransferredBytes=EO18115.f.abtg;EO18115.f.abrx.prototype.getElapsedSeconds=EO18115.f.abth;EO18115.f.abrx.prototype.getEstimiatedSecondsRemaining=EO18115.f.abtj;EO18115.f.abrx.prototype.getSpeed=EO18115.f.abti;EO18115.f.abrx.prototype.getCurrentFileName=EO18115.f.abts;EO18115.f.abrx.prototype.getTotalFileCount=EO18115.f.abtt;EO18115.f.abrx.prototype.getTransferredFileCount=EO18115.f.abtu;EO18115.f.abrx.prototype.getAllowedExtension=EO18115.f.abtv;EO18115.f.abrx.prototype.setAllowedExtension=EO18115.f.abtw;EO18115.f.abrx.prototype.getPostedFiles=EO18115.f.abtx;EO18115.f.abrx.prototype.cancel=EO18115.f.abtc;EO18115.f.abrx.prototype.upload=EO18115.f.abty;EO18115.f.abrx.prototype.isEmpty=EO18115.f.abub;EO18115.f.abrx.prototype.isRunning=EO18115.f.abuc;EO18115.f.abue=function(a){this.abpq=new EO18115.f.aar();this.abqx=a?a:0;};EO18115.f.abuf=function(a){this.abqy=new EO18115.f.aar();this.abqz=a;};EO18115.f.abug=function(a){var b=a.abqz-this.abqx;var c=EO18115.f.aas(this.abpq.aw(),a.abqy.aw());c=c/1000;var d=Math.round(b/c);return d;};EO18115.f.abuh=function(a){var b=this.abpq;var c=this.abqy;var d=new EO18115.f.aar();var e=EO18115.f.aas(b.aw(),c.aw());var f=EO18115.f.aas(c.aw(),d.aw());if(e==0)return this.abqz;if(f>EO18115.g.aqj)f=EO18115.g.aqj;var g=(this.abqz-this.abqx)*(e+f)/e+this.abqx;g=Math.round(g);if(g>=a)g=a-1;return g;};EO18115.f.abue.prototype.aavs=EO18115.f.abuf;EO18115.f.abue.prototype.abqr=EO18115.f.abug;EO18115.f.abue.prototype.abqo=EO18115.f.abuh;EO18115.f.abui=function(a){if(a)this.abra(a);};EO18115.f.abuj=function(a){this.arg(a[0]);this.abrb(a[1],a[2]);};EO18115.f.abuk=function(a){this.abnx=a!=null?a:"Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";};EO18115.f.abul=function(a,b){this.awa(a,b);this.abor=document.getElementById(this.aag+"_pt");if(this.asz)this.abqq=EO18115.f.acm(this.asz+"_ProgressBar");if(!this.abqq&&this.ata)this.abqq=EO18115.f.acm(this.ata+"_ProgressBar");if(this.asz)this.asj=document.getElementById(this.asz+"_CancelButton");if(!this.asj&&this.ata)this.asj=document.getElementById(this.ata+"_CancelButton");if(this.asj){this.asj.eo_bf=this;this.asj.onclick=EO18115.f.abun;EO18115.f.aiu(this.asj);}};EO18115.f.abum=function(){this.awb();if(this.asj){this.asj.eo_bf=null;this.asj.onclick=null;}};EO18115.f.abun=function(a){var b=this.eo_bf;if(b){b.end();b.abpo.abom();}EO18115.f.ahs(a);return false;};function fx_UploaderProgressDialog_OnVeilClick(a){if(this.abpo)this.abpo.abnf();};EO18115.f.abui.prototype=new EO18115.f.bal();EO18115.f.abui.prototype.abra=EO18115.f.abuj;EO18115.f.abui.prototype.abrb=EO18115.f.abuk;EO18115.f.abui.prototype.ael=EO18115.f.abul;EO18115.f.abui.prototype.acu=EO18115.f.abum;EO18115.f.abui.prototype.auq=fx_UploaderProgressDialog_OnVeilClick;EO18115.g.d.j("up");