function GetRadUpload(k){return window[k]; } ; if (typeof(RadUploadNameSpace)=="\x75ndefined")RadUploadNameSpace= {} ; RadUploadNameSpace.RadUpload= function (H){ this.I9= false; RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Id=H[0]; this.oa(document.getElementById(H[1])); this.Oa=H[2]; this.la=H[3]; this.Enabled=H[4]; this.ia=H[5]; this.Ia=H[6]; this.EnableFileInputSkinning=H[7]; if (RadControlsNamespace.Browser.IsSafari || (RadControlsNamespace.Browser.IsOpera && !RadControlsNamespace.Browser.IsOpera9)){ this.EnableFileInputSkinning= false; } this.ReadOnlyFileInputs=H[8]; this.AllowedFileExtensions=H[9]; this.ob=H[10]&1; this.Ob=H[10]&2; this.lb=H[10]&4; this.OnClientAdded=H[11]; this.OnClientAdding=H[12]; this.OnClientDeleting=H[13]; this.OnClientClearing=H[14]; this.OnClientFileSelected=H[15]; this.OnClientDeletingSelected=H[16]; this.CurrentIndex=0; this.ib=document.getElementById(this.Id+"B\x75ttonAr\x65\x61"); this.ListContainer=document.getElementById(this.Id+"\x4cistCo\x6e\x74aine\x72"); if (!document.readyState || document.readyState=="comple\x74\x65"){ this.InnerConstructor(); }else { this.AttachDomEvent(window,"load","\x49nnerCon\x73\x74ructo\x72"); }} ; RadUploadNameSpace.RadUpload.prototype= {InnerConstructor:function (n){ this.Ib(); this.AddButton=this.InitButton(document.getElementById(this.Id+"AddButton"),"Add","AddFile\x49nput"); this.DeleteButton=this.InitButton(document.getElementById(this.Id+"Del\x65\x74eButto\x6e"),"Delete","\x44eleteSele\x63\x74edFi\x6c\x65I\x6e\160\x75\164s"); this.oc=this.Oc(); var lc=this.ia==0?this.Ia:Math.min(this.Ia,this.ia); for (var i=0; i<lc; i++){ this.AddFileInput(); } this.ic(); this.I9= true; } ,AddFileInput:function (n){var i3=this.AddFileInputAt(this.ListContainer.rows.length); if (this.I9){try {i3.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.I9){var Ic=this.RaiseEvent("\x4fnC\x6c\x69entAd\x64\x69ng",new RadUploadNameSpace.RadUploadEventArgs(null)); if (Ic== false){return; }} this.od(index); } ,od:function (index){var Od=this.ListContainer.insertRow(index); this.AttachDomEvent(Od,"\x63\154i\x63\x6b","\x52owClic\x6b\x65d"); var ld; if (this.ob){ld=Od.insertCell(Od.cells.length); this.oe(ld); }ld=Od.insertCell(Od.cells.length); this.Oe(ld); if (this.lb){ld=Od.insertCell(Od.cells.length); this.le(ld); }if (this.Ob){ld=Od.insertCell(Od.cells.length); this.ie(ld); } this.ic(); this.RaiseEvent("\x4fnClie\x6e\x74Adde\x64", {Row:Od } ); this.CurrentIndex++; return Od; } ,oe:function (container){var Ie=document.createElement("input"); Ie.type="\x63heck\x62\x6fx"; Ie.id=this.Id+"\143he\x63\x6bbox"+this.CurrentIndex; container.appendChild(Ie); Ie.className="RadUpl\x6f\x61dFile\x53\x65lec\x74or"; Ie.disabled=!this.Enabled; return Ie; } ,le:function (container){var button=document.createElement("i\x6e\x70ut"); button.type="\x62utton"; button.id=this.Id+"clear"+this.CurrentIndex; container.appendChild(button); this.InitButton(button,"Clear"); button.className="\x52\x61dUploa\x64\x43lear\x42\x75tt\x6f\156"; button.name="\x43learInp\x75\x74"; button.disabled=!this.Enabled; return button; } ,ie:function (container){var button=document.createElement("i\x6e\x70ut"); button.type="\x62\x75tton"; button.id=this.Id+"\x72emove"+this.CurrentIndex; container.appendChild(button); button.value=RadUploadNameSpace.Localization[this.Oa]["Remov\x65"]; button.className="R\x61\x64Upload\x52\x65move\x42\165\x74\x74on"; button.name="\x52emov\x65\x52ow"; button.disabled=!this.Enabled; return button; } ,Oe:function (container){var i3=this.of(); this.AttachDomEvent(i3,"c\x68ange","FileSe\x6c\x65cted"); if (this.EnableFileInputSkinning){i3.className="R\x65\x61lFileI\x6e\x70ut"; var div=document.createElement("div"); container.appendChild(div); div.style.position="rela\x74\x69ve"; div.appendChild(this.oc.cloneNode( true)); div.appendChild(i3); if (!this.ReadOnlyFileInputs){ this.AttachDomEvent(i3,"\x6beyup","S\x79\x6ecFileI\x6e\x70utCo\x6e\164\x65\156t"); }else { this.AttachDomEvent(i3,"\x6b\x65ydown","\x43\x61ncelEv\x65\x6et"); }return div; }else {container.appendChild(i3); i3.className="\116o\x53\x6binnedF\x69\x6ceUn\x70\x75t"; if (this.ReadOnlyFileInputs){ this.AttachDomEvent(i3,"\x6beydown","Can\x63\x65lEvent"); }return i3; }} ,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 Od=this.ListContainer.rows[index]; if (Od){var Ic=this.RaiseEvent("O\x6e\103li\x65\x6etCle\x61\x72in\x67",new RadUploadNameSpace.RadUploadEventArgs(this.GetFileInputFrom(Od))); if (Ic== false){return false; } this.DeleteFileInputAt(index, true); this.od(index, true); }} ,Oc:function (){var Of=document.createElement("\x64iv"); Of.style.position="ab\x73\x6flute"; Of.style.top=0; Of.style.left=0; Of.style.zIndex=1; var If=document.createElement("input"); If.type="\x74ext"; If.className="\x52\x61dUploa\x64\x49npu\x74\x46ie\x6c\x64"; Of.appendChild(If); var og=document.createElement("inp\x75\x74"); og.type="but\x74\x6fn"; Of.appendChild(og); this.InitButton(og,"Sele\x63\x74"); og.disabled=!this.Enabled; og.className="RadUploa\x64\x53elec\x74\x42utt\x6f\x6e"; return Of; } ,of:function (){var i3=document.createElement("\x69nput"); i3.type="file"; i3.name=this.GetID("\146il\x65"); i3.id=this.GetID("fi\x6c\x65"); i3.disabled=!this.Enabled; return i3; } ,DeleteFileInputAt:function (index,Og){var Od=this.ListContainer.rows[index]; if (Od){if (!Og){var Ic=this.RaiseEvent("\117n\x43\x6cientD\x65\x6ceti\x6e\147",new RadUploadNameSpace.RadUploadEventArgs(this.GetFileInputFrom(Od))); if (Ic== false){return false; }}Od.parentNode.removeChild(Od); this.ic(); }} ,DeleteSelectedFileInputs:function (n){var lg=[]; var Ig=[]; for (var i=this.ListContainer.rows.length-1; i>=0; i--){var oh=this.ListContainer.rows[i]; var Oh=oh.cells[0].childNodes[0]; if (Oh.checked){Ig[Ig.length]=i; lg[lg.length]=this.GetFileInputFrom(oh); }}var Ic=this.RaiseEvent("OnClientD\x65letingS\x65\x6cect\x65\x64",new RadUploadNameSpace.RadUploadDeleteSelectedEventArgs(lg)); if (Ic== false){return; }for (var i=0; i<Ig.length; i++){ this.DeleteFileInputAt(Ig[i], true); }} ,Ib:function (){var lh=this.ListContainer.rows[0]; lh.parentNode.removeChild(lh); } ,FileSelected:function (e){if (this.EnableFileInputSkinning){ this.SyncFileInputContent(e); }var i3=e.srcElement?e.srcElement:e.target; i3.alt=i3.title=i3.value; this.RaiseEvent("\x4fnClientFil\x65\x53ele\x63\x74ed",new RadUploadNameSpace.RadUploadEventArgs(i3)); } ,GetFileInputFrom:function (Od){var ih=Od.getElementsByTagName("input"); for (var i=0; i<ih.length; i++){if (ih[i].type=="file"){return ih[i]; }}return null; } ,GetFileInputs:function (){var l3=[]; for (var i=0; i<this.ListContainer.rows.length; i++){l3[l3.length]=this.GetFileInputFrom(this.ListContainer.rows[i]); }return l3; } ,GetID:function (f){return this.Id+f+this.CurrentIndex; } ,Ih:function (K){if (K){if (K.tagName.toLowerCase()=="\164\x72"){return K; }else {return this.Ih(K.parentNode); }}return null; } ,InitButton:function (button,oi,Oi){if (button){button.value=RadUploadNameSpace.Localization[this.Oa][oi]; if (this.Enabled){if (Oi)this.AttachDomEvent(button,"\x63lick",Oi); }else {button.disabled= true; }}return button; } ,IsExtensionValid:function (ii){if (ii=="")return true; for (var i=0; i<this.AllowedFileExtensions.length; i++){var Ii=this.AllowedFileExtensions[i].substring(2); var oj=new RegExp("\056"+Ii+"\x24","\x69\x67"); if (ii.match(oj)){return true; }}return false; } ,RowClicked:function (e){var srcElement=e.srcElement?e.srcElement:e.target; var Oj=this.Ih(srcElement); if (srcElement.name=="Remo\x76\x65Row"){ this.DeleteFileInputAt(Oj.rowIndex); }else if (srcElement.name=="C\x6c\x65arInput"){ this.ClearFileInputAt(Oj.rowIndex); }} ,ic:function (){ this.lj(this.DeleteButton,this.ListContainer.rows.length>0); this.lj(this.AddButton,(this.ia<=0) || (this.ListContainer.rows.length<this.ia)); } ,lj:function (button,ij){if (button){button.className=ij?"RadUploa\x64\x42utt\x6f\x6e": "\x52adUploadBut\x74\x6fnDis\x61\x62l\x65\x64"; }} ,SyncFileInputContent:function (e){var i3=e.srcElement?e.srcElement:e.target; var Ij=i3.parentNode.childNodes[0].childNodes[0]; if (i3 !== Ij){Ij.value=i3.value; Ij.title=i3.value; Ij.disabled= true; }} ,oa:function (form){if (!form)form=document.forms[0]; form.enctype=form.encoding="multipart/f\x6f\x72m-d\x61\x74a"; } ,ValidateExtensions:function (){for (var i=0; i<this.ListContainer.rows.length; i++){var ok=this.GetFileInputFrom(this.ListContainer.rows[i]).value; if (!this.IsExtensionValid(ok)){return false; }}return true; }} ; RadUploadNameSpace.RadUpload.Ok= function (i3){} ;;if (typeof window.RadControlsNamespace=="\x75\156\x64\x65fine\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Browser)=="undefined" || 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=="M\x69\x63rosoft\x20\x49nte\x72\x6ee\x74\x20Exp\x6c\x6frer") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("safa\x72\x69")!=-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.IsIE7=/\x4d\x53\x49\x45\x20\x37/.test(navigator.appVersion); this.StandardsMode=this.IsSafari || this.IsOpera9 || this.IsMozilla || document.compatMode=="C\x53\x531Compat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo(); };if (typeof window.RadControlsNamespace=="\x75\x6edefine\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; return 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("\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,"u\x6e\x6coad",S); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.V=[]; } ;;if (typeof window.RadControlsNamespace=="un\x64\x65fined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.EventMixin)=="undefined" || typeof(window.RadControlsNamespace.EventMixin.Version)==null || window.RadControlsNamespace.EventMixin.Version<2){RadControlsNamespace.EventMixin= {Version: 2,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; O.R=this.R; } ,DisableEvents:function (){ this._eventsEnabled= false; } ,EnableEvents:function (){ this._eventsEnabled= true; } ,AttachEvent:function (z,r){if (!this._listeners[z]){ this._listeners[z]=[]; } this._listeners[z][this._listeners[z].length]=(RadControlsNamespace.EventMixin.ResolveFunction(r)); } ,DetachEvent:function (z,r){var Q=this._listeners[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; } ,R:function (){for (var z in this._listeners){var Q=null; if (this._listeners.hasOwnProperty(z)){Q=this._listeners[z]; for (var i=0; i<Q.length; i++){Q[i]=null; }Q=null; }}} ,ResolveFunction:function (N){if (typeof(N)=="f\x75\x6e\x63tion"){return N; }else if (typeof(window[N])=="\x66unctio\x6e"){return window[N]; }else {return new Function("var Sende\x72\x20= a\x72\x67ume\x6e\164\x73\1330\x5d\x3b va\x72 Arg\x75ments \x3d\040\x61rgume\x6e\164s\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)=="\165\x6e\x64efined"){m= true; }M=M && m; }if (!this._listeners[z])return M; for (var i=0; i<this._listeners[z].length; i++){var r=this._listeners[z][i]; var m=r(this,n); if (typeof(m)=="\x75ndefi\x6e\x65d"){m= true; }M=M && m; }return M; }};};if (typeof(RadUploadNameSpace)=="u\x6e\x64efined")RadUploadNameSpace= {} ; if (typeof(RadUploadNameSpace.Localization)=="undefine\x64")RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Localization.ProcessRawArray= function (L){var l=L[0]; if (typeof(RadUploadNameSpace.Localization[l])=="unde\x66\x69ned"){RadUploadNameSpace.Localization[l]=[]; }for (var i=1; i<L.length; i+=2){RadUploadNameSpace.Localization[l][L[i]]=L[i+1]; }} ;;if (typeof window.RadControlsNamespace=="\x75ndefined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Overlay)=="undefi\x6e\x65d" || 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("\x49FRAME"); this.Shim.src="javasc\x72\x69pt:\x27\x27;"; 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="\x70rogid:DX\x49\x6dage\x54\x72an\x73\146\x6frm.Micr\x6f\163o\x66t.Alp\x68a(sty\x6c\145=\x30\054\x6fpaci\x74\171=\x30)"; this.Shim.disabled="\x64isabl\x65\x64"; };window.RadControlsNamespace.Overlay.Version=.11e1; RadControlsNamespace.Overlay.prototype.SupportsOverlay= function (){return RadControlsNamespace.Browser.IsIE; };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+"\x70x"; };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; };};function GetRadProgressArea(k){return window[k]; } ; if (typeof(RadUploadNameSpace)=="undefi\x6e\x65d")RadUploadNameSpace= {} ; RadUploadNameSpace.J="Pan\x65\x6c"; RadUploadNameSpace.RadProgressArea= function (H){ this.Id=H[0]; this.OnClientProgressUpdating=H[1]; this.OnClientProgressBarUpdating=H[2]; this.h=H[3]; if (!this.h){alert("\x43ould not fi\x6e\x64 an\x20\x69n\x73tance o\x66\x20Ra\x64\120\x72og\x72\145s\x73Manage\x72 on t\x68\145 \x70age. \x41re y\x6fu m\x69ssin\x67 th\x65 con\x74rol \x64ecla\x72ati\x6fn?"); }RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Element=document.getElementById(this.Id); this.PrimaryProgressBarElement=this.FindElement("P\x72\x69maryPr\x6f\x67res\x73\x42ar"); this.PrimaryTotalElement=this.FindElement("P\x72\x69maryTot\x61\x6c"); this.PrimaryValueElement=this.FindElement("Pri\x6d\x61ryValu\x65"); this.PrimaryPercentElement=this.FindElement("\x50\x72imary\x50\x65rce\x6e\x74"); this.SecondaryProgressBarElement=this.FindElement("Secon\x64\x61ryPro\x67\x72essB\x61r"); this.SecondaryTotalElement=this.FindElement("\x53\145con\x64\x61ryTot\x61\x6c"); this.SecondaryValueElement=this.FindElement("\x53\x65condar\x79\x56alu\x65"); this.SecondaryPercentElement=this.FindElement("\x53\x65conda\x72\x79Perc\x65\x6et"); this.G=this.FindElement("Cur\x72\x65ntOper\x61\x74ion"); this.TimeElapsedElement=this.FindElement("T\x69\x6deElapse\x64"); this.TimeEstimatedElement=this.FindElement("\x54\x69meEsti\x6d\x61ted"); this.SpeedElement=this.FindElement("Speed"); this.CancelButtonElement=this.FindElement("\103an\x63\x65lButto\x6e"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"clic\x6b","CancelReq\x75\x65st"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="undefined"){RadUploadNameSpace.ProgressAreas=[]; } this.RegisterForAutomaticDisposal("\x48ide"); RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (g){if (this.RaiseEvent("OnClie\x6e\164P\x72\x6fgre\x73\x73Upd\x61\164i\x6e\x67", {ProgressData:g } )== false)return; this.Show(); if (this.RaiseEvent("OnClient\x50\x72ogr\x65\x73sBar\x55pdating", {ProgressValue:g.PrimaryPercent,ProgressBarElementName: "Prima\x72\x79Progr\x65\x73sBar",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,g.PrimaryPercent); }if (this.RaiseEvent("\x4fnClientProg\x72\x65ssB\x61\x72Upd\x61\164i\x6e\x67", {ProgressValue:g.SecondaryPercent,ProgressBarElementName: "\x53econdaryPr\x6f\x67ress\x42\x61r",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.G,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=="abs\x6f\154ute"){if (typeof(this.Overlay)=="\x75ndefine\x64"){ this.Overlay=new RadControlsNamespace.Overlay(this.Element); } this.Overlay.Update(); }} ,Hide:function (){ this.Element.style.display="none"; if (this.Overlay){ this.Overlay.Dispose(); this.Overlay=null; }} ,UpdateHorizontalProgressBar:function (K,F){if (K && typeof(F)!="\x75ndefined")K.style.width=F+"%"; } ,UpdateVerticalProgressBar:function (K,F){if (K && typeof(F)!="\x75ndefine\x64")K.style.height=F+"\x25"; } ,UpdateTextIndicator:function (K,text){if (K && typeof(text)!="\x75\x6edefined"){if (typeof(K.value)=="string")K.value=text; else if (typeof(K.innerHTML)=="string")K.innerHTML=text; }} ,CancelRequest:function (){ this.CancelClicked= true; } ,FindElement:function (f){var D=this.Id+"\x5f"+RadUploadNameSpace.J+"\x5f"+f; return document.getElementById(D); }};;function GetRadProgressManager(){return window["RadProgre\x73\x73Manager"]; } ; if (typeof(RadUploadNameSpace)=="\x75\x6edefin\x65\x64")RadUploadNameSpace= {} ; RadUploadNameSpace.RadProgressManager= function (H){RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.d=Math.max(H[0],50); var C=H[1]; this.EnableMemoryOptimizationIdentifier=H[2]; this.UniqueRequestIdentifier=H[3]; this.c=H[4]; this.OnClientProgressStarted=H[5]; this.OnClientProgressUpdating=H[6]; this.FormId=H[7]; this.B=H[8]; this.EnableMemoryOptimization=H[9]; this.SuppressMissingHttpModuleError=H[10]; this.OnClientSubmitting=H[11]; this.TimeFormat="%HOURS%:%\x4dINUTES%\x3a\x25SEC\x4f\116\x44\x53%s"; var form=document.getElementById(this.FormId); if (!form){form=document.forms[0]; } this.o0(form); if (this.B== true){ this.RegisterForSubmit(form); } this.O0=this.l0(C); this.i0= false; if (typeof(RadUploadNameSpace.ProgressAreas)=="undefined"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {ClientSubmitHandler:function (n){if (this.RaiseEvent("On\x43lientSubm\x69\x74tin\x67")== false){ this.CancelEvent(n); return false; } this.StartProgressPolling(); } ,StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("\x4fnClientP\x72\x6fgre\x73\x73Sta\x72\164\x65\x64"); this.I0=new Date(); this.MakeCallback(); } ,MakeCallback:function (){if (!this.i0){ this.i0= true; this.o1(); }} ,HandleCallback:function (){if (this.O1.readyState!=4)return; this.i0= false; if (this.ErrorOccured())return; var responseText=this.O1.responseText; if (responseText){try {eval(responseText); }catch (ex){ this.l1(); return; }if (rawProgressData){if (this.EnableMemoryOptimization== true && !this.SuppressMissingHttpModuleError && rawProgressData.ProgressError){alert(rawProgressData.ProgressError); return; }if (rawProgressData.InProgress){if (this.i1>0 || rawProgressData.RadProgressContextCustomCounters){ this.ModifyProgressData(rawProgressData); if (!this.UpdateProgressAreas(rawProgressData)){window.location.href=window.location.href; return; }}}}}window.setTimeout(this.CreateEventHandler("\x4dake\x43\x61llbac\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.o2(); }else return false; return true; } ,I1:function (){alert("\x52adUpload\x20\x41jax\x20\x63al\x6c\142\x61\x63k \x65\x72ro\x72. S\x6f\x75rc\x65\040\x75rl wa\x73 not \x66ound:\x20\012\x0d\012\x0d"+this.O0+"\012\x0d\x0a\015\x44id you \x72\145g\x69\163t\x65\x72 th\x65\040\x52\141d\x55\160l\x6fadPro\x67ressH\x61ndler\x20in w\x65\142\x2econf\x69g?"+"\015\x0a\015\012\x50leas\x65\x2c s\x65\x65 t\x68\x65 h\x65\x6cp \x66\157r\x20more \x64\145t\x61ils: \x52adUpl\x6fad 2\x2ex - \x55sing\x20RadU\x70load\x20- C\x6fnfig\x75rat\x69on \x2d Ra\x64Upl\x6fadP\x72ogr\x65ss\x48and\x6cer\x2e"); } ,o2:function (){alert("RadUpl\x6f\x61d Aj\x61\x78 cal\x6cback err\x6f\162.\x20\x53ou\x72ce url\x20return\x65\144 \x65rror:\x20"+this.O1.status+" \x0a\x0d\012\x0d"+this.O1.O2+" \012\x0d\x0a\015"+this.O0+"\x0a\015\x0a\x0dDid\x20\x79ou\x20\162e\x67\x69ste\x72\040t\x68\145 \x52adUpl\x6f\141d\x50rogre\x73sHand\x6cer i\x6e web\x2e\143\x6fnfi\x67?"+"\015\x0a\015\x0a\x50lea\x73\x65, \x73\145e\x20\x74he \x68\145l\x70 for \x6d\157r\x65\040d\x65tails\x3a Rad\x55\160\x6c\157\x61\144\x202.x \x2d Us\x69ng R\x61dUp\x6coad \x2d Co\x6efig\x75rat\x69on \x2d R\x61dUp\x6coad\x50ro\x67re\x73sHa\x6edl\x65r."); } ,l1:function (){alert("\x52\x61dUploa\x64\x20Aja\x78\x20cal\x6c\x62ac\x6b\x20err\x6f\162\x2e\040S\x6furce \x75\x72l \x72eturn\x65d inv\x61lid c\x6fnten\x74: \012\x0d\012\015"+this.O1.responseText+"\x0a\015\x0a\015"+this.O0+"\x0a\015\x0a\x0dDid y\x6f\x75 re\x67\151s\x74\x65r t\x68\145 \x52adUplo\x61\144P\x72ogres\x73\110a\x6edler\x20\151n\x20web.\x63onfi\x67?"+"\015\x0a\x0d\012\x50\154e\x61\x73e, \x73\145e \x74\150e\x20\x68el\x70 for \x6d\x6fre\x20detai\x6c\163:\x20RadU\x70\154\x6f\141\x64 2.x\x20- Us\x69ng R\x61dUp\x6coad \x2d Co\x6efig\x75rat\x69on \x2d Ra\x64Upl\x6fadP\x72og\x72ess\x48an\x64le\x72."); } ,UpdateProgressAreas:function (rawProgressData){ this.RaiseEvent("\x4fnClientPro\x67\x72ess\x55\x70dat\x69\156g", {ProgressData:rawProgressData } ); for (var i=0; i<RadUploadNameSpace.ProgressAreas.length; i++){var l2=RadUploadNameSpace.ProgressAreas[i]; if (l2.CancelClicked){return false; }l2.Update(rawProgressData); }return true; } ,ModifyProgressData:function (rawProgressData){var i2=new Date()-this.I0; if (typeof(rawProgressData.TimeElapsed)=="unde\x66ined")rawProgressData.TimeElapsed=this.GetFormattedTime(this.ToSeconds(i2)); if (rawProgressData.RadUpload){var I2=rawProgressData.RadUpload.RequestSize; var o3=rawProgressData.RadUpload.Bytes; if (typeof(rawProgressData.PrimaryTotal)=="undefi\x6e\x65d")rawProgressData.PrimaryTotal=this.FormatBytes(I2); if (typeof(rawProgressData.PrimaryValue)=="\x75\x6edefine\x64")rawProgressData.PrimaryValue=this.FormatBytes(o3); if (typeof(rawProgressData.PrimaryPercent)=="un\x64\x65fined")rawProgressData.PrimaryPercent=Math.round(100*o3/I2); if (typeof(rawProgressData.SecondaryTotal)=="undefine\x64")rawProgressData.SecondaryTotal=this.i1; if (typeof(rawProgressData.SecondaryValue)=="\x75\x6edefine\x64")rawProgressData.SecondaryValue=rawProgressData.RadUpload.FilesCount; if (typeof(rawProgressData.SecondaryPercent)=="\x75ndefin\x65\x64")rawProgressData.SecondaryPercent=Math.round(100*rawProgressData.RadUpload.FilesCount/(this.i1!=0?this.i1: 1)); if (typeof(rawProgressData.CurrentOperationText)=="undef\x69\x6eed")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="\x75\x6edefin\x65\x64"){if (this.ToSeconds(i2)==0){rawProgressData.Speed=this.FormatBytes(0)+"/s"; }else {rawProgressData.Speed=this.FormatBytes(rawProgressData.RadUpload.Bytes/this.ToSeconds(i2))+"/s"; }}}if (typeof(rawProgressData.TimeEstimated)=="und\x65\x66ined" && typeof(rawProgressData.PrimaryPercent)=="\x6eumber"){if (rawProgressData.PrimaryPercent==0){rawProgressData.TimeEstimated=this.GetFormattedTime(this.ToSeconds(359999000)); }else {rawProgressData.TimeEstimated=this.GetFormattedTime(this.ToSeconds(i2*(100/rawProgressData.PrimaryPercent-1))); }}} ,ToSeconds:function (O3){return Math.round(O3/1000); } ,InitSelectedFilesCount:function (){ this.i1=0; var l3=document.getElementsByTagName("input"); for (var i=0; i<l3.length; i++){var i3=l3[i]; if (i3.type=="file" && i3.value!=""){ this.i1++; }}} ,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; } ,o1:function (){if (typeof(XMLHttpRequest)!="undefin\x65d"){ this.O1=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="und\x65\x66ined"){ this.O1=new ActiveXObject("\x4d\151\x63\x72oso\x66\x74.XML\x48TTP"); }else return; this.O1.onreadystatechange=this.CreateEventHandler("\x48\x61ndleCa\x6c\x6cback"); this.O1.open("GE\x54",this.I3(), true); this.O1.send(""); } ,o4:function (U,method){return function (){method.apply(U,arguments); } ; } ,l0:function (C){var O4=C.indexOf("?")<0?"?": "&"; return C+O4+this.UniqueRequestIdentifier+"="+this.c; } ,I3:function (){return this.O0+"\x26RadUpload\x54\x69meSt\x61\x6dp="+new Date().getTime(); } ,RegisterForSubmit:function (form){ this.l4(form); this.i4(form); } ,l4:function (form){var I4=this.CreateEventHandler("Cl\x69entSubmitHa\x6e\x64ler"); var o5=form.submit; try {form.submit= function (){if (I4()== false)return; form.submit=o5; form.submit(); };}catch (exception){try {var O5=__doPostBack; __doPostBack= function (eventTarget,eventArgument){var l5= true; if (typeof(Page_ClientValidate)=="\146\x75\x6ection"){l5=Page_ClientValidate(); }if (l5){if (I4()== false)return; O5(eventTarget,eventArgument); }} ; }catch (exception){}}} ,i4:function (form){ this.AttachDomEvent(form,"\x73ubmit","\x43lientSubmi\x74\x48and\x6c\x65r"); } ,o0:function (form){if (typeof(form.action)=="unde\x66\x69ned")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+="\x26"; }}else {form.action+="?";}form.action+=this.UniqueRequestIdentifier+"="+this.c; if (this.EnableMemoryOptimization){form.enctype=form.encoding="mul\x74\x69part/f\x6f\x72m-d\x61\164\x61"; }else {form.action+="&"+this.EnableMemoryOptimizationIdentifier+"=false"; }form._initialAction=form.action; } ,i5:function (I5,o6){var O6=new RegExp("\x26?"+o6+"\x3d[^&]*"); 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 };}} ;;RadUploadNameSpace.RadUploadEventArgs= function (I8){ this.FileInputField=I8; } ; RadUploadNameSpace.RadUploadDeleteSelectedEventArgs= function (o9){ this.FileInputFields=o9; } ;;if (typeof(window.RadControlsNamespace)=="undefin\x65\x64"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O9,k,l9){if (!l9){return; }if (!O9){document.write("<"+"\x6cink"+" rel=\047styles\x68\145e\x74\x27 t\x79pe=\047\x74ext/c\x73\163\x27 href\x3d\047"+l9+"\047\x20/>"); }else {var i9=document.createElement("\x4c\111N\x4b"); i9.rel="\163tyl\x65\x73heet"; i9.type="\x74\x65xt/css"; i9.href=l9; document.getElementById(k+"StyleSheet\x48\x6flder").appendChild(i9); }} ;;