function GetRadUpload(l9){return window[l9]; } ; if (typeof(RadUploadNameSpace)=="un\x64\x65\146i\x6e\x65d")RadUploadNameSpace= {} ; RadUploadNameSpace.RadUpload= function (G){ this.oa= false; RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Id=G[0]; this.Oa(document.getElementById(G[1])); this.la=G[2]; this.ia=G[3]; this.Enabled=G[4]; this.Ia=G[5]; this.ob=G[6]; this.Ob=G[7]; if (RadControlsNamespace.Browser.IsSafari || (RadControlsNamespace.Browser.IsOpera && !RadControlsNamespace.Browser.IsOpera9)){ this.Ob= false; } this.lb=G[8]; this.ib=G[9]; this.Ib=G[10]&1; this.oc=G[10]&2; this.Oc=G[10]&4; this.OnClientAdded=G[11]; this.OnClientAdding=G[12]; this.OnClientDeleting=G[13]; this.OnClientClearing=G[14]; this.OnClientFileSelected=G[15]; this.OnClientDeletingSelected=G[16]; this.CurrentIndex=0; this.lc=document.getElementById(this.Id+"B\x75ttonAre\x61"); this.ListContainer=document.getElementById(this.Id+"ListContai\x6e\x65r"); if (!document.readyState || document.readyState=="\x63omple\x74\x65"){ this.InnerConstructor(); }else { this.AttachDomEvent(window,"\x6coad","InnerC\x6f\x6estruc\x74\x6fr"); }} ; RadUploadNameSpace.RadUpload.prototype= {InnerConstructor:function (){ this.ic(); this.Ic=this.od(document.getElementById(this.Id+"\x41ddB\x75\x74ton"),"\x41dd","AddFileInpu\x74"); this.Od=this.od(document.getElementById(this.Id+"\x44eleteBu\x74\x74on"),"\x44elete","Delete\x53\x65lecte\x64\x46ile\x49nputs"); this.ld=this.oe(); var Oe=this.Ia==0?this.ob:Math.min(this.ob,this.Ia); for (var i=0; i<Oe; i++){ this.AddFileInput(); } this.le(); this.oa= true; } ,AddFileInput:function (){var o4=this.AddFileInputAt(this.ListContainer.rows.length); if (this.oa){try {o4.focus(); }catch (ex){}}} ,AddFileInputAt:function (index){if (typeof(index)=="undefined" || index>this.ListContainer.rows.length){index=this.ListContainer.rows.length; }if (this.Ia>0 && index>=this.Ia)return; if (this.oa){var ie=this.RaiseEvent("OnClie\x6etAdding",new RadUploadNameSpace.RadUploadEventArgs(null)); if (ie== false){return; }} this.Ie(index); } ,Ie:function (index){var of=this.ListContainer.insertRow(index); this.AttachDomEvent(of,"c\x6c\x69ck","\x52owClick\x65\x64"); var Of; if (this.Ib){Of=of.insertCell(of.cells.length); this.If(Of); }Of=of.insertCell(of.cells.length); this.og(Of); if (this.Oc){Of=of.insertCell(of.cells.length); this.Og(Of); }if (this.oc){Of=of.insertCell(of.cells.length); this.lg(Of); } this.le(); this.RaiseEvent("OnClie\x6e\x74Adde\x64", {Row:of } ); this.CurrentIndex++; return of; } ,If:function (container){var Ig=document.createElement("\x69\x6eput"); Ig.type="c\x68\x65ckbox"; Ig.id=this.Id+"checkbox"+this.CurrentIndex; container.appendChild(Ig); Ig.className="\122\x61\x64Uplo\x61\x64Fil\x65\x53el\x65ctor"; Ig.disabled=!this.Enabled; return Ig; } ,Og:function (container){var button=document.createElement("\151n\x70\x75t"); button.type="bu\x74\x74on"; button.id=this.Id+"\143lea\x72"+this.CurrentIndex; container.appendChild(button); this.od(button,"C\x6c\x65ar"); button.className="Ra\x64\x55ploadCl\x65\141rB\x75\164t\x6f\x6e"; button.name="\x43\x6cearInp\x75\x74"; button.disabled=!this.Enabled; return button; } ,lg:function (container){var button=document.createElement("input"); button.type="\x62utton"; button.id=this.Id+"re\x6d\x6fve"+this.CurrentIndex; container.appendChild(button); button.value=RadUploadNameSpace.Localization[this.la]["\x52emove"]; button.className="\x52adUploadRem\x6f\166eB\x75\x74to\x6e"; button.name="RemoveRo\x77"; button.disabled=!this.Enabled; return button; } ,og:function (container){var o4=this.oh(); this.AttachDomEvent(o4,"c\x68\x61nge","Fi\x6c\x65Selecte\x64"); if (this.Ob){o4.className="RealFi\x6c\x65Input"; var div=document.createElement("div"); container.appendChild(div); div.style.position="\x72elative"; div.appendChild(this.ld.cloneNode( true)); div.appendChild(o4); if (!this.lb){ this.AttachDomEvent(o4,"keyup","SyncFil\x65\x49nput\x43\x6fnte\x6e\164"); }else { this.AttachDomEvent(o4,"keydown","CancelEvent"); }return div; }else {container.appendChild(o4); o4.className="\x4eoSkinnedFile\x55\156p\x75\x74"; if (this.lb){ this.AttachDomEvent(o4,"keydow\x6e","\x43ance\x6c\x45vent"); }return o4; }} ,CancelEvent:function (L){if (!L)L=window.event; if (!L)return false; L.returnValue= false; L.cancelBubble= true; if (L.stopPropagation){L.stopPropagation(); }if (L.preventDefault){L.preventDefault(); }return false; } ,ClearFileInputAt:function (index){var of=this.ListContainer.rows[index]; if (of){var ie=this.RaiseEvent("O\x6eClientClear\x69\x6eg",new RadUploadNameSpace.RadUploadEventArgs(this.GetFileInputFrom(of))); if (ie== false){return false; } this.DeleteFileInputAt(index, true); this.Ie(index, true); }} ,oe:function (){var Oh=document.createElement("div"); Oh.style.position="\x61bs\x6f\x6cute"; Oh.style.top=0; Oh.style.left=0; Oh.style.zIndex=1; var lh=document.createElement("input"); lh.type="text"; lh.className="\x52adUplo\x61\x64Input\x46\x69el\x64"; Oh.appendChild(lh); var ih=document.createElement("inp\x75\x74"); ih.type="button"; Oh.appendChild(ih); this.od(ih,"\x53elect"); ih.disabled=!this.Enabled; ih.className="RadUploadSe\x6c\x65ctB\x75\x74ton"; return Oh; } ,oh:function (){var o4=document.createElement("input"); o4.type="file"; o4.name=this.GetID("file"); o4.id=this.GetID("\x66ile"); o4.disabled=!this.Enabled; return o4; } ,DeleteFileInputAt:function (index,Ih){var of=this.ListContainer.rows[index]; if (of){if (!Ih){var ie=this.RaiseEvent("\x4fnClientDe\x6c\x65tin\x67",new RadUploadNameSpace.RadUploadEventArgs(this.GetFileInputFrom(of))); if (ie== false){return false; }}of.parentNode.removeChild(of); this.le(); }} ,DeleteSelectedFileInputs:function (){var oi=[]; var Oi=[]; for (var i=this.ListContainer.rows.length-1; i>=0; i--){var ii=this.ListContainer.rows[i]; var Ii=ii.cells[0].childNodes[0]; if (Ii.checked){Oi[Oi.length]=i; oi[oi.length]=this.GetFileInputFrom(ii); }}var ie=this.RaiseEvent("OnClient\x44\145\x6cetingSe\x6c\x65ct\x65\x64",new RadUploadNameSpace.RadUploadDeleteSelectedEventArgs(oi)); if (ie== false){return; }for (var i=0; i<Oi.length; i++){ this.DeleteFileInputAt(Oi[i], true); }} ,ic:function (){var oj=this.ListContainer.rows[0]; oj.parentNode.removeChild(oj); } ,FileSelected:function (e){if (this.Ob){ this.SyncFileInputContent(e); } this.RaiseEvent("OnClient\x46\x69leS\x65\x6cect\x65\144",new RadUploadNameSpace.RadUploadEventArgs(e.srcElement?e.srcElement:e.target)); } ,GetFileInputFrom:function (of){var Oj=of.getElementsByTagName("input"); for (var i=0; i<Oj.length; i++){if (Oj[i].type=="file"){return Oj[i]; }}return null; } ,GetFileInputs:function (){var I3=[]; for (var i=0; i<this.ListContainer.rows.length; i++){I3[I3.length]=this.GetFileInputFrom(this.ListContainer.rows[i]); }return I3; } ,GetID:function (d){return this.Id+d+this.CurrentIndex; } ,lj:function (H){if (H){if (H.tagName.toLowerCase()=="tr"){return H; }else {return this.lj(H.parentNode); }}return null; } ,od:function (button,ij,Ij){if (button){button.value=RadUploadNameSpace.Localization[this.la][ij]; if (this.Enabled){if (Ij)this.AttachDomEvent(button,"\x63lick",Ij); }else {button.disabled= true; }}return button; } ,IsExtensionValid:function (ok){if (ok=="")return true; for (var i=0; i<this.ib.length; i++){var Ok=this.ib[i].substring(2); var lk=new RegExp("."+Ok+"\x24","i\x67"); if (ok.match(lk)){return true; }}return false; } ,RowClicked:function (e){var srcElement=e.srcElement?e.srcElement:e.target; var ik=this.lj(srcElement); if (srcElement.name=="\x52emoveRo\x77"){ this.DeleteFileInputAt(ik.rowIndex); }else if (srcElement.name=="\x43learInpu\x74"){ this.ClearFileInputAt(ik.rowIndex); }} ,le:function (){ this.Ik(this.Od,this.ListContainer.rows.length>0); this.Ik(this.Ic,(this.Ia<=0) || (this.ListContainer.rows.length<this.Ia)); } ,Ik:function (button,ll){if (button){button.className=ll?"\x52adUploa\x64\x42utto\x6e": "\x52adUp\x6c\x6fadBut\x74\x6fnDi\x73abled"; }} ,SyncFileInputContent:function (e){var o4=e.srcElement?e.srcElement:e.target; var il=o4.parentNode.childNodes[0].childNodes[0]; if (o4 !== il){il.value=o4.value; il.title=o4.value; il.disabled= true; }} ,Oa:function (form){if (!form)form=document.forms[0]; form.enctype=form.encoding="\x6dulti\x70\x61rt/fo\x72\x6d-da\x74\141"; } ,ValidateExtensions:function (){for (var i=0; i<this.ListContainer.rows.length; i++){var Il=this.GetFileInputFrom(this.ListContainer.rows[i]).value; if (!this.IsExtensionValid(Il)){return false; }}return true; }} ; if (typeof(o)!="\x75nde\x66\x69ned"){if (o.I!=null && o.I.A!=null){o.I.A(); }};if (typeof window.RadControlsNamespace=="\x75\156d\x65\x66ined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Browser)=="\x75ndefined" || typeof(window.RadControlsNamespace.Browser.Version)==null || window.RadControlsNamespace.Browser.Version<1){window.RadControlsNamespace.Browser= {Version: 1 } ; window.RadControlsNamespace.Browser.ParseBrowserInfo= function (){ this.IsMacIE=(navigator.appName=="\x4dicrosoft In\x74\x65rne\x74\x20E\x78\x70lor\x65\x72") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); this.IsMozilla=window.netscape && !window.opera; this.IsNetscape=/\x4e\x65\x74\x73\x63\x61\x70\x65/.test(navigator.userAgent); this.IsOpera=window.opera; this.IsOpera9=window.opera && (parseInt(window.opera.version())>8); this.IsIE=!this.IsMacIE && !this.IsMozilla && !this.IsOpera && !this.IsSafari; this.O=/\x4d\x53\x49\x45\x20\x37/.test(navigator.appVersion); this.StandardsMode=this.IsSafari || this.IsOpera9 || this.IsMozilla || document.compatMode=="\x43\123S1\x43\x6fmpat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo(); }if (typeof(o)!="\x75ndef\x69\x6eed"){if (o.I!=null && o.I.A!=null){o.I.A(); }};if (typeof window.RadControlsNamespace=="u\x6e\x64\x65fine\x64"){window.RadControlsNamespace= {} ; }RadControlsNamespace.DomEventsMixin= function (){} ; RadControlsNamespace.DomEventsMixin.Initialize= function (U){U.AttachDomEvent=this.AttachDomEvent; U.DetachDomEvent=this.DetachDomEvent; U.DisposeDomEvents=this.DisposeDomEvents; U.ClearEventPointers=this.ClearEventPointers; U.RegisterForAutomaticDisposal=this.RegisterForAutomaticDisposal; U.Z=this.Z; U.CreateEventHandler=this.CreateEventHandler; U.z=this.z; U.ClearEventPointers(); } ; RadControlsNamespace.DomEventsMixin.CreateEventHandler= function (W){var w=this ; return function (e){if (!e)e=window.event; return w[W](e); };} ; RadControlsNamespace.DomEventsMixin.AttachDomEvent= function (V,v,T){var t=this.CreateEventHandler(T); this.S[this.S.length]=[V,v,t]; this.z(V,v,t); } ; RadControlsNamespace.DomEventsMixin.z= function (V,v,t){if (V.attachEvent){V.attachEvent("on"+v,t); }else if (V.addEventListener){V.addEventListener(v,t, false); }} ; RadControlsNamespace.DomEventsMixin.DetachDomEvent= function (V,v,t){if (V.detachEvent){V.detachEvent("on"+v,t); }} ; RadControlsNamespace.DomEventsMixin.DisposeDomEvents= function (){for (var i=0; i<this.S.length; i++){ this.DetachDomEvent(this.S[i][0],this.S[i][1],this.S[i][2]); } this.ClearEventPointers(); } ; RadControlsNamespace.DomEventsMixin.RegisterForAutomaticDisposal= function (R){var r=this ; var Q=this.CreateEventHandler(R); var P= function (){Q(); r.DisposeDomEvents(); r=null; } ; this.z(window,"unload",P); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.S=[]; } ; if (typeof(o)!="\x75\x6e\x64efine\x64"){if (o.I!=null && o.I.A!=null){o.I.A(); }};if (typeof window.RadControlsNamespace=="u\x6e\x64\x65fine\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.EventMixin)=="\x75ndefined" || typeof(window.RadControlsNamespace.EventMixin.Version)==null || window.RadControlsNamespace.EventMixin.Version<1){RadControlsNamespace.EventMixin= {Version: 1,Initialize:function (U){U._listeners= {} ; U._eventsEnabled= true; U.AttachEvent=this.AttachEvent; U.DetachEvent=this.DetachEvent; U.RaiseEvent=this.RaiseEvent; U.EnableEvents=this.EnableEvents; U.DisableEvents=this.DisableEvents; } ,DisableEvents:function (){ this._eventsEnabled= false; } ,EnableEvents:function (){ this._eventsEnabled= true; } ,AttachEvent:function (v,N){if (!this._listeners[v]){ this._listeners[v]=[]; } this._listeners[v][this._listeners[v].length]=(RadControlsNamespace.EventMixin.ResolveFunction(N)); } ,DetachEvent:function (v,N){var n=this._listeners[v]; if (!n){return false; }var M=RadControlsNamespace.EventMixin.ResolveFunction(N); for (var i=0; i<n.length; i++){if (M==n[i]){n.splice(i,1); return true; }}return false; } ,ResolveFunction:function (m){if (typeof(m)=="\x66\x75\x6ection"){return m; }else if (typeof(window[m])=="fun\x63\x74ion"){return window[m]; }else {return new Function("\x76ar Sende\x72\x20= a\x72\x67um\x65nts[0];\x20\x76ar \x41rgume\x6ets = \x61\162\x67ument\x73[1];"+m); }} ,RaiseEvent:function (v,L){if (!this._eventsEnabled){return true; }var l= true; if (this[v]){var K=RadControlsNamespace.EventMixin.ResolveFunction(this[v])(this,L); if (typeof(K)=="\165\x6e\x64efine\x64"){K= true; }l=l && K; }if (!this._listeners[v])return l; for (var i=0; i<this._listeners[v].length; i++){var N=this._listeners[v][i]; var K=N(this,L); if (typeof(K)=="\x75ndefin\x65\x64"){K= true; }l=l && K; }return l; }};}if (typeof(o)!="\165\x6e\x64efine\x64"){if (o.I!=null && o.I.A!=null){o.I.A(); }};if (typeof(RadUploadNameSpace)=="u\x6e\x64efined")RadUploadNameSpace= {} ; if (typeof(RadUploadNameSpace.Localization)=="\x75\156d\x65\x66ined")RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Localization.ProcessRawArray= function (k){var J=k[0]; if (typeof(RadUploadNameSpace.Localization[J])=="\x75ndefined"){RadUploadNameSpace.Localization[J]=[]; }for (var i=1; i<k.length; i+=2){RadUploadNameSpace.Localization[J][k[i]]=k[i+1]; }} ; if (typeof(o)!="\x75ndefined"){if (o.I!=null && o.I.A!=null){o.I.A(); }};if (typeof window.RadControlsNamespace=="\165ndef\x69\x6eed"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Overlay)=="unde\x66\x69ned" || typeof(window.RadControlsNamespace.Overlay.Version)==null || window.RadControlsNamespace.Overlay.Version<.11e1){window.RadControlsNamespace.Overlay= function (H){if (!this.SupportsOverlay()){return; } this.Element=H; this.Shim=document.createElement("IFRAME"); this.Shim.src="javascri\x70t:\047\x27;"; this.Element.parentNode.insertBefore(this.Shim,this.Element); if (H.style.zIndex>0){ this.Shim.style.zIndex=H.style.zIndex-1; } this.Shim.style.position="absolu\x74\x65"; this.Shim.style.border="0px"; this.Shim.frameBorder=0; this.Shim.style.filter="progi\x64\x3aDXIma\x67\x65Tra\x6esform.M\x69\143r\x6f\x73of\x74.Alp\x68\141(\x73\164y\x6ce=0,o\x70\141c\x69ty=0)"; this.Shim.disabled="disabled"; };window.RadControlsNamespace.Overlay.Version=.11e1; 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+"\160\x78"; this.Shim.style.height=this.Element.offsetHeight+"px"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "0px"; return parseInt(value)+"\160x"; };RadControlsNamespace.Overlay.prototype.Dispose= function (){if (!this.SupportsOverlay()){return; }if (this.Shim.parentNode){ this.Shim.parentNode.removeChild(this.Shim); } this.Element=null; this.Shim=null; };}if (typeof(o)!="undefined"){if (o.I!=null && o.I.A!=null){o.I.A(); }};if (typeof(RadUploadNameSpace)=="undefin\x65\x64")RadUploadNameSpace= {} ; RadUploadNameSpace.h="P\x61\x6eel"; RadUploadNameSpace.RadProgressArea= function (G){ this.Id=G[0]; this.OnClientProgressUpdating=G[1]; this.OnClientProgressBarUpdating=G[2]; this.g=G[3]; if (!this.g){alert("C\x6f\x75ld no\x74\x20fin\x64\x20an\x20instanc\x65\040\x6ff Ra\x64Prog\x72essMa\x6e\x61ge\x72 on t\x68\145 \x70age.\x20\101\x72e y\x6fu mi\x73sing\x20the\x20cont\x72ol d\x65cla\x72ati\x6fn?"); }RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Element=document.getElementById(this.Id); this.PrimaryProgressBarElement=this.FindElement("Pr\x69\x6daryPro\x67\x72essB\x61\162"); this.PrimaryTotalElement=this.FindElement("\120ri\x6d\x61ryTot\x61\x6c"); this.PrimaryValueElement=this.FindElement("Pri\x6d\x61ryValu\x65"); this.PrimaryPercentElement=this.FindElement("\x50rimaryPerc\x65\x6et"); this.SecondaryProgressBarElement=this.FindElement("SecondaryPr\x6f\x67ress\x42\x61r"); this.SecondaryTotalElement=this.FindElement("\x53econda\x72\x79Tota\x6c"); this.SecondaryValueElement=this.FindElement("Se\x63\x6fndaryV\x61\x6cue"); this.SecondaryPercentElement=this.FindElement("Sec\x6f\x6edaryPe\x72\x63ent"); this.F=this.FindElement("\x43urre\x6e\x74Opera\x74\x69on"); this.TimeElapsedElement=this.FindElement("\x54imeElapse\x64"); this.TimeEstimatedElement=this.FindElement("\x54imeEstimat\x65\x64"); this.SpeedElement=this.FindElement("\x53peed"); this.CancelButtonElement=this.FindElement("\x43ancelBu\x74\x74on"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"\x63lick","CancelReque\x73\x74"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="undefined"){RadUploadNameSpace.ProgressAreas=[]; } this.RegisterForAutomaticDisposal("Hi\x64e"); RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (f){if (this.RaiseEvent("OnC\x6cientProgre\x73\x73Upd\x61ting", {ProgressData:f } )== false)return; this.Show(); if (this.RaiseEvent("O\x6e\x43lient\x50\x72ogre\x73\x73Ba\x72\x55pd\x61\x74ing", {ProgressValue:f.PrimaryPercent,ProgressBarElementName: "\x50rimaryProg\x72\x65ssBa\x72",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,f.PrimaryPercent); }if (this.RaiseEvent("\x4fnClient\x50\x72ogre\x73\x73Ba\x72\125\x70\144a\x74\x69ng", {ProgressValue:f.SecondaryPercent,ProgressBarElementName: "\x53\x65condar\x79\x50rog\x72\x65ssB\x61\x72",ProgressBarElement: this.SecondaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.SecondaryProgressBarElement,f.SecondaryPercent); } this.UpdateTextIndicator(this.PrimaryTotalElement,f.PrimaryTotal); this.UpdateTextIndicator(this.PrimaryValueElement,f.PrimaryValue); this.UpdateTextIndicator(this.PrimaryPercentElement,f.PrimaryPercent); this.UpdateTextIndicator(this.SecondaryTotalElement,f.SecondaryTotal); this.UpdateTextIndicator(this.SecondaryValueElement,f.SecondaryValue); this.UpdateTextIndicator(this.SecondaryPercentElement,f.SecondaryPercent); this.UpdateTextIndicator(this.F,f.CurrentOperationText); this.UpdateTextIndicator(this.TimeElapsedElement,f.TimeElapsed); this.UpdateTextIndicator(this.TimeEstimatedElement,f.TimeEstimated); this.UpdateTextIndicator(this.SpeedElement,f.Speed); } ,Show:function (){ this.Element.style.display=""; if (this.Element.style.position=="\x61bsolute"){if (typeof(this.Overlay)=="undefined"){ this.Overlay=new RadControlsNamespace.Overlay(this.Element); } this.Overlay.Update(); }} ,Hide:function (){ this.Element.style.display="no\x6e\x65"; if (this.Overlay){ this.Overlay.Dispose(); this.Overlay=null; }} ,UpdateHorizontalProgressBar:function (H,D){if (H && typeof(D)!="\x75ndefined")H.style.width=D+"\x25"; } ,UpdateVerticalProgressBar:function (H,D){if (H && typeof(D)!="\x75ndefined")H.style.height=D+"%"; } ,UpdateTextIndicator:function (H,text){if (H && typeof(text)!="\x75\x6edefine\x64"){if (typeof(H.value)=="string")H.value=text; else if (typeof(H.innerHTML)=="\x73\164r\x69\x6eg")H.innerHTML=text; }} ,CancelRequest:function (){ this.CancelClicked= true; } ,FindElement:function (d){var C=this.Id+"_"+RadUploadNameSpace.h+"_"+d; return document.getElementById(C); }};if (typeof(o)!="undefined"){if (o.I!=null && o.I.A!=null){o.I.A(); }};if (typeof(RadUploadNameSpace)=="\x75\x6edefined")RadUploadNameSpace= {} ; RadUploadNameSpace.RadProgressManager= function (G){RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.c=Math.max(G[0],50); var B=G[1]; this.EnableMemoryOptimizationIdentifier=G[2]; this.UniqueRequestIdentifier=G[3]; this.o0=G[4]; this.OnClientProgressStarted=G[5]; this.OnClientProgressUpdating=G[6]; this.FormId=G[7]; this.O0=G[8]; this.EnableMemoryOptimization=G[9]; this.SuppressMissingHttpModuleError=G[10]; this.TimeFormat="\045\x48OURS%:%M\x49\x4eUTE\x53\x25:%\x53\x45CON\x44\x53%s"; var form=document.getElementById(this.FormId); if (!form){form=document.forms[0]; } this.l0(form); if (this.O0== true){ this.RegisterForSubmit(form); } this.i0=this.I0(B); this.o1= false; if (typeof(RadUploadNameSpace.ProgressAreas)=="\x75\156def\x69\x6eed"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("On\x43\x6cientP\x72\x6fgre\x73\x73Sta\x72\164\x65\x64"); this.O1=new Date(); this.MakeCallback(); } ,MakeCallback:function (){if (!this.o1){ this.o1= true; this.l1(); }} ,HandleCallback:function (){if (this.i1.readyState!=4)return; this.o1= false; if (this.ErrorOccured())return; var responseText=this.i1.responseText; if (responseText){try {eval(responseText); }catch (ex){ this.I1(); return; }if (rawProgressData){if (this.EnableMemoryOptimization== true && !this.SuppressMissingHttpModuleError && rawProgressData.ProgressError){alert(rawProgressData.ProgressError); return; }if (rawProgressData.InProgress){if (this.o2>0 || rawProgressData.RadProgressContextCustomCounters){ this.ModifyProgressData(rawProgressData); if (!this.UpdateProgressAreas(rawProgressData)){window.location.href=window.location.href; return; }}}}}window.setTimeout(this.CreateEventHandler("MakeCall\x62ack"),this.c); } ,ErrorOccured:function (){if (!document.all)return false; if (this.i1.status==404){ this.O2(); }else if (this.i1.status>0 && this.i1.status!=200){ this.l2(); }else return false; return true; } ,O2:function (){alert("r.a.d.\x75\x70load\x20\x41jax\x20callbac\x6b\x20er\x72\x6fr.\x20Sour\x63e url\x20\167a\x73 not \x66ound:\x20\012\x0d\012\x0d"+this.i0+"\012\x0d\x0a\015\x44id you\x20\x72eg\x69\163t\x65\x72 t\x68\x65 \x52\141d\x55\160l\x6fadPro\x67\162e\x73sHan\x64\154\x65\162\x20in \x77eb.c\x6fnfig\x3f"+"\x0d\012\015\x0aPleas\x65\x2c se\x65\040t\x68\x65 h\x65\x6cp \x66\157r\x20more \x64\145t\x61ils: \x52adUpl\x6fad 2\x2e\060\x20- Us\x69ng r\x2ea.d.\x75plo\x61d - \x43onf\x69gura\x74ion\x20- R\x61dUp\x6coa\x64Pro\x67res\x73Ha\x6edl\x65r."); } ,l2:function (){alert("\x72.a.d.uploa\x64\x20Aja\x78\x20cal\x6c\x62ack\x20\145r\x72\157\x72\056 \x53\157u\x72\143e\x20url r\x65\164\x75\162n\x65d er\x72or: "+this.i1.status+" \012\x0d\012\015"+this.i1.i2+"\x20\012\x0d\012\015"+this.i0+"\x0a\015\x0a\x0dDid \x79\x6fu r\x65gister\x20\x74he\x20\x52ad\x55ploadP\x72ogres\x73\110a\x6edler \x69n we\x62\056\x63onfi\x67\077"+"\015\x0a\x0d\012\x50lease,\x20\x73ee\x20\164h\x65\x20he\x6c\x70 \x66\157r\x20\155o\x72e det\x61ils: \x52adUp\x6c\157\x61d 2.\x30 - U\x73ing \x72.a.\x64.upl\x6fad \x2d Co\x6efig\x75rat\x69on \x2d Ra\x64Upl\x6fad\x50rog\x72es\x73Ha\x6edle\x72."); } ,I1:function (){alert("\x72.a.d.upload \x41\x6aax \x63\x61ll\x62\x61ck \x65\x72ro\x72\056\x20Source\x20\165r\x6c retu\x72\156e\x64 inva\x6cid co\x6etent\x3a \012\x0d\012\x0d"+this.i1.responseText+"\x0a\015\012\x0d"+this.i0+"\x0a\015\x0a\x0dDid y\x6f\165 \x72\145gi\x73\164e\x72\x20th\x65\040\x52\141d\x55\160l\x6fadPro\x67ressH\x61ndle\x72\040\x69n web\x2econ\x66ig?"+"\015\x0a\015\012\x50leas\x65\x2c s\x65\x65 t\x68\x65 he\x6c\160 \x66or mo\x72\x65 d\x65tails\x3a\040\x52\141d\x55ploa\x64 2.0 \x2d Us\x69ng r\x2ea.d.\x75ploa\x64 - \x43onf\x69gura\x74ion\x20- R\x61dU\x70loa\x64Pro\x67re\x73sHa\x6edl\x65r."); } ,UpdateProgressAreas:function (rawProgressData){ this.RaiseEvent("OnCli\x65\x6etProg\x72\x65ssU\x70\144a\x74\x69ng", {ProgressData:rawProgressData } ); for (var i=0; i<RadUploadNameSpace.ProgressAreas.length; i++){var I2=RadUploadNameSpace.ProgressAreas[i]; if (I2.CancelClicked){return false; }I2.Update(rawProgressData); }return true; } ,ModifyProgressData:function (rawProgressData){var o3=new Date()-this.O1; if (typeof(rawProgressData.TimeElapsed)=="\x75ndefi\x6e\x65d")rawProgressData.TimeElapsed=this.GetFormattedTime(this.ToSeconds(o3)); if (rawProgressData.RadUpload){var O3=rawProgressData.RadUpload.RequestSize; var l3=rawProgressData.RadUpload.Bytes; if (typeof(rawProgressData.PrimaryTotal)=="undefine\x64")rawProgressData.PrimaryTotal=this.FormatBytes(O3); if (typeof(rawProgressData.PrimaryValue)=="\x75ndefined")rawProgressData.PrimaryValue=this.FormatBytes(l3); if (typeof(rawProgressData.PrimaryPercent)=="undefined")rawProgressData.PrimaryPercent=Math.round(100*l3/O3); if (typeof(rawProgressData.SecondaryTotal)=="un\x64\x65fined")rawProgressData.SecondaryTotal=this.o2; if (typeof(rawProgressData.SecondaryValue)=="\x75ndefined")rawProgressData.SecondaryValue=rawProgressData.RadUpload.FilesCount; if (typeof(rawProgressData.SecondaryPercent)=="\x75ndefin\x65\x64")rawProgressData.SecondaryPercent=Math.round(100*rawProgressData.RadUpload.FilesCount/(this.o2!=0?this.o2: 1)); if (typeof(rawProgressData.CurrentOperationText)=="unde\x66\x69ned")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="undefi\x6e\x65d")rawProgressData.Speed=this.FormatBytes(rawProgressData.RadUpload.Bytes/this.ToSeconds(o3))+"\x2fs"; }if (typeof(rawProgressData.TimeEstimated)=="\x75ndefined" && typeof(rawProgressData.PrimaryPercent)=="\x6eumber")rawProgressData.TimeEstimated=this.GetFormattedTime(this.ToSeconds(o3*(100/rawProgressData.PrimaryPercent-1))); } ,ToSeconds:function (i3){return Math.round(i3/1000); } ,InitSelectedFilesCount:function (){ this.o2=0; var I3=document.getElementsByTagName("\x69nput"); for (var i=0; i<I3.length; i++){var o4=I3[i]; if (o4.type=="file" && o4.value!=""){ this.o2++; }}} ,l1:function (){if (typeof(XMLHttpRequest)!="\x75\x6edefin\x65\x64"){ this.i1=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="\x75ndefine\x64"){ this.i1=new ActiveXObject("\x4dicros\x6f\x66t.XML\x48\x54TP"); }else return; this.i1.onreadystatechange=this.CreateEventHandler("\x48andle\x43\x61llbac\x6b"); this.i1.open("\x47ET",this.O4(), true); this.i1.send(""); } ,l4:function (w,method){return function (){method.apply(w,arguments); } ; } ,I0:function (B){var i4=B.indexOf("?")<0?"?": "\046"; return B+i4+this.UniqueRequestIdentifier+"="+this.o0; } ,O4:function (){return this.i0+"&RadUpl\x6f\x61dTime\x53\x74amp\x3d"+new Date().getTime(); } ,RegisterForSubmit:function (form){var I4=this.CreateEventHandler("\123\x74\141rtP\x72\x6fgres\x73\x50ol\x6c\x69ng"); var o5=form.submit; try {form.submit= function (){I4(); form.submit=o5; form.submit(); };}catch (exception){try {var O5=__doPostBack; __doPostBack= function (eventTarget,eventArgument){var l5= true; if (typeof(Page_ClientValidate)=="fu\x6e\x63tion"){l5=Page_ClientValidate(); }if (l5){I4(); O5(eventTarget,eventArgument); }} ; }catch (exception){}} this.AttachDomEvent(form,"\x73ubmit","\x53tartProgr\x65\x73sPol\x6c\x69ng"); } ,l0:function (form){if (typeof(form.action)=="undefined")form.action=""; if (form.action.match(/\x3f/)){form.action=this.i5(form.action,this.UniqueRequestIdentifier); form.action=this.i5(form.action,this.EnableMemoryOptimizationIdentifier); if (form.action.substring(form.action.length-1)!="\x3f"){form.action+="&"; }}else {form.action+="\x3f";}form.action+=this.UniqueRequestIdentifier+"\x3d"+this.o0; if (this.EnableMemoryOptimization){form.enctype=form.encoding="multipart\x2f\x66orm-\x64\x61ta"; }else {form.action+="\x26"+this.EnableMemoryOptimizationIdentifier+"=false"; }} ,i5:function (I5,o6){var O6=new RegExp("\x26?"+o6+"=[^&]*"); if (I5.match(O6)){return I5.replace(O6,""); }return I5; } ,FormatBytes:function (l6){var i6=l6/1024; var I6=i6/1024; if (I6>.8){return ""+Math.round(I6*100)/100+"MB"; }if (i6>.8){return ""+Math.round(i6*100)/100+"\x6bB"; }return ""+l6+" bytes"; } ,GetFormattedTime:function (o7){var O7=this.NormalizeTime(o7); return this.TimeFormat.replace(/\x25\x48\x4f\x55\x52\x53\x25/,O7.l7).replace(/\x25\x4d\x49\x4e\x55\x54\x45\x53\x25/,O7.i7).replace(/\x25\x53\x45\x43\x4f\x4e\x44\x53\x25/,O7.I7); } ,NormalizeTime:function (o8){var o7=o8%60; var O8=Math.floor(o8/60); var l8=O8%60; var i8=Math.floor(O8/60); return {l7:i8,i7:l8,I7:o7 };}} ; if (typeof(o)!="\165\x6edefined"){if (o.I!=null && o.I.A!=null){o.I.A(); }};RadUploadNameSpace.RadUploadEventArgs= function (I8){ this.FileInputField=I8; } ; RadUploadNameSpace.RadUploadDeleteSelectedEventArgs= function (o9){ this.FileInputFields=o9; } ; if (typeof(o)!="\165ndefin\x65\x64"){if (o.I!=null && o.I.A!=null){o.I.A(); }};if (typeof(window.RadControlsNamespace)=="\165ndefi\x6e\x65d"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O9,l9,i9){if (!i9){return; }if (!O9){document.write("\x3c"+"lin\x6b"+"\x20\x72el=\x27\x73tyle\x73\x68ee\x74\047\x20type=\x27\x74ex\x74/css\047\040h\x72\145f\x3d\047"+i9+"\047\x20\x2f>"); }else {var I9=document.createElement("LI\x4e\x4b"); I9.rel="\x73tyle\x73\x68e\x65\x74"; I9.type="\x74ext/css"; I9.href=i9; document.getElementById(l9+"StyleShe\x65\x74Hold\x65\x72").appendChild(I9); }} ; if (typeof(o)!="undefined"){if (o.I!=null && o.I.A!=null){o.I.A(); }};