function GetRadUpload(I8){return window[I8]; } ; if (typeof(RadUploadNameSpace)=="undef\x69\x6eed")RadUploadNameSpace= {} ; RadUploadNameSpace.RadUpload= function (J){ this.l9= false; RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Id=J[0]; this.i9(document.getElementById(J[1])); this.I9=J[2]; this.oa=J[3]; this.Enabled=J[4]; this.Oa=J[5]; this.la=J[6]; this.ia=J[7]; if (RadControlsNamespace.Browser.IsSafari || (RadControlsNamespace.Browser.IsOpera && !RadControlsNamespace.Browser.IsOpera9)){ this.ia= false; } this.Ia=J[8]; this.ob=J[9]; this.Ob=J[10]&1; this.lb=J[10]&2; this.ib=J[10]&4; this.OnClientAdded=J[11]; this.OnClientAdding=J[12]; this.OnClientDeleting=J[13]; this.OnClientClearing=J[14]; this.OnClientFileSelected=J[15]; this.OnClientDeletingSelected=J[16]; this.CurrentIndex=0; this.Ib=document.getElementById(this.Id+"B\x75ttonArea"); this.ListContainer=document.getElementById(this.Id+"L\x69\x73tCont\x61\x69ner"); if (!document.readyState || document.readyState=="\x63omplete"){ this.InnerConstructor(); }else { this.AttachDomEvent(window,"load","I\x6e\156\x65\x72Cons\x74\162uc\x74or"); }} ; RadUploadNameSpace.RadUpload.prototype= {InnerConstructor:function (){ this.oc(); this.Oc=this.lc(document.getElementById(this.Id+"AddButton"),"Add","AddFil\x65\x49nput"); this.ic=this.lc(document.getElementById(this.Id+"\x44eleteBut\x74\x6fn"),"De\x6c\x65te","\x44elet\x65\x53elect\x65\x64Fil\x65Inputs"); this.Ic=this.od(); var Od=this.Oa==0?this.la:Math.min(this.la,this.Oa); for (var i=0; i<Od; i++){ this.AddFileInput(); } this.ld(); this.l9= true; } ,AddFileInput:function (){var l3=this.AddFileInputAt(this.ListContainer.rows.length); if (this.l9){try {l3.focus(); }catch (ex){}}} ,AddFileInputAt:function (index){if (typeof(index)=="unde\x66\151n\x65\x64" || index>this.ListContainer.rows.length){index=this.ListContainer.rows.length; }if (this.Oa>0 && index>=this.Oa)return; if (this.l9){var oe=this.RaiseEvent("\x4fnClie\x6e\x74Addi\x6e\x67",new RadUploadNameSpace.RadUploadEventArgs(null)); if (oe== false){return; }} this.Oe(index); } ,Oe:function (index){var le=this.ListContainer.insertRow(index); this.AttachDomEvent(le,"clic\x6b","\x52owCli\x63\x6bed"); var ie; if (this.Ob){ie=le.insertCell(le.cells.length); this.Ie(ie); }ie=le.insertCell(le.cells.length); this.of(ie); if (this.ib){ie=le.insertCell(le.cells.length); this.Of(ie); }if (this.lb){ie=le.insertCell(le.cells.length); this.If(ie); } this.ld(); this.RaiseEvent("OnCli\x65\x6etAdd\x65\x64", {Row:le } ); this.CurrentIndex++; return le; } ,Ie:function (container){var og=document.createElement("input"); og.type="\x63heckbox"; og.id=this.Id+"\x63heckbox"+this.CurrentIndex; container.appendChild(og); og.className="\x52adUpload\x46\x69leS\x65\x6cec\x74\157r"; og.disabled=!this.Enabled; return og; } ,Of:function (container){var button=document.createElement("inpu\x74"); button.type="\x62\x75tton"; button.id=this.Id+"cl\x65\x61r"+this.CurrentIndex; container.appendChild(button); this.lc(button,"\x43\x6cear"); button.className="\x52adUploa\x64\x43learB\x75\x74t\x6f\x6e"; button.name="Clea\x72\x49nput"; button.disabled=!this.Enabled; return button; } ,If:function (container){var button=document.createElement("\x69nput"); button.type="button"; button.id=this.Id+"\x72emove"+this.CurrentIndex; container.appendChild(button); button.value=RadUploadNameSpace.Localization[this.I9]["Remo\x76\x65"]; button.className="\x52adUploa\x64\x52emove\x42\x75t\x74\x6fn"; button.name="RemoveRow"; button.disabled=!this.Enabled; return button; } ,of:function (container){var l3=this.Og(); this.AttachDomEvent(l3,"c\x68\x61nge","FileSel\x65\x63ted"); if (this.ia){l3.className="\x52ealFileInpu\x74"; var div=document.createElement("\x64iv"); container.appendChild(div); div.style.position="rel\x61\x74ive"; div.appendChild(this.Ic.cloneNode( true)); div.appendChild(l3); if (!this.Ia){ this.AttachDomEvent(l3,"\x6beyup","SyncFil\x65\x49nputC\x6f\x6eten\x74"); }else { this.AttachDomEvent(l3,"k\x65\x79down","\x43\x61ncelEv\x65\x6et"); }return div; }else {container.appendChild(l3); l3.className="N\x6f\x53kinned\x46\x69leU\x6e\x70ut"; if (this.Ia){ this.AttachDomEvent(l3,"ke\x79\x64own","\x43\x61ncelEv\x65\x6et"); }return l3; }} ,CancelEvent:function (n){if (!n)n=window.event; if (!n)return false; n.returnValue= false; n.cancelBubble= true; if (n.stopPropagation){n.stopPropagation(); }if (n.preventDefault){n.preventDefault(); }return false; } ,ClearFileInputAt:function (index){var le=this.ListContainer.rows[index]; if (le){var oe=this.RaiseEvent("OnClie\x6etClearing",new RadUploadNameSpace.RadUploadEventArgs(this.GetFileInputFrom(le))); if (oe== false){return false; } this.DeleteFileInputAt(index, true); this.Oe(index, true); }} ,od:function (){var lg=document.createElement("\x64iv"); lg.style.position="\x61bsolute"; lg.style.top=0; lg.style.left=0; lg.style.zIndex=1; var Ig=document.createElement("input"); Ig.type="text"; Ig.className="RadUpl\x6f\x61dInp\x75\x74Fiel\x64"; lg.appendChild(Ig); var oh=document.createElement("\x69\x6eput"); oh.type="\x62utt\x6f\x6e"; lg.appendChild(oh); this.lc(oh,"Sele\x63\x74"); oh.disabled=!this.Enabled; oh.className="RadUp\x6c\x6fadSele\x63\x74But\x74on"; return lg; } ,Og:function (){var l3=document.createElement("\x69nput"); l3.type="\146\x69\154e"; l3.name=this.GetID("file"); l3.id=this.GetID("\x66ile"); l3.disabled=!this.Enabled; return l3; } ,DeleteFileInputAt:function (index,Oh){var le=this.ListContainer.rows[index]; if (le){if (!Oh){var oe=this.RaiseEvent("OnClient\x44\x65leti\x6e\x67",new RadUploadNameSpace.RadUploadEventArgs(this.GetFileInputFrom(le))); if (oe== false){return false; }}le.parentNode.removeChild(le); this.ld(); }} ,DeleteSelectedFileInputs:function (){var lh=[]; var ih=[]; for (var i=this.ListContainer.rows.length-1; i>=0; i--){var Ih=this.ListContainer.rows[i]; var oi=Ih.cells[0].childNodes[0]; if (oi.checked){ih[ih.length]=i; lh[lh.length]=this.GetFileInputFrom(Ih); }}var oe=this.RaiseEvent("\x4fnC\x6c\x69entDe\x6c\x65tin\x67\123\x65\x6cec\x74\x65d",new RadUploadNameSpace.RadUploadDeleteSelectedEventArgs(lh)); if (oe== false){return; }for (var i=0; i<ih.length; i++){ this.DeleteFileInputAt(ih[i], true); }} ,oc:function (){var Oi=this.ListContainer.rows[0]; Oi.parentNode.removeChild(Oi); } ,FileSelected:function (e){if (this.ia){ this.SyncFileInputContent(e); } this.RaiseEvent("\x4f\x6eClien\x74\x46ile\x53\x65le\x63\x74ed",new RadUploadNameSpace.RadUploadEventArgs(e.srcElement?e.srcElement:e.target)); } ,GetFileInputFrom:function (le){var ii=le.getElementsByTagName("\x69nput"); for (var i=0; i<ii.length; i++){if (ii[i].type=="\x66ile"){return ii[i]; }}return null; } ,GetFileInputs:function (){var O3=[]; for (var i=0; i<this.ListContainer.rows.length; i++){O3[O3.length]=this.GetFileInputFrom(this.ListContainer.rows[i]); }return O3; } ,GetID:function (F){return this.Id+F+this.CurrentIndex; } ,Ii:function (K){if (K){if (K.tagName.toLowerCase()=="\x74\x72"){return K; }else {return this.Ii(K.parentNode); }}return null; } ,lc:function (button,oj,Oj){if (button){button.value=RadUploadNameSpace.Localization[this.I9][oj]; if (this.Enabled){if (Oj)this.AttachDomEvent(button,"\x63lick",Oj); }else {button.disabled= true; }}return button; } ,IsExtensionValid:function (lj){if (lj=="")return true; for (var i=0; i<this.ob.length; i++){var ij=this.ob[i].substring(2); var Ij=new RegExp("\x2e"+ij+"\x24","ig"); if (lj.match(Ij)){return true; }}return false; } ,RowClicked:function (e){var srcElement=e.srcElement?e.srcElement:e.target; var ok=this.Ii(srcElement); if (srcElement.name=="R\x65\x6doveRow"){ this.DeleteFileInputAt(ok.rowIndex); }else if (srcElement.name=="Clear\x49\x6eput"){ this.ClearFileInputAt(ok.rowIndex); }} ,ld:function (){ this.Ok(this.ic,this.ListContainer.rows.length>0); this.Ok(this.Oc,(this.Oa<=0) || (this.ListContainer.rows.length<this.Oa)); } ,Ok:function (button,lk){if (button){button.className=lk?"RadUploadBu\x74\x74on": "\x52adUploadBut\x74\x6fnDi\x73\x61bl\x65\144"; }} ,SyncFileInputContent:function (e){var l3=e.srcElement?e.srcElement:e.target; var ik=l3.parentNode.childNodes[0].childNodes[0]; if (l3 !== ik){ik.value=l3.value; ik.title=l3.value; ik.disabled= true; }} ,i9:function (form){if (!form)form=document.forms[0]; form.enctype=form.encoding="multipart\x2f\x66orm\x2d\x64ata"; } ,ValidateExtensions:function (){for (var i=0; i<this.ListContainer.rows.length; i++){var Ik=this.GetFileInputFrom(this.ListContainer.rows[i]).value; if (!this.IsExtensionValid(Ik)){return false; }}return true; }} ;;if (typeof window.RadControlsNamespace=="u\x6e\x64efined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Browser)=="\x75ndefine\x64" || 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 Int\x65\162\x6e\x65t \x45\170p\x6c\x6frer") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-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=="CSS1Compat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo(); };if (typeof window.RadControlsNamespace=="u\x6e\x64efined"){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.I=this.I; o.CreateEventHandler=this.CreateEventHandler; o.A=this.A; o.ClearEventPointers(); } ; RadControlsNamespace.DomEventsMixin.CreateEventHandler= function (U){var Z=this ; return function (e){if (!e)e=window.event; return Z[U](e); };} ; RadControlsNamespace.DomEventsMixin.AttachDomEvent= function (z,W,w){var V=this.CreateEventHandler(w); this.v[this.v.length]=[z,W,V]; this.A(z,W,V); } ; RadControlsNamespace.DomEventsMixin.A= function (z,W,V){if (z.attachEvent){z.attachEvent("\x6fn"+W,V); }else if (z.addEventListener){z.addEventListener(W,V, false); }} ; RadControlsNamespace.DomEventsMixin.DetachDomEvent= function (z,W,V){if (z.detachEvent){z.detachEvent("o\x6e"+W,V); }} ; 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 (T){var t=this ; var S=this.CreateEventHandler(T); var R= function (){S(); t.DisposeDomEvents(); t=null; } ; this.A(window,"unload",R); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.v=[]; } ;;if (typeof window.RadControlsNamespace=="u\x6e\x64\x65fined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.EventMixin)=="undefined" || typeof(window.RadControlsNamespace.EventMixin.Version)==null || window.RadControlsNamespace.EventMixin.Version<1){RadControlsNamespace.EventMixin= {Version: 1,Initialize:function (o){o._listeners= {} ; 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 (W,r){if (!this._listeners[W]){ this._listeners[W]=[]; } this._listeners[W][this._listeners[W].length]=(RadControlsNamespace.EventMixin.ResolveFunction(r)); } ,DetachEvent:function (W,r){var Q=this._listeners[W]; 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)=="function"){return N; }else if (typeof(window[N])=="functio\x6e"){return window[N]; }else {return new Function("var Sen\x64\x65r =\x20\x61rgu\x6dents[0]\x3b\x20va\x72\x20Ar\x67umen\x74\163\x20= arg\x75ments\x5b\061\x5d;"+N); }} ,RaiseEvent:function (W,n){if (!this._eventsEnabled){return true; }var M= true; if (this[W]){var m=RadControlsNamespace.EventMixin.ResolveFunction(this[W])(this,n); if (typeof(m)=="undefined"){m= true; }M=M && m; }if (!this._listeners[W])return M; for (var i=0; i<this._listeners[W].length; i++){var r=this._listeners[W][i]; var m=r(this,n); if (typeof(m)=="\x75ndef\x69\x6eed"){m= true; }M=M && m; }return M; }};};if (typeof(RadUploadNameSpace)=="\165nde\x66\x69ned")RadUploadNameSpace= {} ; if (typeof(RadUploadNameSpace.Localization)=="undefined")RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Localization.ProcessRawArray= function (L){var l=L[0]; if (typeof(RadUploadNameSpace.Localization[l])=="\x75ndefin\x65\x64"){RadUploadNameSpace.Localization[l]=[]; }for (var i=1; i<L.length; i+=2){RadUploadNameSpace.Localization[l][L[i]]=L[i+1]; }} ;;if (typeof window.RadControlsNamespace=="un\x64\x65fined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Overlay)=="\x75\x6edefined" || typeof(window.RadControlsNamespace.Overlay.Version)==null || window.RadControlsNamespace.Overlay.Version<.11e1){window.RadControlsNamespace.Overlay= function (K){if (!this.SupportsOverlay()){return; } this.Element=K; this.Shim=document.createElement("I\x46RAME"); this.Shim.src="javascri\x70\x74:\047\047\x3b"; this.Element.parentNode.insertBefore(this.Shim,this.Element); if (K.style.zIndex>0){ this.Shim.style.zIndex=K.style.zIndex-1; } this.Shim.style.position="\x61bsolute"; this.Shim.style.border="0px"; this.Shim.frameBorder=0; this.Shim.style.filter="progid:DX\x49\x6dage\x54\x72ans\x66orm.Mic\x72\157s\x6f\x66t.\x41lpha\x28style\x3d\x30,o\x70acity\x3d\060\x29"; this.Shim.disabled="d\x69\x73abled"; };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+"\x70x"; this.Shim.style.height=this.Element.offsetHeight+"px"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "\x30px"; return parseInt(value)+"px"; };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(RadUploadNameSpace)=="\x75\x6edefined")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("C\x6fuld not fin\x64\x20an \x69\x6e\x73\x74anc\x65\040\x6ff Ra\x64Progre\x73sMana\x67er on \x74he pa\x67e. Ar\x65 you \x6dissi\x6eg t\x68e co\x6etrol\x20dec\x6carat\x69on?"); }RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Element=document.getElementById(this.Id); this.PrimaryProgressBarElement=this.FindElement("\x50rimaryProg\x72\x65ssBa\x72"); this.PrimaryTotalElement=this.FindElement("PrimaryT\x6f\x74al"); this.PrimaryValueElement=this.FindElement("Pr\x69\x6daryVal\x75\x65"); this.PrimaryPercentElement=this.FindElement("PrimaryPer\x63\x65nt"); this.SecondaryProgressBarElement=this.FindElement("\x53\145con\x64\x61ryPro\x67\x72es\x73\x42ar"); this.SecondaryTotalElement=this.FindElement("Second\x61\x72yTota\x6c"); this.SecondaryValueElement=this.FindElement("Sec\x6f\x6edaryVa\x6c\x75e"); this.SecondaryPercentElement=this.FindElement("\x53econdaryPer\x63\x65nt"); this.h=this.FindElement("Cur\x72\x65ntOper\x61\x74ion"); this.TimeElapsedElement=this.FindElement("Tim\x65\x45lapsed"); this.TimeEstimatedElement=this.FindElement("\124im\x65\x45stimat\x65\x64"); this.SpeedElement=this.FindElement("Speed"); this.CancelButtonElement=this.FindElement("Cance\x6c\x42utton"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"\x63lick","\x43ancelReque\x73\x74"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="undefine\x64"){RadUploadNameSpace.ProgressAreas=[]; } this.RegisterForAutomaticDisposal("Hide"); RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (G){if (this.RaiseEvent("\x4fnClie\x6e\x74Progr\x65\x73sUp\x64\141\x74\151n\x67", {ProgressData:G } )== false)return; this.Show(); if (this.RaiseEvent("OnCl\x69\x65ntPro\x67\162e\x73\x73Bar\x55\160d\x61\x74ing", {ProgressValue:G.PrimaryPercent,ProgressBarElementName: "\x50rimaryProg\x72\x65ssBa\x72",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,G.PrimaryPercent); }if (this.RaiseEvent("OnCl\x69\x65ntPro\x67\x72essB\x61rUpdatin\x67", {ProgressValue:G.SecondaryPercent,ProgressBarElementName: "\x53econda\x72\x79Prog\x72\x65ssB\x61\x72",ProgressBarElement: this.SecondaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.SecondaryProgressBarElement,G.SecondaryPercent); } this.UpdateTextIndicator(this.PrimaryTotalElement,G.PrimaryTotal); this.UpdateTextIndicator(this.PrimaryValueElement,G.PrimaryValue); this.UpdateTextIndicator(this.PrimaryPercentElement,G.PrimaryPercent); this.UpdateTextIndicator(this.SecondaryTotalElement,G.SecondaryTotal); this.UpdateTextIndicator(this.SecondaryValueElement,G.SecondaryValue); this.UpdateTextIndicator(this.SecondaryPercentElement,G.SecondaryPercent); this.UpdateTextIndicator(this.h,G.CurrentOperationText); this.UpdateTextIndicator(this.TimeElapsedElement,G.TimeElapsed); this.UpdateTextIndicator(this.TimeEstimatedElement,G.TimeEstimated); this.UpdateTextIndicator(this.SpeedElement,G.Speed); } ,Show:function (){ this.Element.style.display=""; if (this.Element.style.position=="\x61bsolute"){if (typeof(this.Overlay)=="undef\x69\x6eed"){ 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 (K,g){if (K && typeof(g)!="\x75ndefined")K.style.width=g+"\x25"; } ,UpdateVerticalProgressBar:function (K,g){if (K && typeof(g)!="\x75ndef\x69\x6eed")K.style.height=g+"%"; } ,UpdateTextIndicator:function (K,text){if (K && typeof(text)!="undefin\x65\x64"){if (typeof(K.value)=="\x73trin\x67")K.value=text; else if (typeof(K.innerHTML)=="\x73tring")K.innerHTML=text; }} ,CancelRequest:function (){ this.CancelClicked= true; } ,FindElement:function (F){var f=this.Id+"\137"+RadUploadNameSpace.k+"\x5f"+F; return document.getElementById(f); }};;if (typeof(RadUploadNameSpace)=="undef\x69\x6e\x65d")RadUploadNameSpace= {} ; RadUploadNameSpace.RadProgressManager= function (J){RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.D=Math.max(J[0],50); var d=J[1]; this.EnableMemoryOptimizationIdentifier=J[2]; this.UniqueRequestIdentifier=J[3]; this.C=J[4]; this.OnClientProgressStarted=J[5]; this.OnClientProgressUpdating=J[6]; this.FormId=J[7]; this.c=J[8]; this.EnableMemoryOptimization=J[9]; this.SuppressMissingHttpModuleError=J[10]; this.TimeFormat="%HOURS%:%MI\x4e\125\x54\105S%\x3a%SECOND\x53\x25s"; var form=document.getElementById(this.FormId); if (!form){form=document.forms[0]; } this.B(form); if (this.c== true){ this.RegisterForSubmit(form); } this.o0=this.O0(d); this.l0= false; if (typeof(RadUploadNameSpace.ProgressAreas)=="undefine\x64"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("O\x6eClientProgr\x65\x73sSt\x61\x72te\x64"); this.i0=new Date(); this.MakeCallback(); } ,MakeCallback:function (){if (!this.l0){ this.l0= true; this.I0(); }} ,HandleCallback:function (){if (this.o1.readyState!=4)return; this.l0= false; if (this.ErrorOccured())return; var responseText=this.o1.responseText; if (responseText){try {eval(responseText); }catch (ex){ this.O1(); return; }if (rawProgressData){if (this.EnableMemoryOptimization== true && !this.SuppressMissingHttpModuleError && rawProgressData.ProgressError){alert(rawProgressData.ProgressError); return; }if (rawProgressData.InProgress){if (this.l1>0 || rawProgressData.RadProgressContextCustomCounters){ this.ModifyProgressData(rawProgressData); if (!this.UpdateProgressAreas(rawProgressData)){window.location.href=window.location.href; return; }}}}}window.setTimeout(this.CreateEventHandler("\x4dakeC\x61\x6clbac\x6b"),this.D); } ,ErrorOccured:function (){if (!document.all)return false; if (this.o1.status==404){ this.i1(); }else if (this.o1.status>0 && this.o1.status!=200){ this.I1(); }else return false; return true; } ,i1:function (){alert("\162\x2e\x61.d.up\x6c\157ad\x20\x41ja\x78\040\x63\x61ll\x62\x61c\x6b err\x6f\162\x2e\040S\x6furce \x75\162l\x20was \x6e\157\x74 fou\x6ed: \x0a\015\x0a\015"+this.o0+"\012\x0d\x0a\015\x44id you \x72\145g\x69\163t\x65\x72 t\x68\x65 R\x61dUplo\x61\144P\x72\157g\x72essHa\x6edler\x20\151n\x20web.\x63onfi\x67?"+"\015\x0a\015\x0a\x50leas\x65\x2c s\x65\x65 t\x68\x65 he\x6c\160 \x66or mo\x72\145 \x64etail\x73\072 \x52adUp\x6c\157a\x64 2.0\x20- Us\x69ng \x72.a.d\x2euplo\x61d -\x20Conf\x69gur\x61tio\x6e - \x52adU\x70loa\x64Pr\x6fgre\x73sH\x61ndl\x65r."); } ,I1:function (){alert("\x72\x2ea.d.u\x70\x6coad \x41\x6aax\x20\x63all\x62\141c\x6b\x20er\x72or. S\x6f\x75rc\x65 url r\x65turne\x64 erro\x72: "+this.o1.status+" \012\x0d\012\015"+this.o1.o2+" \012\x0d\012\x0d"+this.o0+"\x0a\015\x0a\x0dDi\x64\x20you\x20\162e\x67\x69st\x65\x72 t\x68\x65 \x52\141d\x55\160l\x6fadPro\x67ressH\x61ndle\x72 in w\x65b.co\x6efig\x3f"+"\x0d\012\x0d\012P\x6c\x65ase\x2c see th\x65\040h\x65\x6cp \x66\157\x72\x20mo\x72e det\x61\151l\x73: Ra\x64\125p\x6coad \x32.0 -\x20Usi\x6e\147\x20r.a.\x64.up\x6coad\x20- Co\x6efig\x75rat\x69on\x20- R\x61dUp\x6coa\x64Pro\x67re\x73sHa\x6edl\x65r."); } ,O1:function (){alert("r.a.d.uploa\x64\x20Aja\x78\x20cal\x6c\142a\x63\x6b e\x72\x72or\x2e Sourc\x65\040\x75\x72l \x72eturn\x65\144\x20\151n\x76alid\x20cont\x65nt: \x0a\015\x0a\015"+this.o1.responseText+"\012\x0d\012\015"+this.o0+"\012\x0d\x0a\015\x44id you\x20\x72eg\x69\x73te\x72\x20th\x65\x20R\x61\x64Up\x6c\157a\x64Progr\x65ssHan\x64ler i\x6e web\x2econf\x69g?"+"\x0d\012\x0d\x0aPl\x65\x61se, \x73ee the \x68\x65lp\x20\x66or\x20\155o\x72e det\x61\x69ls\x3a RadU\x70load \x32.0 -\x20\125\x73ing \x72.a.d\x2euplo\x61d - \x43onf\x69gur\x61tion\x20- R\x61dUp\x6coad\x50ro\x67res\x73Han\x64le\x72."); } ,UpdateProgressAreas:function (rawProgressData){ this.RaiseEvent("\x4fnClientProg\x72\x65ssU\x70\x64ati\x6e\147", {ProgressData:rawProgressData } ); for (var i=0; i<RadUploadNameSpace.ProgressAreas.length; i++){var O2=RadUploadNameSpace.ProgressAreas[i]; if (O2.CancelClicked){return false; }O2.Update(rawProgressData); }return true; } ,ModifyProgressData:function (rawProgressData){var l2=new Date()-this.i0; if (typeof(rawProgressData.TimeElapsed)=="undefin\x65d")rawProgressData.TimeElapsed=this.GetFormattedTime(this.ToSeconds(l2)); if (rawProgressData.RadUpload){var i2=rawProgressData.RadUpload.RequestSize; var I2=rawProgressData.RadUpload.Bytes; if (typeof(rawProgressData.PrimaryTotal)=="undefined")rawProgressData.PrimaryTotal=this.FormatBytes(i2); if (typeof(rawProgressData.PrimaryValue)=="\x75ndefin\x65\x64")rawProgressData.PrimaryValue=this.FormatBytes(I2); if (typeof(rawProgressData.PrimaryPercent)=="und\x65\x66ined")rawProgressData.PrimaryPercent=Math.round(100*I2/i2); if (typeof(rawProgressData.SecondaryTotal)=="\x75\x6edefine\x64")rawProgressData.SecondaryTotal=this.l1; if (typeof(rawProgressData.SecondaryValue)=="\x75ndefined")rawProgressData.SecondaryValue=rawProgressData.RadUpload.FilesCount; if (typeof(rawProgressData.SecondaryPercent)=="undefined")rawProgressData.SecondaryPercent=Math.round(100*rawProgressData.RadUpload.FilesCount/(this.l1!=0?this.l1: 1)); if (typeof(rawProgressData.CurrentOperationText)=="\x75ndefine\x64")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="undefined")rawProgressData.Speed=this.FormatBytes(rawProgressData.RadUpload.Bytes/this.ToSeconds(l2))+"\x2fs"; }if (typeof(rawProgressData.TimeEstimated)=="unde\x66\x69ned" && typeof(rawProgressData.PrimaryPercent)=="\x6e\x75mber")rawProgressData.TimeEstimated=this.GetFormattedTime(this.ToSeconds(l2*(100/rawProgressData.PrimaryPercent-1))); } ,ToSeconds:function (o3){return Math.round(o3/1000); } ,InitSelectedFilesCount:function (){ this.l1=0; var O3=document.getElementsByTagName("\x69nput"); for (var i=0; i<O3.length; i++){var l3=O3[i]; if (l3.type=="\x66ile" && l3.value!=""){ this.l1++; }}} ,I0:function (){if (typeof(XMLHttpRequest)!="\x75ndefined"){ this.o1=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="\x75ndefined"){ this.o1=new ActiveXObject("Mi\x63\x72osoft.\x58\x4dLHT\x54\x50"); }else return; this.o1.onreadystatechange=this.CreateEventHandler("HandleCal\x6c\x62ack"); this.o1.open("\x47\x45T",this.i3(), true); this.o1.send(""); } ,I3:function (Z,method){return function (){method.apply(Z,arguments); } ; } ,O0:function (d){var o4=d.indexOf("?")<0?"\x3f": "\x26"; return d+o4+this.UniqueRequestIdentifier+"\x3d"+this.C; } ,i3:function (){return this.o0+"&RadUpload\x54\x69meSt\x61\x6dp="+new Date().getTime(); } ,RegisterForSubmit:function (form){var O4=this.CreateEventHandler("Start\x50\162\x6f\x67ress\x50\x6fll\x69\x6eg"); var l4=form.submit; try {form.submit= function (){O4(); form.submit=l4; form.submit(); };}catch (exception){try {var i4=__doPostBack; __doPostBack= function (eventTarget,eventArgument){var I4= true; if (typeof(Page_ClientValidate)=="funct\x69\x6fn"){I4=Page_ClientValidate(); }if (I4){O4(); i4(eventTarget,eventArgument); }} ; }catch (exception){}} this.AttachDomEvent(form,"submit","StartProg\x72\x65ssP\x6f\x6cling"); } ,B:function (form){if (typeof(form.action)=="\x75ndef\x69\x6eed")form.action=""; if (form.action.match(/\x3f/)){form.action=this.o5(form.action,this.UniqueRequestIdentifier); form.action=this.o5(form.action,this.EnableMemoryOptimizationIdentifier); if (form.action.substring(form.action.length-1)!="\x3f"){form.action+="\x26"; }}else {form.action+="\x3f";}form.action+=this.UniqueRequestIdentifier+"="+this.C; if (this.EnableMemoryOptimization){form.enctype=form.encoding="\x6dultip\x61\x72t/fo\x72\x6d-da\x74\x61"; }else {form.action+="\x26"+this.EnableMemoryOptimizationIdentifier+"\075\x66\x61lse"; }} ,o5:function (O5,l5){var i5=new RegExp("\x26?"+l5+"\x3d\133^&]\x2a"); if (O5.match(i5)){return O5.replace(i5,""); }return O5; } ,FormatBytes:function (I5){var o6=I5/1024; var O6=o6/1024; if (O6>.8){return ""+Math.round(O6*100)/100+"\x4dB"; }if (o6>.8){return ""+Math.round(o6*100)/100+"\x6b\102"; }return ""+I5+" bytes"; } ,GetFormattedTime:function (l6){var i6=this.NormalizeTime(l6); return this.TimeFormat.replace(/\x25\x48\x4f\x55\x52\x53\x25/,i6.I6).replace(/\x25\x4d\x49\x4e\x55\x54\x45\x53\x25/,i6.o7).replace(/\x25\x53\x45\x43\x4f\x4e\x44\x53\x25/,i6.O7); } ,NormalizeTime:function (l7){var l6=l7%60; var i7=Math.floor(l7/60); var I7=i7%60; var o8=Math.floor(i7/60); return {I6:o8,o7:I7,O7:l6 };}} ;;RadUploadNameSpace.RadUploadEventArgs= function (O8){ this.FileInputField=O8; } ; RadUploadNameSpace.RadUploadDeleteSelectedEventArgs= function (l8){ this.FileInputFields=l8; } ;;if (typeof(window.RadControlsNamespace)=="u\x6e\x64efined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (i8,I8,o9){if (!o9){return; }if (!i8){document.write("<"+"\x6cink"+" rel=\047stylesh\x65\145t\x27\x20ty\x70e=\047\x74ext/cs\x73\047\x20href\x3d\047"+o9+"\047\x20/>"); }else {var O9=document.createElement("\x4cINK"); O9.rel="styleshee\x74"; O9.type="\x74ext/css"; O9.href=o9; document.getElementById(I8+"\x53tyleShee\x74\x48old\x65\x72").appendChild(O9); }} ;;if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}