var RadUploadNameSpace= {} ; RadUploadNameSpace.Of=[]; RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Im=null; RadUploadNameSpace.RadUpload= function (On){RadControlsNamespace.EventMixin.Initialize(this ); if (!document.readyState || document.readyState=="com\x70let\x65"){ this.In(On); }else if (window.attachEvent){var oo=this ; var w= function (){oo.In(On); } ; window.attachEvent("\x6fnload",w); }else if (window.addEventListener && navigator.userAgent.indexOf("\x53afari")!=-1){var oo=this ; var w= function (){oo.In(On); } ; window.addEventListener("\x6c\x6fad",w, true); }} ; RadUploadNameSpace.RadUpload.prototype.In= function (On){ this.Id=On[0]; this.Oo=On[1]; this.Io=this.Oo+"Img/"; this.FormId=On[2]; this.op=On[3]; this.Op=On[4]; this.lp=On[5]; this.ip=On[6]; if (RadUploadNameSpace.Im==null){RadUploadNameSpace.Im=this.ip; } this.Ip=On[7]; this.oq=On[8]; this.Oq=On[9]; this.lq=On[10]; this.iq=On[11]; if (RadUploadNameSpace.Utils.IsSafari()){ this.Oq= false; } this.Iq=On[12]; this.or=On[13]; this.OnClientAdding=On[14]; this.OnClientDeleting=On[15]; this.OnClientClearing=On[16]; this.OnClientFileSelected=On[17]; this.OnClientDeletingSelected=On[18]; this.Enabled=On[19]; this.Or=On[20]; this.lr=0; this.ir=null; this.Document=document; this.Ir=this.Document.getElementById(this.Id+"\x42u\x74\x74onArea"); this.os=this.Document.getElementById(this.Id+"ListContai\x6e\x65r"); for (var i=0; i<this.os.rows.length; i++){var Os=this.os.rows[i]; Os.parentNode.removeChild(Os); }if (this.Oq){ this.ls(); }var oo=this ; this.is=this.Is("\x41\x64dButto\x6e","\x41dd", function (){oo.Add(); } ); this.ot=this.Is("\x44eleteButt\x6f\156","\x44\145lete", function (){oo.Ot(); } ); var ii=document.getElementById(this.FormId); if (ii.enctype!="multipa\x72\x74/for\x6d\x2ddata"){ii.enctype="multipar\x74\x2ffor\x6d\x2ddata"; ii.encoding="multipart/\x66\x6frm-d\x61\x74a"; } ; ii=null; var lt=this.oq; if (this.Ip>0){lt=Math.min(this.oq,this.Ip); }for (var i=0; i<lt; i++){ this.Add( true , true); }if (lt>0 && this.Or){ this.it(0); } this.SetControlObjectsVisibility(this.or); if (this.oq==0){ this.It(this.ot, false); }var ou= false; for (var i=0; i<RadUploadNameSpace.Of.length; i++){if (RadUploadNameSpace.Of[i].Id==this.Id){RadUploadNameSpace.Of[i]=this ; ou= true; break; }}if (!ou){RadUploadNameSpace.Of[RadUploadNameSpace.Of.length]=this ; }RadUploadNameSpace.Utils.AttachEvent(window,"\x75nload", function (){RadUploadNameSpace.Utils.of(); } ); } ; RadUploadNameSpace.RadUpload.prototype.ls= function (){ this.ir=this.ij("\x64\151v"); this.ir.style.position="absolute"; this.ir.style.top=0; this.ir.style.left=0; this.ir.style.zIndex=1; var Ou=this.ij("input"); Ou.type="\x74\x65xt"; Ou.className="\x52\141dUp\x6c\x6fadInp\x75\x74Fi\x65\x6cd"; this.ir.appendChild(Ou); var lu=this.ij("\151n\x70\x75t"); lu.type="button"; lu.value=RadUploadNameSpace.Localization[this.Iq]["S\x65\x6cect"]; lu.disabled=!this.Enabled; lu.className="\x52\x61dUplo\x61\x64Sele\x63\x74Bu\x74\x74on"; this.ir.appendChild(lu); } ; RadUploadNameSpace.RadUpload.prototype.Add= function (iu,Iu){if (iu==null){iu= false; } this.ov(this.os.rows.length,iu,Iu); } ; RadUploadNameSpace.RadUpload.prototype.ov= function (index,iu,Iu){if (typeof(index)=="undefined"){index=this.os.rows.length; }if (index>this.os.rows.length){index=this.os.rows.length; }if ((index>=this.Ip) && (this.Ip>0)){return; }if (!iu){var Ov=this.RaiseEvent("\x4fnClie\x6e\x74Addi\x6e\x67",new RadUploadNameSpace.ob(null)); if (Ov== false){return; }}var lv=this.os.insertRow(index); if (this.Enabled){lv.onclick=RadUploadNameSpace.Utils.lg; }lv.Container=this ; var iv=this.Iv(); var ow=this.Ow(); var lw=this.iw(); var Iw=this.ox(); var Ox=lv.insertCell(0); Ox.appendChild(iv); var lx=lv.insertCell(1); ow.Container=this ; var oo=this ; if (this.Oq){ow.className="\122\x65alFileIn\x70\x75t"; var ix=this.ij("\x64iv"); ix.style.position="relative"; lx.appendChild(ix); ix.appendChild(ow); if (!window.opera){var Ix=this.ir.cloneNode( true); ix.appendChild(Ix); var onKeyUp= function (){var oy=Ix.childNodes[0]; oy.value=ow.value; oy.disabled= true; oy.title=ow.value; };if (this.lq){}else {ow.onkeyup=onKeyUp; }ow.onchange= function (){onKeyUp(); oo.RaiseEvent("\x4fnCli\x65\x6etFile\x53\x65lec\x74ed",new RadUploadNameSpace.ob(ow)); } ; }}else {ow.className="\x4e\x6fSkinne\x64\x46ile\x55\x6epu\x74"; lx.appendChild(ow); ow.onchange= function (){oo.RaiseEvent("\x4fnClientF\x69\x6ceSe\x6c\x65cte\x64",new RadUploadNameSpace.ob(ow)); } ; }if (this.lq){ow.onkeypress= function (e){if (!e){e=window.event; }if (e.preventDefault){e.preventDefault(); }else {return false; }} ; }var Oy=lv.insertCell(2); Oy.appendChild(lw); var ly=lv.insertCell(3); ly.appendChild(Iw); this.iy(); this.Iy(lv); this.lr++; if (!Iu){try {ow.focus(); }catch (ex){}}} ; RadUploadNameSpace.RadUpload.prototype.it= function (index){var Os=this.os.rows[index]; var oz=this.Oz(index); try {oz.focus(); }catch (ex){}} ; RadUploadNameSpace.RadUpload.prototype.Ot= function (){var lz=[]; var iz=[]; for (var i=this.os.rows.length-1; i>=0; i--){var Os=this.os.rows[i]; var Iz=Os.cells[0].childNodes[0]; if (Iz.checked){iz[iz.length]=i; var o10=Os.getElementsByTagName("INPUT"); for (var j=0; j<o10.length; j++){if (o10[j].type=="file"){lz[lz.length]=o10[j]; break; }}}}var Ov=this.RaiseEvent("OnC\x6cientDel\x65\x74ing\x53\x65lec\x74\x65d",new RadUploadNameSpace.lb(lz)); if (Ov== false){return; }for (var i=0; i<iz.length; i++){ this.Ig(iz[i], true); }} ; RadUploadNameSpace.RadUpload.prototype.Ig= function (index,iu){var Os=this.os.rows[index]; if (Os){if (iu){Os.parentNode.removeChild(Os); this.iy(); }else {var oz=this.Oz(index); var Ov=this.RaiseEvent("\117\x6eClientDel\x65\x74ing",new RadUploadNameSpace.ob(oz)); if (Ov== false){return false; }Os.parentNode.removeChild(Os); this.iy(); }}} ; RadUploadNameSpace.RadUpload.prototype.oh= function (index){var Os=this.os.rows[index]; if (Os){var oz=this.Oz(index); var Ov=this.RaiseEvent("OnClientCle\x61ring",new RadUploadNameSpace.ob(oz));if (Ov== false){return false; } this.Ig(index, true); this.ov(index, true); }} ; RadUploadNameSpace.RadUpload.prototype.Is= function (O10,l10,i10){var I10=this.Document.getElementById(this.Id+O10); if (I10!=null){I10.value=RadUploadNameSpace.Localization[this.Iq][l10]; if (this.Enabled){I10.onclick=i10; }else {I10.disabled= true; }}return I10; } ; RadUploadNameSpace.RadUpload.prototype.o11= function (){return this.O11.o11(); } ; RadUploadNameSpace.RadUpload.prototype.iy= function (){ this.It(this.ot,this.l11()>0); this.It(this.is,(this.Ip<=0) || (this.l11()<this.Ip)); } ; RadUploadNameSpace.RadUpload.prototype.Iv= function (){var i11=this.ij("i\x6eput"); i11.type="\x63heckbox"; i11.id=this.Id+"\x63heckbox"+this.lr; i11.className="\x52adUplo\x61\x64File\x53\x65lec\x74\x6fr"; i11.disabled=!this.Enabled; return i11; } ; RadUploadNameSpace.RadUpload.prototype.Ow= function (){var I11=this.ij("\151\x6e\x70ut"); I11.type="\x66\x69le"; I11.name=this.Id+"\x66ile"+this.lr; I11.id=this.Id+"file"+this.lr; I11.disabled=!this.Enabled; return I11; } ; RadUploadNameSpace.RadUpload.prototype.iw= function (){var o12=this.ij("\x69nput"); o12.type="\142u\x74\x74on"; o12.value=RadUploadNameSpace.Localization[this.Iq]["Re\x6d\x6fve"]; o12.id=this.Id+"\x72\x65move"+this.lr; o12.className="RadUp\x6c\x6fadRemo\x76\x65But\x74\157n"; o12.Container=this ; o12.name="\x52\145mov\x65\x52ow"; o12.disabled=!this.Enabled; return o12; } ; RadUploadNameSpace.RadUpload.prototype.ox= function (){var O12=this.ij("input"); O12.type="butt\x6f\x6e"; O12.value=RadUploadNameSpace.Localization[this.Iq]["Clear"]; O12.id=this.Id+"clear"+this.lr; O12.className="\x52adUploadCl\x65\x61rBu\x74\x74on"; O12.Container=this ; O12.name="\x43learInpu\x74"; O12.disabled=!this.Enabled; return O12; } ; RadUploadNameSpace.RadUpload.prototype.l11= function (){return this.os.rows.length; } ; RadUploadNameSpace.RadUpload.prototype.ij= function (tagName){return RadUploadNameSpace.Utils.ij(this.Document,tagName); } ; RadUploadNameSpace.RadUpload.prototype.It= function (button,l12){if (l12){button.className="\x52adUploadBu\x74\x74on"; }else {button.className="RadUploa\x64\x42utto\x6e\x44isa\x62\154\x65\x64"; }} ; RadUploadNameSpace.RadUpload.prototype.Iy= function (il){ this.Ok(il.cells[0],this.or&RadUploadNameSpace.Utils.oc); this.Ok(il.cells[2],this.or&RadUploadNameSpace.Utils.Oc); this.Ok(il.cells[3],this.or&RadUploadNameSpace.Utils.lc); } ; RadUploadNameSpace.RadUpload.prototype.Ok= function (lk,ik){RadUploadNameSpace.Utils.Ok(lk,ik); } ; RadUploadNameSpace.RadUpload.prototype.ll= function (il,ik){RadUploadNameSpace.Utils.ll(il,ik); } ; RadUploadNameSpace.RadUpload.prototype.i12= function (button,ik){RadUploadNameSpace.Utils.Ik(button,ik,"\x69nline","i\x6e\x6cine"); } ; RadUploadNameSpace.RadUpload.prototype.Dispose= function (){ this.ot=null; } ; RadUploadNameSpace.RadUpload.prototype.Oz= function (index){var il=this.os.rows[index]; if (il){var I12=il.getElementsByTagName("\x49NPUT"); for (var i=0; i<I12.length; i++){if (I12[i].type=="\x66ile")return I12[i]; }}return null; } ; RadUploadNameSpace.RadUpload.prototype.o13= function (O13){if (O13=="")return true; for (var j=0; j<this.iq.length; j++){var l13=this.iq[j].substring(2); var i13=new RegExp("."+l13+"\x24","ig"); if (O13.match(i13)){return true; }}return false; } ; RadUploadNameSpace.RadUpload.prototype.AddFileInput= function (){ this.Add( true); } ; RadUploadNameSpace.RadUpload.prototype.AddFileInputAt= function (index){ this.ov(index, true , false); } ; RadUploadNameSpace.RadUpload.prototype.ClearFileInputAt= function (index){ this.oh(index, true , false); } ; RadUploadNameSpace.RadUpload.prototype.DeleteSelectedFileInputs= function (){ this.Ot(); } ; RadUploadNameSpace.RadUpload.prototype.GetFileInputs= function (){var o6=[]; for (var i=0; i<this.os.rows.length; i++){o6[o6.length]=this.Oz(i); }return o6; } ; RadUploadNameSpace.RadUpload.prototype.DeleteFileInputAt= function (position){ this.Ig(position); } ; RadUploadNameSpace.RadUpload.prototype.SetControlObjectsVisibility= function (or){ this.or=or; for (var i=0; i<this.os.rows.length; i++){ this.Iy(this.os.rows[i]); } this.ll(this.Ir,this.or&RadUploadNameSpace.Utils.ld); this.i12(this.is,this.or&RadUploadNameSpace.Utils.ic); this.i12(this.ot,this.or&RadUploadNameSpace.Utils.Ic); } ; RadUploadNameSpace.RadUpload.prototype.ValidateExtensions= function (){for (var i=0; i<this.os.rows.length; i++){var I13=this.Oz(i).value; if (!this.o13(I13)){return false; }}return true; } ; function GetRadUpload(oe){return window[oe]; } ;;if (typeof window.RadControlsNamespace=="u\x6e\x64\x65fine\x64"){window.RadControlsNamespace= {} ; }window.RadControlsNamespace.Browser= {} ; window.RadControlsNamespace.Browser.ParseBrowserInfo= function (){ this.IsMacIE=(navigator.appName=="Microsoft\x20\111\x6e\164er\x6eet Ex\x70\154or\x65\162") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6dac")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("sa\x66\x61ri")!=-1); this.IsMozilla=window.netscape && !window.opera; this.IsOpera=window.opera; this.IsOpera9=window.opera && (parseInt(window.opera.version())>8); this.IsIE=!this.IsMacIE && !this.IsMozilla && !this.IsOpera && !this.IsSafari; this.StandardsMode=this.IsSafari || this.IsOpera9 || this.IsMozilla || document.compatMode=="\x43\x53S1Comp\x61\164"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo();;if (typeof window.RadControlsNamespace=="\x75ndefined"){window.RadControlsNamespace= {} ; }RadControlsNamespace.DomEventsMixin= function (){} ; RadControlsNamespace.DomEventsMixin.Initialize= function (O){O.AttachDomEvent=this.AttachDomEvent; O.DetachDomEvent=this.DetachDomEvent; O.DisposeDomEvents=this.DisposeDomEvents; O.ClearEventPointers=this.ClearEventPointers; O.RegisterForAutomaticDisposal=this.RegisterForAutomaticDisposal; O.o=this.o; O.CreateEventHandler=this.CreateEventHandler; O.I=this.I; O.ClearEventPointers(); } ; RadControlsNamespace.DomEventsMixin.CreateEventHandler= function (A){var U=this ; return function (e){if (!e)e=window.event; U[A](e); };} ; RadControlsNamespace.DomEventsMixin.AttachDomEvent= function (Z,z,W){var w=this.CreateEventHandler(W); this.V[this.V.length]=[Z,z,w]; this.I(Z,z,w); } ; RadControlsNamespace.DomEventsMixin.I= function (Z,z,w){if (Z.attachEvent){Z.attachEvent("on"+z,w); }else if (Z.addEventListener){Z.addEventListener(z,w, false); }} ; RadControlsNamespace.DomEventsMixin.DetachDomEvent= function (Z,z,w){if (Z.detachEvent){Z.detachEvent("on"+z,w); }} ; RadControlsNamespace.DomEventsMixin.DisposeDomEvents= function (){for (var i=0; i<this.V.length; i++){ this.DetachDomEvent(this.V[i][0],this.V[i][1],this.V[i][2]); } this.ClearEventPointers(); } ; RadControlsNamespace.DomEventsMixin.RegisterForAutomaticDisposal= function (v){var T=this ; var t=this.CreateEventHandler(v); var S= function (){t(); T.DisposeDomEvents(); T=null; } ; this.I(window,"unload",S); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.V=[]; } ;;if (typeof window.RadControlsNamespace=="\x75\x6edefined"){window.RadControlsNamespace= {} ; }RadControlsNamespace.EventMixin= {Initialize:function (O){O.R= {} ; O._eventsEnabled= true; O.AttachEvent=this.AttachEvent; O.DetachEvent=this.DetachEvent; O.RaiseEvent=this.RaiseEvent; O.EnableEvents=this.EnableEvents; O.DisableEvents=this.DisableEvents; } ,DisableEvents:function (){ this._eventsEnabled= false; } ,EnableEvents:function (){ this._eventsEnabled= true; } ,AttachEvent:function (z,r){if (!this.R[z]){ this.R[z]=[]; } this.R[z][this.R[z].length]=(RadControlsNamespace.EventMixin.ResolveFunction(r)); } ,DetachEvent:function (z,r){var Q=this.R[z]; if (!Q){return false; }var P=RadControlsNamespace.EventMixin.ResolveFunction(r); for (var i=0; i<Q.length; i++){if (P==Q[i]){Q.splice(i,1); return true; }}return false; } ,ResolveFunction:function (N){if (typeof(N)=="f\x75ncti\x6f\x6e"){return N; }else if (typeof(window[N])=="\x66unction"){return window[N]; }else {return new Function("\166\x61\x72 Send\x65\162 =\x20\141\x72\x67ume\x6e\164s\x5b\x30]\x3b var A\x72gument\x73 = ar\x67\165m\x65nts[1\x5d;"+N); }} ,RaiseEvent:function (z,n){if (!this._eventsEnabled){return true; }var M= true; if (this[z]){var m=RadControlsNamespace.EventMixin.ResolveFunction(this[z])(this,n); if (typeof(m)=="\x75ndef\x69\x6eed"){m= true; }M=M && m; }if (!this.R[z])return M; for (var i=0; i<this.R[z].length; i++){var r=this.R[z][i]; var m=r(this,n); if (typeof(m)=="undefi\x6eed"){m= true; }M=M && m; }return M; }} ;;RadUploadNameSpace.Localization.ProcessRawArray= function (L){var l=L[0]; if (typeof(RadUploadNameSpace.Localization[l])=="\165nd\x65\x66ined"){RadUploadNameSpace.Localization[l]=[]; }for (var i=1; i<L.length; i+=2){RadUploadNameSpace.Localization[l][L[i]]=L[i+1]; }} ;;if (typeof window.RadControlsNamespace=="\x75\x6edefined"){window.RadControlsNamespace= {} ; }window.RadControlsNamespace.Overlay= function (K){if (!this.SupportsOverlay()){return; } this.Element=K; this.Shim=document.createElement("IFR\x41ME"); this.Shim.src="javasc\x72\x69pt:\x27\x27;"; this.Element.parentNode.appendChild(this.Shim); this.Shim.style.zIndex="\x2d1"; this.Shim.style.position="\x61bsolut\x65"; this.Shim.style.border="\x30px"; this.Shim.frameBorder=0; this.Shim.style.filter="progid:DXIma\x67eTransfo\x72\155\x2eMicro\x73\x6fft\x2e\x41lp\x68a(sty\x6ce=0,o\x70\x61ci\x74y=0)"; this.Shim.disabled="disabled"; };RadControlsNamespace.Overlay.prototype.SupportsOverlay= function (){return RadControlsNamespace.Browser.IsIE || (RadControlsNamespace.Browser.IsMozilla && RadControlsNamespace.Browser.IsMac); };RadControlsNamespace.Overlay.prototype.Update= function (){if (!this.SupportsOverlay()){return; } this.Shim.style.top=this.ToUnit(this.Element.style.top); this.Shim.style.left=this.ToUnit(this.Element.style.left); this.Shim.style.width=this.Element.offsetWidth+"\x70\170"; this.Shim.style.height=this.Element.offsetHeight+"px"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "\x30\x70x"; return parseInt(value)+"p\x78"; };RadControlsNamespace.Overlay.prototype.Dispose= function (){ this.Element=null; this.Shim=null; };;if (typeof(RadUploadNameSpace)=="\x75\x6edefin\x65\x64")RadUploadNameSpace= {} ; RadUploadNameSpace.k="\x50\x61nel"; RadUploadNameSpace.RadProgressArea= function (J){ this.Id=J[0]; this.OnClientProgressUpdating=J[1]; this.OnClientProgressBarUpdating=J[2]; this.H=J[3]; if (!this.H){alert("\x43ould\x20\x6eot f\x69\x6ed an\x20instan\x63\x65 of\x20\122\x61dPr\x6fgress\x4d\x61na\x67er on\x20\164h\x65 page\x2e Are\x20you\x20mis\x73ing \x74he c\x6fntro\x6c dec\x6cara\x74ion\x3f"); }RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Element=document.getElementById(this.Id); this.TotalProgressBarElement=this.h("\x54otalProgres\x73\x42ar"); this.FileCountBarElement=this.h("F\x69\x6cesCount\x42\141r"); this.TotalProgressElement=this.h("TotalProgre\x73\x73"); this.TotalProgressPercentElement=this.h("Total\x50\x72ogres\x73\x50erc\x65\156t"); this.FilesCountElement=this.h("\x46iles\x43\x6funt"); this.FilesCountPercentElement=this.h("F\x69\x6cesCoun\x74\x50erce\x6e\164"); this.RequestSizeElement=this.h("RequestSi\x7a\x65"); this.SelectedFilesCountElement=this.h("SelectedF\x69\x6cesCo\x75\x6et"); this.CurrentFileNameElement=this.h("CurrentF\x69\x6ceNam\x65"); this.TimeElapsedElement=this.h("TimeElapsed"); this.TimeEstimatedElement=this.h("TimeEstimate\x64"); this.TransferSpeedElement=this.h("TransferS\x70\x65ed"); this.G=this.h("\x43\x61ncelB\x75\x74ton"); this.g= false; if (this.G){ this.AttachDomEvent(this.G,"\x63lick","\x43ancelReq\x75\x65st"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="\x75ndefined"){RadUploadNameSpace.ProgressAreas=[]; }RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (F){if (this.RaiseEvent("OnClient\x50rogressU\x70\x64ati\x6e\147", {ProgressData:F } )== false)return; this.Show(); if (this.RaiseEvent("\x4fnClient\x50\x72ogre\x73\x73Ba\x72\x55pda\x74\x69ng", {ProgressValue:F.f,ProgressBarElementName: "TotalProgr\x65\x73sBar",ProgressBarElement: this.TotalProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.TotalProgressBarElement,F.f); }if (this.RaiseEvent("OnClientP\x72\x6fgre\x73\x73BarU\x70\144a\x74\x69ng", {ProgressValue:F.D,ProgressBarElementName: "FileCou\x6e\x74Bar",ProgressBarElement: this.FileCountBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.FileCountBarElement,F.D); } this.UpdateTextIndicator(this.TotalProgressElement,F.Bytes); this.UpdateTextIndicator(this.TotalProgressPercentElement,F.f); this.UpdateTextIndicator(this.FilesCountElement,F.FilesCount); this.UpdateTextIndicator(this.FilesCountPercentElement,F.D); this.UpdateTextIndicator(this.RequestSizeElement,F.RequestSize); this.UpdateTextIndicator(this.SelectedFilesCountElement,F.d); this.UpdateTextIndicator(this.CurrentFileNameElement,F.CurrentFileName); this.UpdateTextIndicator(this.TimeElapsedElement,F.C); this.UpdateTextIndicator(this.TimeEstimatedElement,F.c); this.UpdateTextIndicator(this.TransferSpeedElement,F.B); } ,Show:function (){ this.Element.style.display=""; } ,Hide:function (){ this.Element.style.display="\x6e\x6f\x6ee"; } ,UpdateHorizontalProgressBar:function (K,o0){if (K)K.style.width=o0+"\x25"; } ,UpdateVerticalProgressBar:function (K,o0){if (K)K.style.height=o0+"\x25"; } ,UpdateTextIndicator:function (K,text){if (K){if (typeof(K.value)=="\163\x74\x72ing")K.value=text; else if (typeof(K.innerHTML)=="str\x69\x6eg")K.innerHTML=text; }} ,O0:function (){ this.g= true; } ,h:function (l0){var i0=this.Id+"\137"+RadUploadNameSpace.k+"\x5f"+l0; return document.getElementById(i0); }};;if (typeof(RadUploadNameSpace)=="\x75ndefined")RadUploadNameSpace= {} ; RadUploadNameSpace.RadProgressManager= function (J){RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.I0=J[0]; var o1=J[1]; this.UniqueRequestIdentifier=J[2]; this.O1=J[3]; this.OnClientProgressStarted=J[4]; this.OnClientProgressUpdating=J[5]; this.FormId=J[6]; this.l1=J[7]; this.i1="\045\x48OURS%\x3a\x25MIN\x55\x54E\x53\x25:%S\x45\x43ON\x44\x53%s"; if (this.l1== true){ this.I1(); } this.o2=this.O2(o1); this.l2= false; if (typeof(RadUploadNameSpace.ProgressAreas)=="undefined"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {StartProgressPolling:function (){ this.i2(); this.RaiseEvent("\x4fnClient\x50\x72ogre\x73\x73St\x61\x72ted"); this.I2=new Date(); this.MakeCallback(); } ,MakeCallback:function (){if (!this.l2){ this.l2= true; this.o3(); }} ,HandleCallback:function (){if (this.O3.readyState!=4)return; this.l2= false; if (this.l3())return; var responseText=this.O3.responseText; if (responseText){try {eval(responseText); }catch (ex){ this.i3(); return; }if (rawProgressData){if (rawProgressData.ProgressError){alert(rawProgressData.ProgressError); return; }if (rawProgressData.InProgress){if (!this.I3(rawProgressData)){window.location.href=window.location.href; return; }}}}window.setTimeout(this.CreateEventHandler("\x4d\x61\x6beCall\x62\x61ck"),this.I0); } ,l3:function (){if (!document.all)return false; if (this.O3.status==404){ this.o4(); }else if (this.O3.status!=200){ this.O4(); }else return false; return true; } ,o4:function (){alert("r.a.d.up\x6c\x6fad \x41\x6aax c\x61llback \x65\x72ror\x2e Sourc\x65 url \x77as not\x20\146\x6fund: \x0a\015\x0a\015"+this.o2+"\x0a\x0d\012\x0dDid you\x20\x72eg\x69\163t\x65\x72 th\x65\040R\x61dUplo\x61dProg\x72\145s\x73Handl\x65r? Or\x20are \x79\157\x75 us\x69ng U\x52L R\x65writ\x65r?"); } ,O4:function (){alert("r\x2e\x61.d.upl\x6f\x61d Aj\x61\170\x20\x63all\x62\x61ck\x20\x65r\x72\x6fr\x2e\x20So\x75\162c\x65 url \x72eturn\x65d err\x6fr: "+this.O3.status+"\x20\012\x0d\012\x0d"+this.o2+"\012\015\x0a\015\x44\151d \x79\x6fu \x72\x65gi\x73\x74er\x20\x74he\x20RadUp\x6c\x6fa\x64\120r\x6fgress\x48andle\x72? Or\x20are \x79ou u\x73ing\x20URL \x52ewri\x74er?\x20"); } ,i3:function (){alert("r.a.d.up\x6c\x6fad \x41\x6aax \x63\141l\x6c\142ac\x6b\040e\x72\162\x6f\x72.\x20\x53ou\x72ce ur\x6c\040r\x65turne\x64 inv\x61\154\x69d co\x6eten\x74: \012\x0d\012\x0d"+this.O3.responseText+"\x0a\015\x0a\x0d"+this.o2+"\x0a\015\x0a\x0dDid \x79\x6fu r\x65\147i\x73\x74er \x74\150\x65 Ra\x64\125p\x6c\157a\x64Progr\x65ssHan\x64ler? \x4fr ar\x65\040\x79ou u\x73ing\x20URL \x52ewri\x74er?\x20"); } ,I3:function (rawProgressData){var F=this.CreateProgressData(rawProgressData); this.RaiseEvent("\x4fnClientP\x72\x6fgre\x73\x73Up\x64\x61tin\x67", {ProgressData:F } ); for (var i=0; i<RadUploadNameSpace.ProgressAreas.length; i++){var l4=RadUploadNameSpace.ProgressAreas[i]; if (l4.g){return false; }l4.Update(F); }return true; } ,CreateProgressData:function (rawProgressData){var F= {} ; var i4=Math.round(100*rawProgressData.Bytes/rawProgressData.RequestSize); var I4=new Date()-this.I2; F.RequestSize=this.o5(rawProgressData.RequestSize); F.f=i4; F.D=Math.round(100*rawProgressData.FilesCount/(this.O5!=0?this.O5: 1)); F.Bytes=this.o5(rawProgressData.Bytes); F.FilesCount=rawProgressData.FilesCount; F.d=this.O5; F.CurrentFileName=rawProgressData.CurrentFileName; F.C=this.l5(this.i5(I4)); F.c=this.l5(this.i5(I4*(100/i4-1))); F.B=this.o5(rawProgressData.Bytes/this.i5(I4))+"/s"; return F; } ,i5:function (I5){return Math.round(I5/1000); } ,i2:function (){ this.O5=0; var o6=document.getElementsByTagName("\x69nput"); for (var i=0; i<o6.length; i++){var O6=o6[i]; if (O6.type=="file" && O6.value!=""){ this.O5++; }}} ,o3:function (){if (typeof(XMLHttpRequest)!="\x75ndefined"){ this.O3=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="und\x65\x66ined"){ this.O3=new ActiveXObject("Microsof\x74\x2eXML\x48\x54TP"); }else return; this.O3.onreadystatechange=this.CreateEventHandler("HandleCallba\x63k"); this.O3.open("GET",this.l6(), true); this.O3.send(""); } ,i6:function (U,method){return function (){method.apply(U,arguments); } ; } ,O2:function (o1){var I6=o1.indexOf("o7")<0?"?": "\x26"; return o1+I6+this.UniqueRequestIdentifier+"\x3d"+this.O1; } ,l6:function (){return this.o2+"&RadUplo\x61\x64Time\x53\x74amp\x3d"+new Date().getTime(); } ,I1:function (){var O7=this.CreateEventHandler("StartProg\x72\x65ssPo\x6c\x6cing"); var form=document.getElementById(this.FormId); if (!form){form=document.forms[0]; } this.l7(form); var i7=form.submit; try {form.submit= function (){O7(); form.submit=i7; form.submit(); };}catch (exception){try {var I7=__doPostBack; __doPostBack= function (eventTarget,eventArgument){var o8= true; if (typeof(Page_ClientValidate)=="\x66unctio\x6e"){o8=Page_ClientValidate(); }if (o8){O7(); I7(eventTarget,eventArgument); }} ; }catch (exception){}} this.AttachDomEvent(form,"\x73ubmit","Start\x50\x72ogres\x73\x50oll\x69\156\x67"); } ,l7:function (form){form.enctype=form.encoding="multip\x61\x72t/for\x6d\x2ddat\x61"; if (typeof(form.action)=="undefine\x64")form.action=""; if (form.action.match(/\x3f/)){var O8=new RegExp("\x26?"+this.UniqueRequestIdentifier+"=[^&]*"); if (form.action.match(O8)){form.action=form.action.replace(O8,""); }if (form.action.substring(form.action.length-1)!="\x3f"){form.action+="\x26"; }}else {form.action+="\x3f";}form.action+=this.UniqueRequestIdentifier+"="+this.O1; } ,o5:function (l8){var i8=l8/1024; var I8=i8/1024; if (I8>.8){return ""+Math.round(I8*100)/100+"\x4dB"; }if (i8>.8){return ""+Math.round(i8*100)/100+"kB"; }return ""+l8+" byt\x65\x73"; } ,l5:function (o9){var O9=this.l9(o9); return this.i1.replace(/\x25\x48\x4f\x55\x52\x53\x25/,O9.i9).replace(/\x25\x4d\x49\x4e\x55\x54\x45\x53\x25/,O9.I9).replace(/\x25\x53\x45\x43\x4f\x4e\x44\x53\x25/,O9.oa); } ,l9:function (Oa){var o9=Oa%60; var la=Math.floor(Oa/60); var ia=la%60; var Ia=Math.floor(la/60); return {i9:Ia,I9:ia,oa:o9 };}} ;;RadUploadNameSpace.ob= function (Ob){ this.FileInputField=Ob; } ; RadUploadNameSpace.lb= function (ib){ this.FileInputFields=ib; } ;;RadUploadNameSpace.Utils= {} ; RadUploadNameSpace.Utils.Ib=0; RadUploadNameSpace.Utils.oc=1; RadUploadNameSpace.Utils.Oc=2; RadUploadNameSpace.Utils.lc=4; RadUploadNameSpace.Utils.ic=8; RadUploadNameSpace.Utils.Ic=16; RadUploadNameSpace.Utils.od=RadUploadNameSpace.Utils.oc|RadUploadNameSpace.Utils.Oc|RadUploadNameSpace.Utils.ic|RadUploadNameSpace.Utils.Ic; RadUploadNameSpace.Utils.Od=RadUploadNameSpace.Utils.oc|RadUploadNameSpace.Utils.Oc|RadUploadNameSpace.Utils.lc|RadUploadNameSpace.Utils.ic|RadUploadNameSpace.Utils.Ic; RadUploadNameSpace.Utils.ld=RadUploadNameSpace.Utils.ic|RadUploadNameSpace.Utils.Ic; RadUploadNameSpace.Utils.AppendStyleSheet= function (oe,Oe){var le=(navigator.appName=="\x4d\x69\x63rosoft\x20\x49nte\x72\156\x65\164 \x45\x78plo\x72\x65\x72") && ((navigator.userAgent.toLowerCase().indexOf("\155\x61\x63")!=-1) || (navigator.appVersion.toLowerCase().indexOf("m\x61\x63")!=-1)); var ie=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); if (le || ie){document.write("<"+"li\x6e\x6b"+" rel=\047styleshe\x65t\047\x20\x74yp\x65\075\047\x74ext\x2f\143s\x73\047\x20href=\x27"+Oe+"\x27\x3e"); }else {var Ie=document.createElement("LINK"); Ie=Ie.cloneNode( true); Ie.rel="\x73\x74yleshe\x65\164"; Ie.type="\x74ext/css"; Ie.href=Oe; document.getElementById(oe+"St\x79\x6ceSheetH\x6f\x6cder").appendChild(Ie); }} ; RadUploadNameSpace.Utils.of= function (){for (var i=0; i<RadUploadNameSpace.Of.length; i++){var If=RadUploadNameSpace.Of[i]; if (If.Dispose){If.Dispose(); }}} ; RadUploadNameSpace.Utils.AttachEvent= function (og,z,Og){if (document.attachEvent){og.attachEvent("o\x6e"+z,Og); }else if (window.addEventListener){og.addEventListener(z,Og, true); }} ; RadUploadNameSpace.Utils.lg= function (e){if (!e)e=event; var ig; if (e.srcElement && e.srcElement.name){ig=e.srcElement.name; }else if (e.target && e.target.name){ig=e.target.name; }if (ig=="\x52emoveRow"){if (this.Container.Ig(this.rowIndex)!= false){ this.Container=null; }}if (ig=="C\x6c\x65arInput"){var index=this.rowIndex; if (this.Container.oh(index)!= false){ this.Container=null; }}} ; RadUploadNameSpace.Utils.Oh= function (lh,ih,value){for (var i=0; i<lh.length; i++){if (lh[i][ih]==value){return i; }}return -1; } ; RadUploadNameSpace.Utils.Ih= function (oi,Oi){ii.submit= function (){try {Oi(); this.submit=oi; this.submit(); }catch (Ii){}} ; } ; RadUploadNameSpace.Utils.oj= function (Oi){try {I7=__doPostBack; __doPostBack= function (eventTarget,eventArgument){Oi(); var o8= true; if (typeof(Page_ClientValidate)=="\x66\x75\x6ection"){o8=Page_ClientValidate(); }if (o8){I7(eventTarget,eventArgument); }} ; }catch (Ii){}} ; RadUploadNameSpace.Utils.Oj= function (lj,Oi){var ii=null; try {ii=document.getElementById(lj); }catch (ex){ii=document.forms[0]; }var oi=ii.submit; try {RadUploadNameSpace.Utils.Ih(oi,Oi); }catch (Ii){RadUploadNameSpace.Utils.oj(Oi); }RadUploadNameSpace.Utils.AttachEvent(ii,"\x73ubmit", function (){Oi(); } ); ii=null; } ; RadUploadNameSpace.Utils.ij= function (Ij,tagName){var ok=Ij.createElement(tagName); return ok.cloneNode( true); } ; RadUploadNameSpace.Utils.Ok= function (lk,ik){RadUploadNameSpace.Utils.Ik(lk,ik,"bloc\x6b","tabl\x65\x2dcell"); } ; RadUploadNameSpace.Utils.ll= function (il,ik){RadUploadNameSpace.Utils.Ik(il,ik,"blo\x63\x6b","table-row"); } ; RadUploadNameSpace.Utils.Ik= function (Il,ik,om,Om){if (ik){Il.style.display=document.all?om:Om; }else {Il.style.display="\156\x6f\x6ee"; }} ; RadUploadNameSpace.Utils.IsSafari= function (){return (navigator.userAgent.toLowerCase().indexOf("\x73afari")>0); } ;;