function GetRadUpload(k){return window[k]; } ; if (typeof(RadUploadNameSpace)=="undefined")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+"Button\x41re\x61"); this.ListContainer=document.getElementById(this.Id+"ListContai\x6e\x65r"); if (!document.readyState || document.readyState=="\x63\x6fmplete"){ this.InnerConstructor(); }else { this.AttachDomEvent(window,"loa\x64","\x49nnerConstru\x63\x74or"); }} ; RadUploadNameSpace.RadUpload.prototype= {InnerConstructor:function (n){ this.Ib(); this.AddButton=this.InitButton(document.getElementById(this.Id+"\x41ddB\x75\x74ton"),"\x41dd","\x41\x64dFile\x49\x6eput"); this.DeleteButton=this.InitButton(document.getElementById(this.Id+"DeleteBut\x74\x6fn"),"\x44\x65lete","DeleteSe\x6c\x65cted\x46\x69leIn\x70uts"); 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("OnC\x6c\151\x65\x6etAdd\x69\x6eg",new RadUploadNameSpace.RadUploadEventArgs(null)); if (Ic== false){return; }} this.od(index); } ,od:function (index){var Od=this.ListContainer.insertRow(index); this.AttachDomEvent(Od,"\x63lick","Ro\x77\x43licked"); 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("\x4fnClientA\x64\x64ed", {Row:Od } ); this.CurrentIndex++; return Od; } ,oe:function (container){var Ie=document.createElement("\x69nput"); Ie.type="checkb\x6f\x78"; Ie.id=this.Id+"\x63\x68eckbox"+this.CurrentIndex; container.appendChild(Ie); Ie.className="RadUploadFi\x6c\x65Sele\x63\x74or"; Ie.disabled=!this.Enabled; return Ie; } ,le:function (container){var button=document.createElement("\x69nput"); button.type="\x62utton"; button.id=this.Id+"clear"+this.CurrentIndex; container.appendChild(button); this.InitButton(button,"\x43\x6cear"); button.className="RadUploadC\x6c\x65arBu\x74\x74on"; button.name="Clea\x72\x49nput"; button.disabled=!this.Enabled; return button; } ,ie:function (container){var button=document.createElement("\151\x6e\160ut"); button.type="\x62utton"; button.id=this.Id+"\x72emove"+this.CurrentIndex; container.appendChild(button); button.value=RadUploadNameSpace.Localization[this.Oa]["Remo\x76\x65"]; button.className="\122ad\x55\x70loadR\x65\x6doveB\x75tton"; button.name="\x52\x65moveRo\x77"; button.disabled=!this.Enabled; return button; } ,Oe:function (container){var i3=this.of(); this.AttachDomEvent(i3,"\x63hange","Fil\x65\x53electe\x64"); if (this.EnableFileInputSkinning){i3.className="RealFi\x6c\x65Input"; var div=document.createElement("\x64iv"); container.appendChild(div); div.style.position="relativ\x65"; div.appendChild(this.oc.cloneNode( true)); div.appendChild(i3); if (!this.ReadOnlyFileInputs){ this.AttachDomEvent(i3,"keyup","S\x79\x6ecFileIn\x70\x75tCon\x74ent"); }else { this.AttachDomEvent(i3,"\x6b\x65ydown","Ca\x6e\x63elEvent"); }return div; }else {container.appendChild(i3); i3.className="\x4eoSkinned\x46\x69leU\x6e\x70ut"; if (this.ReadOnlyFileInputs){ this.AttachDomEvent(i3,"\x6beydown","Cancel\x45\x76ent"); }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("OnClient\x43\x6cear\x69\x6eg",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="absolute"; Of.style.top=0; Of.style.left=0; Of.style.zIndex=1; var If=document.createElement("\x69nput"); If.type="text"; If.className="Rad\x55\x70loadIn\x70\x75tFi\x65\154\x64"; Of.appendChild(If); var og=document.createElement("\x69\156put"); og.type="\x62utton"; Of.appendChild(og); this.InitButton(og,"S\x65\x6cect"); og.disabled=!this.Enabled; og.className="\x52\x61dUpload\x53\x65lec\x74\x42utt\x6f\156"; return Of; } ,of:function (){var i3=document.createElement("\x69nput"); i3.type="file"; i3.name=this.GetID("\x66ile"); i3.id=this.GetID("\x66\151le"); i3.disabled=!this.Enabled; return i3; } ,DeleteFileInputAt:function (index,Og){var Od=this.ListContainer.rows[index]; if (Od){if (!Og){var Ic=this.RaiseEvent("\x4fnClient\x44\x65letin\x67",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("OnClientDe\x6cetingSel\x65\x63ted",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("\x4fnClie\x6e\x74File\x53\x65lec\x74\145\x64",new RadUploadNameSpace.RadUploadEventArgs(i3)); } ,GetFileInputFrom:function (Od){var ih=Od.getElementsByTagName("\x69nput"); for (var i=0; i<ih.length; i++){if (ih[i].type=="f\x69\x6ce"){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()=="\x74r"){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,"\x63\x6cick",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("."+Ii+"\x24","i\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=="RemoveRow"){ this.DeleteFileInputAt(Oj.rowIndex); }else if (srcElement.name=="ClearIn\x70\x75t"){ 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?"R\x61dUploadButt\x6f\x6e": "R\x61\x64UploadB\x75\x74ton\x44\x69sa\x62led"; }} ,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="multip\x61\x72t/for\x6d\x2ddata"; } ,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=="undefined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Browser)=="\x75\x6edefined" || 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=="\x4dicro\x73\x6fft In\x74\x65rne\x74 Explor\x65\x72") && ((navigator.userAgent.toLowerCase().indexOf("m\x61c")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6d\141\x63")!=-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.IsIE7=/\x4d\x53\x49\x45\x20\x37/.test(navigator.appVersion); this.StandardsMode=this.IsSafari || this.IsOpera9 || this.IsMozilla || document.compatMode=="CSS1\x43\x6fmpat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo(); };if (typeof window.RadControlsNamespace=="\165n\x64\x65fined"){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("\x6fn"+z,w); }else if (Z.addEventListener){Z.addEventListener(z,w, false); }} ; RadControlsNamespace.DomEventsMixin.DetachDomEvent= function (Z,z,w){if (Z.detachEvent){Z.detachEvent("on"+z,w); }} ; RadControlsNamespace.DomEventsMixin.DisposeDomEvents= function (){for (var i=0; i<this.V.length; i++){ this.DetachDomEvent(this.V[i][0],this.V[i][1],this.V[i][2]); } this.ClearEventPointers(); } ; RadControlsNamespace.DomEventsMixin.RegisterForAutomaticDisposal= function (v){var T=this ; var t=this.CreateEventHandler(v); var S= function (){t(); T.DisposeDomEvents(); T=null; } ; this.I(window,"\x75\x6eload",S); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.V=[]; } ;;if (typeof window.RadControlsNamespace=="undefine\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.EventMixin)=="u\x6e\x64efined" || 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)=="\x66\x75nction"){return N; }else if (typeof(window[N])=="function"){return window[N]; }else {return new Function("var\x20\x53ender \x3d\x20arg\x75ments[0\x5d\x3b va\x72\040\x41rg\x75ments\x20\075\x20\x61rg\x75ments\x5b\061\x5d\073"+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)=="\x75nd\x65\x66ined"){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)=="u\x6e\x64efined"){m= true; }M=M && m; }return M; }};};if (typeof(RadUploadNameSpace)=="undefine\x64")RadUploadNameSpace= {} ; if (typeof(RadUploadNameSpace.Localization)=="undefi\x6e\x65d")RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Localization.ProcessRawArray= function (L){var l=L[0]; if (typeof(RadUploadNameSpace.Localization[l])=="\x75ndefined"){RadUploadNameSpace.Localization[l]=[]; }for (var i=1; i<L.length; i+=2){RadUploadNameSpace.Localization[l][L[i]]=L[i+1]; }} ;;if (typeof window.RadControlsNamespace=="und\x65\x66\151n\x65\144"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Overlay)=="\x75ndefined" || 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("\111\x46RAME"); this.Shim.src="javascript:\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="\x61\x62solute"; this.Shim.style.border="0\x70\x78"; this.Shim.frameBorder=0; this.Shim.style.filter="progid:DXIma\x67eTransfo\x72\x6d\x2e\x4dic\x72\x6fsof\x74\056\x41lpha\x28style\x3d\060\x2c\157p\x61\143\x69\164y\x3d0)"; this.Shim.disabled="\144is\x61\x62led"; };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+"px"; this.Shim.style.height=this.Element.offsetHeight+"px"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "0p\x78"; return parseInt(value)+"p\x78"; };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)=="\165nde\x66\x69ned")RadUploadNameSpace= {} ; RadUploadNameSpace.J="Panel"; RadUploadNameSpace.RadProgressArea= function (H){ this.Id=H[0]; this.OnClientProgressUpdating=H[1]; this.OnClientProgressBarUpdating=H[2]; this.h=H[3]; if (!this.h){alert("\103\x6f\165ld \x6e\x6ft f\x69\x6ed\x20\141n \x69\156s\x74\x61nc\x65 of \x52\141\x64\120r\x6f\147r\x65ssMan\x61ger o\x6e the \x70ag\x65. Ar\x65 you\x20miss\x69ng \x74he c\x6fntr\x6fl d\x65clar\x61tio\x6e?"); }RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Element=document.getElementById(this.Id); this.PrimaryProgressBarElement=this.FindElement("PrimaryP\x72\x6fgre\x73\x73Bar"); this.PrimaryTotalElement=this.FindElement("Primary\x54\x6ftal"); this.PrimaryValueElement=this.FindElement("\x50rimary\x56\x61lue"); this.PrimaryPercentElement=this.FindElement("\x50rimaryP\x65\x72cent"); this.SecondaryProgressBarElement=this.FindElement("SecondaryPr\x6f\x67ress\x42\x61r"); this.SecondaryTotalElement=this.FindElement("\x53\x65conda\x72\x79Tota\x6c"); this.SecondaryValueElement=this.FindElement("\x53\145con\x64\x61ryVa\x6c\x75e"); this.SecondaryPercentElement=this.FindElement("Secondary\x50\x65rcen\x74"); this.G=this.FindElement("CurrentO\x70\x65rati\x6f\x6e"); this.TimeElapsedElement=this.FindElement("Tim\x65\x45lapsed"); this.TimeEstimatedElement=this.FindElement("TimeEstimate\x64"); this.SpeedElement=this.FindElement("Speed"); this.CancelButtonElement=this.FindElement("\x43ancel\x42\x75tton"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"\x63lick","Can\x63\x65lReque\x73\x74"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="\x75ndefin\x65\x64"){RadUploadNameSpace.ProgressAreas=[]; } this.RegisterForAutomaticDisposal("Hid\x65"); RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (g){if (this.RaiseEvent("OnClientProg\x72essUpda\x74\x69ng", {ProgressData:g } )== false)return; this.Show(); if (this.RaiseEvent("OnClient\x50\x72ogr\x65\x73sBa\x72\125\x70\x64ati\x6e\147", {ProgressValue:g.PrimaryPercent,ProgressBarElementName: "Primar\x79\x50rogre\x73\x73Bar",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,g.PrimaryPercent); }if (this.RaiseEvent("O\x6e\x43lientP\x72\x6fgres\x73\102\x61\x72Upd\x61\x74ing", {ProgressValue:g.SecondaryPercent,ProgressBarElementName: "\x53\x65condar\x79\x50rogr\x65\x73sB\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.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=="\x61\x62solute"){if (typeof(this.Overlay)=="\x75\x6edefine\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)!="und\x65fined")K.style.width=F+"\x25"; } ,UpdateVerticalProgressBar:function (K,F){if (K && typeof(F)!="undefined")K.style.height=F+"%"; } ,UpdateTextIndicator:function (K,text){if (K && typeof(text)!="und\x65\x66ined"){if (typeof(K.value)=="str\x69\x6eg")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["RadProg\x72\x65ssMana\x67\x65r"]; } ; if (typeof(RadUploadNameSpace)=="undefine\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="\045HOURS%:%MIN\x55\124ES\x25\x3a%S\x45\x43OND\x53\x25s"; 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("\x4fnClientSu\x62\x6ditt\x69\x6eg")== false){ this.CancelEvent(n); return false; } this.StartProgressPolling(); } ,StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("\x4fnCli\x65\x6etPro\x67\x72essS\x74arted"); 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("\x4dakeCall\x62\x61ck"),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("R\x61\x64Upload\x20\x41jax\x20\x63al\x6c\142\x61\143k\x20\x65rr\x6fr. S\x6furce u\x72l was\x20\156o\x74 foun\x64: \012\x0d\012\x0d"+this.O0+"\012\x0d\012\015\x44id y\x6f\x75 r\x65\x67ist\x65\162 \x74\x68e \x52adUpl\x6f\141d\x50rogre\x73\163H\x61ndle\x72\040\x69\156\x20web.\x63onf\x69g?"+"\x0d\x0a\015\x0aPlease,\x20\x73ee\x20\164h\x65\x20he\x6c\x70 f\x6f\162 \x6d\157r\x65 deta\x69ls: R\x61dUplo\x61d 2.\x78\040\x2d Usi\x6eg R\x61\144\x55ploa\x64 - \x43onf\x69gura\x74ion\x20- R\x61dUp\x6coa\x64Pro\x67res\x73Ha\x6edle\x72."); } ,o2:function (){alert("Ra\x64\x55pload \x41\152a\x78\x20ca\x6c\x6cbac\x6b\040e\x72\x72o\x72\x2e S\x6furce u\x72l retu\x72ned e\x72ror: "+this.O1.status+"\x20\x0a\015\x0a\015"+this.O1.O2+"\x20\012\x0d\x0a\015"+this.O0+"\012\x0d\x0a\015\x44id you \x72\145g\x69\x73te\x72\x20th\x65\040\x52\x61dU\x70loadP\x72\157g\x72essH\x61\156d\x6cer i\x6e web\x2econ\x66ig?"+"\x0d\012\x0d\x0aPlea\x73\x65, s\x65\145 \x74\x68e \x68\x65lp\x20\146o\x72\040m\x6fre de\x74\141\x69\154s\x3a Rad\x55pload\x202.x\x20- Us\x69ng R\x61dUpl\x6fad \x2d Co\x6efigu\x72ati\x6fn -\x20Ra\x64Upl\x6fadP\x72og\x72ess\x48an\x64ler\x2e"); } ,l1:function (){alert("RadU\x70\x6coad A\x6a\x61x ca\x6clback e\x72\x72or.\x20\123o\x75rce ur\x6c\040\x72\145t\x75\162n\x65d inv\x61lid c\x6fnten\x74: \012\x0d\012\x0d"+this.O1.responseText+"\x0a\x0d\012\x0d"+this.O0+"\012\x0d\x0a\015\x44\151d \x79\157u\x20\x72eg\x69\x73te\x72\x20th\x65\040R\x61dUplo\x61\144P\x72ogres\x73Handl\x65r in\x20\167\x65b.co\x6efig?"+"\x0d\012\x0d\x0aPlea\x73\x65, s\x65\145 t\x68\145 \x68\x65lp\x20\146o\x72\040m\x6fre de\x74\141i\x6cs: Ra\x64Uplo\x61\144 \x32.x \x2d Usi\x6eg Ra\x64Uplo\x61d - \x43onf\x69gur\x61tio\x6e - \x52adU\x70loa\x64Pro\x67re\x73sHa\x6edl\x65r."); } ,UpdateProgressAreas:function (rawProgressData){ this.RaiseEvent("\x4fnClie\x6e\x74Prog\x72\x65ssU\x70\x64at\x69\x6eg", {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)=="un\x64\145fin\x65\x64")rawProgressData.TimeElapsed=this.GetFormattedTime(this.ToSeconds(i2)); if (rawProgressData.RadUpload){var I2=rawProgressData.RadUpload.RequestSize; var o3=rawProgressData.RadUpload.Bytes; if (typeof(rawProgressData.PrimaryTotal)=="undefined")rawProgressData.PrimaryTotal=this.FormatBytes(I2); if (typeof(rawProgressData.PrimaryValue)=="unde\x66\x69ned")rawProgressData.PrimaryValue=this.FormatBytes(o3); if (typeof(rawProgressData.PrimaryPercent)=="\x75\x6edefined")rawProgressData.PrimaryPercent=Math.round(100*o3/I2); if (typeof(rawProgressData.SecondaryTotal)=="u\x6e\x64efined")rawProgressData.SecondaryTotal=this.i1; if (typeof(rawProgressData.SecondaryValue)=="\165n\x64\x65fined")rawProgressData.SecondaryValue=rawProgressData.RadUpload.FilesCount; if (typeof(rawProgressData.SecondaryPercent)=="undefin\x65\x64")rawProgressData.SecondaryPercent=Math.round(100*rawProgressData.RadUpload.FilesCount/(this.i1!=0?this.i1: 1)); if (typeof(rawProgressData.CurrentOperationText)=="\x75ndefined")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="\165\x6e\x64efined"){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)=="\x75\156def\x69\x6eed" && typeof(rawProgressData.PrimaryPercent)=="\156um\x62\x65r"){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)!="u\x6edefined"){ this.O1=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="undefin\x65\x64"){ this.O1=new ActiveXObject("Microsoft\x2e\x58MLHT\x54\x50"); }else return; this.O1.onreadystatechange=this.CreateEventHandler("\110\x61\x6edleCal\x6c\x62ack"); this.O1.open("\x47ET",this.I3(), true); this.O1.send(""); } ,o4:function (U,method){return function (){method.apply(U,arguments); } ; } ,l0:function (C){var O4=C.indexOf("?")<0?"\x3f": "\x26"; return C+O4+this.UniqueRequestIdentifier+"\x3d"+this.c; } ,I3:function (){return this.O0+"\x26\x52adUpl\x6f\x61dTim\x65\x53t\x61\x6dp="+new Date().getTime(); } ,RegisterForSubmit:function (form){ this.l4(form); this.i4(form); } ,l4:function (form){var I4=this.CreateEventHandler("\x43\x6cientS\x75\x62mitH\x61\x6edl\x65\x72"); 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)=="func\x74\x69on"){l5=Page_ClientValidate(); }if (l5){if (I4()== false)return; O5(eventTarget,eventArgument); }} ; }catch (exception){}}} ,i4:function (form){ this.AttachDomEvent(form,"submit","Client\x53\x75bmitH\x61\x6edle\x72"); } ,o0:function (form){if (typeof(form.action)=="\x75\x6edefine\x64")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)!="?"){form.action+="&"; }}else {form.action+="\x3f";}form.action+=this.UniqueRequestIdentifier+"\x3d"+this.c; if (this.EnableMemoryOptimization){form.enctype=form.encoding="multipart/\x66\x6frm-\x64\x61ta"; }else {form.action+="&"+this.EnableMemoryOptimizationIdentifier+"=false"; }form._initialAction=form.action; } ,i5:function (I5,o6){var O6=new RegExp("\x26?"+o6+"\x3d\x5b^&]*"); 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+"\040\x62ytes"; } ,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)=="undefine\x64"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O9,k,l9){if (!l9){return; }if (!O9){document.write("\x3c"+"\154\x69\x6ek"+" r\x65\x6c=\047\x73tyle\x73\x68e\x65t\047\x20type=\047\x74ex\x74/css\x27 href=\x27"+l9+"\x27 />"); }else {var i9=document.createElement("LINK"); i9.rel="\x73tyleshee\x74"; i9.type="\x74\x65xt/css"; i9.href=l9; document.getElementById(k+"\x53tyleShee\x74\x48old\x65\x72").appendChild(i9); }} ;;