var RadUploadNameSpace= {} ; RadUploadNameSpace.il=[]; RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Ot=null; RadUploadNameSpace.RadUpload= function (lt){RadControlsNamespace.EventMixin.Initialize(this ); if (!document.readyState || document.readyState=="complet\x65"){ this.it(lt); }else if (window.attachEvent){var It=this ; var w= function (){It.it(lt); } ; window.attachEvent("onlo\x61\x64",w); }else if (window.addEventListener && navigator.userAgent.indexOf("Safari")!=-1){var It=this ; var w= function (){It.it(lt); } ; window.addEventListener("\x6coad",w, true); }} ; RadUploadNameSpace.RadUpload.prototype.it= function (lt){ this.Id=lt[0]; this.ou=lt[1]; this.Ou=this.ou+"\x49mg/"; this.FormId=lt[2]; this.lu=lt[3]; this.iu=lt[4]; this.Iu=lt[5]; this.ov=lt[6]; if (RadUploadNameSpace.Ot==null){RadUploadNameSpace.Ot=this.ov; } this.Ov=lt[7]; this.lv=lt[8]; this.iv=lt[9]; this.Iv=lt[10]; this.ow=lt[11]; if (RadUploadNameSpace.Utils.IsSafari()){ this.iv= false; } this.Ow=lt[12]; this.lw=lt[13]; this.OnClientAdding=lt[14]; this.OnClientDeleting=lt[15]; this.OnClientClearing=lt[16]; this.OnClientFileSelected=lt[17]; this.OnClientDeletingSelected=lt[18]; this.Enabled=lt[19]; this.iw=lt[20]; this.Iw=0; this.ox=null; this.Document=document; this.Ox=this.Document.getElementById(this.Id+"B\x75ttonAre\x61"); this.G=this.Document.getElementById(this.Id+"ListCon\x74\x61iner"); for (var i=0; i<this.G.rows.length; i++){var lx=this.G.rows[i]; lx.parentNode.removeChild(lx); }if (this.iv){ this.ix(); }var It=this ; this.Ix=this.oy("Add\x42\x75tton","Add", function (){It.Add(); } ); this.Oy=this.oy("DeleteBut\x74\x6fn","Delete", function (){It.ly(); } ); var Ip=document.getElementById(this.FormId); if (Ip.enctype!="m\x75ltipart/for\x6d\055\x64ata"){Ip.enctype="m\x75\x6ctipart/\x66\x6frm-d\x61\164\x61"; Ip.encoding="multi\x70\x61rt/fo\x72\x6d-dat\x61"; } ; Ip=null; var iy=this.lv; if (this.Ov>0){iy=Math.min(this.lv,this.Ov); }for (var i=0; i<iy; i++){ this.Add( true , true); }if (iy>0 && this.iw){ this.Iy(0); } this.SetControlObjectsVisibility(this.lw); if (this.lv==0){ this.oz(this.Oy, false); }var Oz= false; for (var i=0; i<RadUploadNameSpace.il.length; i++){if (RadUploadNameSpace.il[i].Id==this.Id){RadUploadNameSpace.il[i]=this ; Oz= true; break; }}if (!Oz){RadUploadNameSpace.il[RadUploadNameSpace.il.length]=this ; }RadUploadNameSpace.Utils.AttachEvent(window,"\x75nload", function (){RadUploadNameSpace.Utils.ll(); } ); } ; RadUploadNameSpace.RadUpload.prototype.ix= function (){ this.ox=this.Iq("div"); this.ox.style.position="\x61bsolu\x74\x65"; this.ox.style.top=0; this.ox.style.left=0; this.ox.style.zIndex=1; var lz=this.Iq("input"); lz.type="\x74ext"; lz.className="\x52adUplo\x61\x64Input\x46\x69el\x64"; this.ox.appendChild(lz); var iz=this.Iq("input"); iz.type="butto\x6e"; iz.value=RadUploadNameSpace.Localization[this.Ow]["S\x65\x6cect"]; iz.disabled=!this.Enabled; iz.className="\x52adUploadSel\x65\x63tBu\x74\x74on"; this.ox.appendChild(iz); } ; RadUploadNameSpace.RadUpload.prototype.Add= function (Iz,o10){if (Iz==null){Iz= false; } this.O10(this.G.rows.length,Iz,o10); } ; RadUploadNameSpace.RadUpload.prototype.O10= function (index,Iz,o10){if (typeof(index)=="\x75ndefined"){index=this.G.rows.length; }if (index>this.G.rows.length){index=this.G.rows.length; }if ((index>=this.Ov) && (this.Ov>0)){return; }if (!Iz){var l10=this.RaiseEvent("OnClientAdd\x69\x6eg",new RadUploadNameSpace.Oh(null)); if (l10== false){return; }}var i10=this.G.insertRow(index); if (this.Enabled){i10.onclick=RadUploadNameSpace.Utils.Im; }i10.Container=this ; var I10=this.o11(); var O11=this.l11(); var i11=this.I11(); var o12=this.O12(); var l12=i10.insertCell(0); l12.appendChild(I10); var i12=i10.insertCell(1); O11.Container=this ; var It=this ; if (this.iv){O11.className="Rea\x6c\106\x69\x6ceInp\x75\x74"; var I12=this.Iq("\x64iv"); I12.style.position="\x72elati\x76\x65"; i12.appendChild(I12); I12.appendChild(O11); if (!window.opera){var o13=this.ox.cloneNode( true); I12.appendChild(o13); var onKeyUp= function (){var O13=o13.childNodes[0]; O13.value=O11.value; O13.disabled= true; O13.title=O11.value; };if (this.Iv){}else {O11.onkeyup=onKeyUp; }O11.onchange= function (){onKeyUp(); It.RaiseEvent("\x4fnClie\x6e\x74FileS\x65\x6cec\x74\145d",new RadUploadNameSpace.Oh(O11)); } ; }}else {O11.className="\x4e\x6fSkinn\x65\x64File\x55\x6epu\x74"; i12.appendChild(O11); O11.onchange= function (){It.RaiseEvent("OnClientFil\x65\x53ele\x63\x74ed",new RadUploadNameSpace.Oh(O11)); } ; }if (this.Iv){O11.onkeypress= function (e){if (!e){e=window.event; }if (e.preventDefault){e.preventDefault(); }else {return false; }} ; }var l13=i10.insertCell(2); l13.appendChild(i11); var i13=i10.insertCell(3); i13.appendChild(o12); this.I13(); this.o14(i10); this.Iw++; if (!o10){try {O11.focus(); }catch (ex){}}} ; RadUploadNameSpace.RadUpload.prototype.Iy= function (index){var lx=this.G.rows[index]; var O14=this.l14(index); try {O14.focus(); }catch (ex){}} ; RadUploadNameSpace.RadUpload.prototype.ly= function (){var i14=[]; var I14=[]; for (var i=this.G.rows.length-1; i>=0; i--){var lx=this.G.rows[i]; var o15=lx.cells[0].childNodes[0]; if (o15.checked){I14[I14.length]=i; var O15=lx.getElementsByTagName("I\x4ePUT"); for (var j=0; j<O15.length; j++){if (O15[j].type=="\146i\x6c\x65"){i14[i14.length]=O15[j]; break; }}}}var l10=this.RaiseEvent("OnClie\x6e\x74Dele\x74\x69ngS\x65\154\x65\x63ted",new RadUploadNameSpace.ih(i14)); if (l10== false){return; }for (var i=0; i<I14.length; i++){ this.In(I14[i], true); }} ; RadUploadNameSpace.RadUpload.prototype.In= function (index,Iz){var lx=this.G.rows[index]; if (lx){if (Iz){lx.parentNode.removeChild(lx); this.I13(); }else {var O14=this.l14(index); var l10=this.RaiseEvent("\x4fnClientD\x65\x6cetin\x67",new RadUploadNameSpace.Oh(O14)); if (l10== false){return false; }lx.parentNode.removeChild(lx); this.I13(); }}} ; RadUploadNameSpace.RadUpload.prototype.oo= function (index){var lx=this.G.rows[index]; if (lx){var O14=this.l14(index); var l10=this.RaiseEvent("\x4fnClien\x74\x43leari\x6e\x67",new RadUploadNameSpace.Oh(O14));if (l10== false){return false; } this.In(index, true); this.O10(index, true); }} ; RadUploadNameSpace.RadUpload.prototype.oy= function (l15,i15,I15){var o16=this.Document.getElementById(this.Id+l15); if (o16!=null){o16.value=RadUploadNameSpace.Localization[this.Ow][i15]; if (this.Enabled){o16.onclick=I15; }else {o16.disabled= true; }}return o16; } ; RadUploadNameSpace.RadUpload.prototype.O16= function (){return this.l16.O16(); } ; RadUploadNameSpace.RadUpload.prototype.I13= function (){ this.oz(this.Oy,this.i16()>0); this.oz(this.Ix,(this.Ov<=0) || (this.i16()<this.Ov)); } ; RadUploadNameSpace.RadUpload.prototype.o11= function (){var I16=this.Iq("inp\x75t"); I16.type="\x63heckbox"; I16.id=this.Id+"\x63heckbox"+this.Iw; I16.className="Ra\x64\x55ploadF\x69\x6ceSel\x65\143\x74\x6fr"; I16.disabled=!this.Enabled; return I16; } ; RadUploadNameSpace.RadUpload.prototype.l11= function (){var o17=this.Iq("\x69nput"); o17.type="\x66ile"; o17.name=this.Id+"\x66\x69le"+this.Iw; o17.id=this.Id+"\x66ile"+this.Iw; o17.disabled=!this.Enabled; return o17; } ; RadUploadNameSpace.RadUpload.prototype.I11= function (){var O17=this.Iq("input"); O17.type="button"; O17.value=RadUploadNameSpace.Localization[this.Ow]["\x52emove"]; O17.id=this.Id+"\x72emove"+this.Iw; O17.className="RadU\x70\x6coadRem\x6f\x76eBut\x74on"; O17.Container=this ; O17.name="\x52emoveRow"; O17.disabled=!this.Enabled; return O17; } ; RadUploadNameSpace.RadUpload.prototype.O12= function (){var l17=this.Iq("\x69nput"); l17.type="\x62\x75tton"; l17.value=RadUploadNameSpace.Localization[this.Ow]["\x43lear"]; l17.id=this.Id+"\x63lear"+this.Iw; l17.className="RadUp\x6c\x6fadClea\x72\x42utt\x6f\156"; l17.Container=this ; l17.name="Cl\x65\x61rInput"; l17.disabled=!this.Enabled; return l17; } ; RadUploadNameSpace.RadUpload.prototype.i16= function (){return this.G.rows.length; } ; RadUploadNameSpace.RadUpload.prototype.Iq= function (tagName){return RadUploadNameSpace.Utils.Iq(this.Document,tagName); } ; RadUploadNameSpace.RadUpload.prototype.oz= function (button,i17){if (i17){button.className="RadUpl\x6f\x61dBut\x74\x6fn"; }else {button.className="RadUp\x6c\x6fadBut\x74\x6fnDis\x61bled"; }} ; RadUploadNameSpace.RadUpload.prototype.o14= function (ls){ this.lr(ls.cells[0],this.lw&RadUploadNameSpace.Utils.Oi); this.lr(ls.cells[2],this.lw&RadUploadNameSpace.Utils.ii); this.lr(ls.cells[3],this.lw&RadUploadNameSpace.Utils.Ii); } ; RadUploadNameSpace.RadUpload.prototype.lr= function (ir,Ir){RadUploadNameSpace.Utils.lr(ir,Ir); } ; RadUploadNameSpace.RadUpload.prototype.Os= function (ls,Ir){RadUploadNameSpace.Utils.Os(ls,Ir); } ; RadUploadNameSpace.RadUpload.prototype.I17= function (button,Ir){RadUploadNameSpace.Utils.os(button,Ir,"\x69nline","\x69\x6eline"); } ; RadUploadNameSpace.RadUpload.prototype.Dispose= function (){ this.Oy=null; } ; RadUploadNameSpace.RadUpload.prototype.l14= function (index){var ls=this.G.rows[index]; if (ls){var o18=ls.getElementsByTagName("INPUT"); for (var i=0; i<o18.length; i++){if (o18[i].type=="file")return o18[i]; }}return null; } ; RadUploadNameSpace.RadUpload.prototype.O18= function (l18){if (l18=="")return true; for (var j=0; j<this.ow.length; j++){var i18=this.ow[j].substring(2); var I18=new RegExp("."+i18+"\x24","\x69\x67"); if (l18.match(I18)){return true; }}return false; } ; RadUploadNameSpace.RadUpload.prototype.AddFileInput= function (){ this.Add( true); } ; RadUploadNameSpace.RadUpload.prototype.AddFileInputAt= function (index){ this.O10(index, true , false); } ; RadUploadNameSpace.RadUpload.prototype.ClearFileInputAt= function (index){ this.oo(index, true , false); } ; RadUploadNameSpace.RadUpload.prototype.DeleteSelectedFileInputs= function (){ this.ly(); } ; RadUploadNameSpace.RadUpload.prototype.GetFileInputs= function (){var lb=[]; for (var i=0; i<this.G.rows.length; i++){lb[lb.length]=this.l14(i); }return lb; } ; RadUploadNameSpace.RadUpload.prototype.DeleteFileInputAt= function (position){ this.In(position); } ; RadUploadNameSpace.RadUpload.prototype.SetControlObjectsVisibility= function (lw){ this.lw=lw; for (var i=0; i<this.G.rows.length; i++){ this.o14(this.G.rows[i]); } this.Os(this.Ox,this.lw&RadUploadNameSpace.Utils.Ij); this.I17(this.Ix,this.lw&RadUploadNameSpace.Utils.oj); this.I17(this.Oy,this.lw&RadUploadNameSpace.Utils.Oj); } ; RadUploadNameSpace.RadUpload.prototype.ValidateExtensions= function (){for (var i=0; i<this.G.rows.length; i++){var o19=this.l14(i).value; if (!this.O18(o19)){return false; }}return true; } ; function GetRadUpload(ok){return window[ok]; } ;;if (typeof window.RadControlsNamespace=="\x75\x6edefined"){window.RadControlsNamespace= {} ; }window.RadControlsNamespace.Browser= {} ; window.RadControlsNamespace.Browser.ParseBrowserInfo= function (){ this.IsMacIE=(navigator.appName=="\x4dicro\x73\x6fft I\x6e\x74ern\x65t Expl\x6f\162\x65\162") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("m\x61\x63")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("\x73\x61fari")!=-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=="CSS1Compat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo();;if (typeof window.RadControlsNamespace=="undefine\x64"){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("\x6fn"+z,w); }else if (Z.addEventListener){Z.addEventListener(z,w, false); }} ; RadControlsNamespace.DomEventsMixin.DetachDomEvent= function (Z,z,w){if (Z.detachEvent){Z.detachEvent("\x6fn"+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,"\x75\x6e\x6coad",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)=="\x66\x75nction"){return N; }else if (typeof(window[N])=="\x66unction"){return window[N]; }else {return new Function("\x76ar Sen\x64\x65r =\x20\x61rgu\x6dents[0]\x3b\x20va\x72\x20Ar\x67umen\x74s = ar\x67uments\x5b1];"+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)=="undefin\x65\x64"){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)=="\x75\x6edefined"){m= true; }M=M && m; }return M; }} ;;RadUploadNameSpace.Localization.ProcessRawArray= function (L){var l=L[0]; if (typeof(RadUploadNameSpace.Localization[l])=="\165ndefi\x6e\145d"){RadUploadNameSpace.Localization[l]=[]; }for (var i=1; i<L.length; i+=2){RadUploadNameSpace.Localization[l][L[i]]=L[i+1]; }} ;;if (typeof window.RadControlsNamespace=="u\x6e\x64\x65fined"){window.RadControlsNamespace= {} ; }window.RadControlsNamespace.Overlay= function (K){if (!this.SupportsOverlay()){return; } this.Element=K; this.Shim=document.createElement("IFRA\x4dE"); this.Shim.src="j\x61\x76ascript\x3a\047\x27;"; this.Element.parentNode.appendChild(this.Shim); this.Shim.style.zIndex="-1"; this.Shim.style.position="absolu\x74\x65"; this.Shim.style.border="0px"; this.Shim.frameBorder=0; this.Shim.style.filter="\x70\x72ogid:D\x58\x49ma\x67\x65\x54\x72ans\x66\x6frm.\x4d\151c\x72oso\x66\164.\x41\154p\x68a(sty\x6c\145=\x30,opac\x69ty=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+"\x70x"; this.Shim.style.height=this.Element.offsetHeight+"\x70\x78"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "\x30px"; return parseInt(value)+"\x70x"; };RadControlsNamespace.Overlay.prototype.Dispose= function (){ this.Element=null; this.Shim=null; };;if (typeof(RadUploadNameSpace)=="\x75\x6edefine\x64")RadUploadNameSpace= {} ; RadUploadNameSpace.o3="Panel"; RadUploadNameSpace.RadProgressArea= function (O3){ this.Id=O3[0]; this.OnClientProgressUpdating=O3[1]; this.OnClientProgressBarUpdating=O3[2]; this.l3=O3[3]; if (!this.l3){alert("Coul\x64\x20not f\x69\x6ed a\x6e instan\x63e of R\x61\x64Pr\x6fgres\x73Manag\x65\162\x20on th\x65\040\x70age.\x20Are y\x6fu mi\x73sin\x67 th\x65 con\x74rol \x64ecla\x72ati\x6fn?"); }RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Element=document.getElementById(this.Id); this.TotalProgressBarElement=this.i3("\x54\x6ftalPro\x67\x72ess\x42\x61r"); this.FileCountBarElement=this.i3("\x46ilesC\x6f\x75ntBa\x72"); this.TotalProgressElement=this.i3("TotalPr\x6f\x67ress"); this.TotalProgressPercentElement=this.i3("TotalPro\x67\x72essP\x65\x72cen\x74"); this.FilesCountElement=this.i3("\x46iles\x43\x6funt"); this.FilesCountPercentElement=this.i3("F\x69\x6cesCount\x50\x65rce\x6e\x74"); this.RequestSizeElement=this.i3("Req\x75\x65stSize"); this.SelectedFilesCountElement=this.i3("SelectedF\x69\x6cesCo\x75\x6et"); this.CurrentFileNameElement=this.i3("Cur\x72\x65ntFile\x4e\x61me"); this.TimeElapsedElement=this.i3("\x54imeElapsed"); this.TimeEstimatedElement=this.i3("\x54imeEstimate\x64"); this.TransferSpeedElement=this.i3("\x54ransferS\x70\x65ed"); this.I3=this.i3("C\x61\x6ecelBut\x74\x6fn"); this.o4= false; if (this.I3){ this.AttachDomEvent(this.I3,"click","\x43\x61ncelReq\x75\x65st"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="\165nd\x65\x66ined"){RadUploadNameSpace.ProgressAreas=[]; }RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (O4){if (this.RaiseEvent("\x4fnCli\x65\x6etPro\x67\x72ess\x55\160\x64\x61tin\x67", {ProgressData:O4 } )== false)return; this.Show(); if (this.RaiseEvent("OnClientProg\x72essBarUp\x64\x61tin\x67", {ProgressValue:O4.l4,ProgressBarElementName: "\x54otalProgr\x65\x73sBar",ProgressBarElement: this.TotalProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.TotalProgressBarElement,O4.l4); }if (this.RaiseEvent("OnClien\x74\x50rogr\x65\x73sBa\x72\x55pd\x61\x74ing", {ProgressValue:O4.i4,ProgressBarElementName: "F\x69\x6ceCountB\x61\x72",ProgressBarElement: this.FileCountBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.FileCountBarElement,O4.i4); } this.UpdateTextIndicator(this.TotalProgressElement,O4.Bytes); this.UpdateTextIndicator(this.TotalProgressPercentElement,O4.l4); this.UpdateTextIndicator(this.FilesCountElement,O4.FilesCount); this.UpdateTextIndicator(this.FilesCountPercentElement,O4.i4); this.UpdateTextIndicator(this.RequestSizeElement,O4.RequestSize); this.UpdateTextIndicator(this.SelectedFilesCountElement,O4.I4); this.UpdateTextIndicator(this.CurrentFileNameElement,O4.CurrentFileName); this.UpdateTextIndicator(this.TimeElapsedElement,O4.o5); this.UpdateTextIndicator(this.TimeEstimatedElement,O4.O5); this.UpdateTextIndicator(this.TransferSpeedElement,O4.l5); } ,Show:function (){ this.Element.style.display=""; } ,Hide:function (){ this.Element.style.display="\x6eone"; } ,UpdateHorizontalProgressBar:function (K,i5){if (K)K.style.width=i5+"\x25"; } ,UpdateVerticalProgressBar:function (K,i5){if (K)K.style.height=i5+"%"; } ,UpdateTextIndicator:function (K,text){if (K){if (typeof(K.value)=="\x73tring")K.value=text; else if (typeof(K.innerHTML)=="\163\x74\x72ing")K.innerHTML=text; }} ,I5:function (){ this.o4= true; } ,i3:function (o6){var O6=this.Id+"\x5f"+RadUploadNameSpace.o3+"_"+o6; return document.getElementById(O6); }};;if (typeof(RadUploadNameSpace)=="undefin\x65\x64")RadUploadNameSpace= {} ; RadUploadNameSpace.RadProgressManager= function (O3){RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.l6=O3[0]; var i6=O3[1]; this.UniqueRequestIdentifier=O3[2]; this.UniquePageKey=O3[3]; this.OnClientProgressStarted=O3[4]; this.OnClientProgressUpdating=O3[5]; this.FormId=O3[6]; if (O3[7]== true){ this.I6(); } this.o7="%\x48OURS%:%MINU\x54\x45S%:\x25\123\x45CONDS%\x73"; this.O7=O3[8]; if (!this.O7){alert("\x43ould not fi\x6e\x64 Ra\x64\x55plo\x61\144H\x74\x74pMo\x64\165\x6ce in\x20\164h\x65 appli\x63ation\x20confi\x67\165\x72\141\x74ion\x20file\x2e Ar\x65 you\x20miss\x69ng \x61 web\x2econ\x66ig \x64ecl\x61rat\x69on?"); } this.l7=this.i7(i6); this.I7= false; if (typeof(RadUploadNameSpace.ProgressAreas)=="undefine\x64"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {StartProgressPolling:function (){ this.o8(); this.RaiseEvent("OnCl\x69entProgre\x73\x73Sta\x72\164\x65\x64"); this.O8=new Date(); this.MakeCallback(); } ,MakeCallback:function (){if (!this.I7){ this.I7= true; this.l8(); }} ,HandleCallback:function (){if (this.i8.readyState!=4)return; this.I7= false; if (this.I8())return; var responseText=this.i8.responseText; if (responseText){try {eval(responseText); }catch (ex){ this.o9(); return; }if (rawProgressData && rawProgressData.RequestSize>0){if (!this.O9(rawProgressData)){window.location.href=window.location.href; return; }}}window.setTimeout(this.CreateEventHandler("\115akeCallb\x61ck"),this.l6); } ,I8:function (){if (!document.all)return false; if (this.i8.status==404){ this.l9(); }else if (this.i8.status!=200){ this.i9(); }else return false; return true; } ,l9:function (){alert("r\x2e\x61.d.uplo\x61\x64 Aj\x61\x78 c\x61\x6clba\x63\x6b e\x72\x72\x6fr. So\x75\162c\x65 url \x77\141s\x20not f\x6fund: \x0a\015\x0a\015"+this.l7+"\012\x0d\x0a\015\x44\151d \x79\157u\x20\162e\x67\x69st\x65\x72 t\x68\145 \x52adUpl\x6f\141d\x50rogre\x73sHand\x6cer? \x4f\162\x20are \x79ou u\x73ing \x55RL \x52ewri\x74er?"); } ,i9:function (){alert("\x72.a.d\x2e\x75pload\x20\x41jax\x20\143a\x6c\x6cbac\x6b\x20er\x72or. So\x75rce ur\x6c\040\x72\145t\x75rned \x65rror:\x20"+this.i8.status+"\x20\012\x0d\012\015"+this.l7+"\x0a\015\012\x0dDid yo\x75\x20re\x67\x69st\x65\x72 th\x65\040R\x61dUplo\x61\x64Pr\x6f\147r\x65ssHan\x64ler? \x4fr are\x20you \x75sin\x67 URL\x20Rewr\x69ter?\x20"); } ,o9:function (){alert("r.a.d.u\x70\x6coad A\x6a\x61x c\x61\x6clba\x63\153 \x65\x72ro\x72. Sour\x63\145 \x75\162l\x20retur\x6e\145d\x20inval\x69d co\x6etent\x3a \012\x0d\012\x0d"+this.i8.responseText+"\x0a\015\x0a\x0d"+this.l7+"\x0a\015\012\x0dDid y\x6f\x75 re\x67\151s\x74\x65r t\x68\145 \x52adUplo\x61dProgr\x65ssHan\x64\154e\x72? Or\x20\141r\x65 you\x20usin\x67 URL\x20Rewr\x69ter\x3f "); } ,O9:function (rawProgressData){var O4=this.CreateProgressData(rawProgressData); this.RaiseEvent("OnClie\x6e\x74Progr\x65\x73sUpd\x61\164i\x6e\x67", {ProgressData:O4 } ); for (var i=0; i<RadUploadNameSpace.ProgressAreas.length; i++){var I9=RadUploadNameSpace.ProgressAreas[i]; if (I9.o4){return false; }I9.Update(O4); }return true; } ,CreateProgressData:function (rawProgressData){var O4= {} ; var oa=Math.round(100*rawProgressData.Bytes/rawProgressData.RequestSize); var Oa=new Date()-this.O8; O4.RequestSize=this.la(rawProgressData.RequestSize); O4.l4=oa; O4.i4=Math.round(100*rawProgressData.FilesCount/(this.ia!=0?this.ia: 1)); O4.Bytes=this.la(rawProgressData.Bytes); O4.FilesCount=rawProgressData.FilesCount; O4.I4=this.ia; O4.CurrentFileName=rawProgressData.CurrentFileName; O4.o5=this.Ia(this.ob(Oa)); O4.O5=this.Ia(this.ob(Oa*(100/oa-1))); O4.l5=this.la(rawProgressData.Bytes/this.ob(Oa))+"/s"; return O4; } ,ob:function (Ob){return Math.round(Ob/1000); } ,o8:function (){ this.ia=0; var lb=document.getElementsByTagName("input"); for (var i=0; i<lb.length; i++){var ib=lb[i]; if (ib.type=="f\x69le" && ib.value!=""){ this.ia++; }}} ,l8:function (){if (typeof(XMLHttpRequest)!="\x75ndefined"){ this.i8=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="undefin\x65\x64"){ this.i8=new ActiveXObject("\x4dicroso\x66\x74.XML\x48\x54TP"); }else return; this.i8.onreadystatechange=this.CreateEventHandler("\x48andleCall\x62\x61ck"); this.i8.open("GET",this.Ib(), true); this.i8.send(""); } ,oc:function (U,method){return function (){method.apply(U,arguments); } ; } ,i7:function (i6){var Oc=i6.indexOf("lc")<0?"?": "&"; return i6+Oc+this.UniqueRequestIdentifier+"\x3d"+this.UniquePageKey; } ,Ib:function (){return this.l7+"&RadUpl\x6f\x61dTime\x53\x74amp\x3d"+new Date().getTime(); } ,I6:function (){var ic=this.CreateEventHandler("\x53tartProgre\x73\x73Poll\x69\x6eg"); var form=document.getElementById(this.FormId); if (!form){form=document.forms[0]; } this.Ic(form); var od=form.submit; try {form.submit= function (){ic(); form.submit=od; form.submit(); };}catch (exception){try {var Od=__doPostBack; __doPostBack= function (eventTarget,eventArgument){var ld= true; if (typeof(Page_ClientValidate)=="\x66unctio\x6e"){ld=Page_ClientValidate(); }if (ld){ic(); Od(eventTarget,eventArgument); }} ; }catch (exception){}} this.AttachDomEvent(form,"\x73ubmit","\x53tartProgre\x73\x73Pol\x6c\x69ng"); } ,Ic:function (form){form.enctype=form.encoding="\x6d\x75ltipart\x2f\x66orm\x2d\x64at\x61"; if (typeof(form.action)=="\x75ndefi\x6e\x65d")form.action=""; if (form.action.match(/\x3f/)){var oe=new RegExp("&?"+this.UniqueRequestIdentifier+"\x3d[^&]\x2a"); if (form.action.match(oe)){form.action=form.action.replace(oe,""); }if (form.action.substring(form.action.length-1)!="?"){form.action+="&"; }}else {form.action+="\x3f";}form.action+=this.UniqueRequestIdentifier+"\x3d"+this.UniquePageKey; } ,la:function (Oe){var le=Oe/1024; var ie=le/1024; if (ie>.8){return ""+Math.round(ie*100)/100+"MB"; }if (le>.8){return ""+Math.round(le*100)/100+"\x6bB"; }return ""+Oe+" bytes"; } ,Ia:function (Ie){var of=this.Of(Ie); return this.o7.replace(/\x25\x48\x4f\x55\x52\x53\x25/,of.If).replace(/\x25\x4d\x49\x4e\x55\x54\x45\x53\x25/,of.og).replace(/\x25\x53\x45\x43\x4f\x4e\x44\x53\x25/,of.Og); } ,Of:function (lg){var Ie=lg%60; var ig=Math.floor(lg/60); var Ig=ig%60; var oh=Math.floor(ig/60); return {If:oh,og:Ig,Og:Ie };}} ;;RadUploadNameSpace.Oh= function (lh){ this.FileInputField=lh; } ; RadUploadNameSpace.ih= function (Ih){ this.FileInputFields=Ih; } ;;RadUploadNameSpace.Utils= {} ; RadUploadNameSpace.Utils.oi=0; RadUploadNameSpace.Utils.Oi=1; RadUploadNameSpace.Utils.ii=2; RadUploadNameSpace.Utils.Ii=4; RadUploadNameSpace.Utils.oj=8; RadUploadNameSpace.Utils.Oj=16; RadUploadNameSpace.Utils.lj=RadUploadNameSpace.Utils.Oi|RadUploadNameSpace.Utils.ii|RadUploadNameSpace.Utils.oj|RadUploadNameSpace.Utils.Oj; RadUploadNameSpace.Utils.ij=RadUploadNameSpace.Utils.Oi|RadUploadNameSpace.Utils.ii|RadUploadNameSpace.Utils.Ii|RadUploadNameSpace.Utils.oj|RadUploadNameSpace.Utils.Oj; RadUploadNameSpace.Utils.Ij=RadUploadNameSpace.Utils.oj|RadUploadNameSpace.Utils.Oj; RadUploadNameSpace.Utils.AppendStyleSheet= function (ok,Ok){var lk=(navigator.appName=="\x4d\x69\x63roso\x66\x74 Int\x65rnet Ex\x70\x6cor\x65\x72") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); var ik=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); if (lk || ik){document.write("\074"+"\x6c\x69nk"+" rel=\x27\x73tyle\x73\x68eet\x27 type=\x27\x74ext\x2f\x63s\x73\047 hre\x66=\047"+Ok+"\x27>"); }else {var Ik=document.createElement("LINK"); Ik=Ik.cloneNode( true); Ik.rel="st\x79\x6cesheet"; Ik.type="text\x2f\x63ss"; Ik.href=Ok; document.getElementById(ok+"StyleSheet\x48\x6flder").appendChild(Ik); }} ; RadUploadNameSpace.Utils.ll= function (){for (var i=0; i<RadUploadNameSpace.il.length; i++){var Il=RadUploadNameSpace.il[i]; if (Il.Dispose){Il.Dispose(); }}} ; RadUploadNameSpace.Utils.AttachEvent= function (om,z,Om){if (document.attachEvent){om.attachEvent("on"+z,Om); }else if (window.addEventListener){om.addEventListener(z,Om, true); }} ; RadUploadNameSpace.Utils.Im= function (e){if (!e)e=event; var On; if (e.srcElement && e.srcElement.name){On=e.srcElement.name; }else if (e.target && e.target.name){On=e.target.name; }if (On=="Remove\x52ow"){if (this.Container.In(this.rowIndex)!= false){ this.Container=null; }}if (On=="\x43\x6cearInp\x75\x74"){var index=this.rowIndex; if (this.Container.oo(index)!= false){ this.Container=null; }}} ; RadUploadNameSpace.Utils.Oo= function (Io,op,value){for (var i=0; i<Io.length; i++){if (Io[i][op]==value){return i; }}return -1; } ; RadUploadNameSpace.Utils.Op= function (lp,ip){Ip.submit= function (){try {ip(); this.submit=lp; this.submit(); }catch (oq){}} ; } ; RadUploadNameSpace.Utils.Oq= function (ip){try {Od=__doPostBack; __doPostBack= function (eventTarget,eventArgument){ip(); var ld= true; if (typeof(Page_ClientValidate)=="\x66unc\x74\x69on"){ld=Page_ClientValidate(); }if (ld){Od(eventTarget,eventArgument); }} ; }catch (oq){}} ; RadUploadNameSpace.Utils.lq= function (iq,ip){var Ip=null; try {Ip=document.getElementById(iq); }catch (ex){Ip=document.forms[0]; }var lp=Ip.submit; try {RadUploadNameSpace.Utils.Op(lp,ip); }catch (oq){RadUploadNameSpace.Utils.Oq(ip); }RadUploadNameSpace.Utils.AttachEvent(Ip,"su\x62\x6dit", function (){ip(); } ); Ip=null; } ; RadUploadNameSpace.Utils.Iq= function (or,tagName){var Or=or.createElement(tagName); return Or.cloneNode( true); } ; RadUploadNameSpace.Utils.lr= function (ir,Ir){RadUploadNameSpace.Utils.os(ir,Ir,"b\x6c\x6fck","\x74\x61ble-ce\x6c\x6c"); } ; RadUploadNameSpace.Utils.Os= function (ls,Ir){RadUploadNameSpace.Utils.os(ls,Ir,"\x62lock","\x74able-r\x6f\x77"); } ; RadUploadNameSpace.Utils.os= function (is,Ir,Is,ot){if (Ir){is.style.display=document.all?Is:ot; }else {is.style.display="\x6eone"; }} ; RadUploadNameSpace.Utils.IsSafari= function (){return (navigator.userAgent.toLowerCase().indexOf("\x73\x61fari")>0); } ;;