function GetRadUpload(K){return window[K]; } ; if (typeof(RadUploadNameSpace)=="undefine\x64")RadUploadNameSpace= {} ; RadUploadNameSpace.RadUpload= function (J){ this.i9= false; RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Id=J[0]; this.I9(document.getElementById(J[1])); this.oa=J[2]; this.Oa=J[3]; this.Enabled=J[4]; this.la=J[5]; this.ia=J[6]; this.EnableFileInputSkinning=J[7]; if (RadControlsNamespace.Browser.IsSafari || (RadControlsNamespace.Browser.IsOpera && !RadControlsNamespace.Browser.IsOpera9)){ this.EnableFileInputSkinning= false; } this.ReadOnlyFileInputs=J[8]; this.AllowedFileExtensions=J[9]; this.Ia=J[10]&1; this.ob=J[10]&2; this.Ob=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.lb=document.getElementById(this.Id+"B\x75ttonAre\x61"); this.ListContainer=document.getElementById(this.Id+"ListCo\x6e\x74aine\x72"); if (!document.readyState || document.readyState=="compl\x65\x74e"){ this.InnerConstructor(); }else { this.AttachDomEvent(window,"\x6coad","\x49nnerCo\x6e\x73truc\x74\x6fr"); }} ; RadUploadNameSpace.RadUpload.prototype= {InnerConstructor:function (N){ this.ib(); this.AddButton=this.InitButton(document.getElementById(this.Id+"\x41ddButton"),"Add","\x41ddFileIn\x70\x75t"); this.DeleteButton=this.InitButton(document.getElementById(this.Id+"\x44\x65leteBu\x74\x74on"),"Delete","Dele\x74\x65Select\x65\x64Fil\x65Inputs"); this.Ib=this.oc(); var Oc=this.la==0?this.ia:Math.min(this.ia,this.la); for (var i=0; i<Oc; i++){ this.AddFileInput(); } this.lc(); this.i9= true; } ,AddFileInput:function (N){var l3=this.AddFileInputAt(this.ListContainer.rows.length); if (this.i9){try {l3.focus(); }catch (ex){}}} ,AddFileInputAt:function (index){if (typeof(index)=="\165\x6edefined" || index>this.ListContainer.rows.length){index=this.ListContainer.rows.length; }if (this.la>0 && index>=this.la)return; if (this.i9){var ic=this.RaiseEvent("OnClientAddi\x6eg",new RadUploadNameSpace.RadUploadEventArgs(null)); if (ic== false){return; }} this.Ic(index); } ,Ic:function (index){var od=this.ListContainer.insertRow(index); this.AttachDomEvent(od,"c\x6c\x69ck","\x52owClicked"); var Od; if (this.Ia){Od=od.insertCell(od.cells.length); this.ld(Od); }Od=od.insertCell(od.cells.length); this.oe(Od); if (this.Ob){Od=od.insertCell(od.cells.length); this.Oe(Od); }if (this.ob){Od=od.insertCell(od.cells.length); this.le(Od); } this.lc(); this.RaiseEvent("OnClien\x74\x41dded", {Row:od } ); this.CurrentIndex++; return od; } ,ld:function (container){var ie=document.createElement("i\x6e\160u\x74"); ie.type="checkbox"; ie.id=this.Id+"\x63heckbox"+this.CurrentIndex; container.appendChild(ie); ie.className="\x52\x61dUploa\x64\x46ile\x53\x65l\x65\x63tor"; ie.disabled=!this.Enabled; return ie; } ,Oe:function (container){var button=document.createElement("\x69nput"); button.type="\x62\x75tton"; button.id=this.Id+"\x63\x6cear"+this.CurrentIndex; container.appendChild(button); this.InitButton(button,"C\x6c\x65ar"); button.className="\x52\x61dUpload\x43\x6cear\x42\x75tt\x6f\x6e"; button.name="ClearI\x6e\x70ut"; button.disabled=!this.Enabled; return button; } ,le:function (container){var button=document.createElement("\x69\156pu\x74"); button.type="button"; button.id=this.Id+"re\x6d\x6fve"+this.CurrentIndex; container.appendChild(button); button.value=RadUploadNameSpace.Localization[this.oa]["Remove"]; button.className="RadUploadRe\x6d\x6fveB\x75\x74to\x6e"; button.name="RemoveR\x6f\x77"; button.disabled=!this.Enabled; return button; } ,oe:function (container){var l3=this.Ie(); this.AttachDomEvent(l3,"change","FileSe\x6cected"); if (this.EnableFileInputSkinning){l3.className="\x52ealFileInpu\x74"; var div=document.createElement("\x64iv"); container.appendChild(div); div.style.position="\x72\145lat\x69\x76e"; div.appendChild(this.Ib.cloneNode( true)); div.appendChild(l3); if (!this.ReadOnlyFileInputs){ this.AttachDomEvent(l3,"keyup","\x53yncFileInp\x75\x74Cont\x65\x6et"); }else { this.AttachDomEvent(l3,"\x6beydown","\103an\x63\x65lEvent"); }return div; }else {container.appendChild(l3); l3.className="\x4eoSkin\x6e\x65dFil\x65\x55npu\x74"; if (this.ReadOnlyFileInputs){ this.AttachDomEvent(l3,"\x6beydown","Ca\x6e\x63elEvent"); }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 od=this.ListContainer.rows[index]; if (od){var ic=this.RaiseEvent("OnCli\x65\x6etClea\x72\x69ng",new RadUploadNameSpace.RadUploadEventArgs(this.GetFileInputFrom(od))); if (ic== false){return false; } this.DeleteFileInputAt(index, true); this.Ic(index, true); }} ,oc:function (){var of=document.createElement("div"); of.style.position="abso\x6c\165te"; of.style.top=0; of.style.left=0; of.style.zIndex=1; var Of=document.createElement("\x69\156put"); Of.type="text"; Of.className="\x52\x61dUpload\x49\x6eput\x46\x69el\x64"; of.appendChild(Of); var If=document.createElement("\x69\156pu\x74"); If.type="butt\x6f\x6e"; of.appendChild(If); this.InitButton(If,"S\x65\x6cect"); If.disabled=!this.Enabled; If.className="\x52adUpl\x6f\x61dSele\x63\x74Bu\x74\x74on"; return of; } ,Ie:function (){var l3=document.createElement("inp\x75\x74"); l3.type="file"; l3.name=this.GetID("\x66ile"); l3.id=this.GetID("\x66ile"); l3.disabled=!this.Enabled; return l3; } ,DeleteFileInputAt:function (index,og){var od=this.ListContainer.rows[index]; if (od){if (!og){var ic=this.RaiseEvent("OnClient\x44\145\x6c\x65tin\x67",new RadUploadNameSpace.RadUploadEventArgs(this.GetFileInputFrom(od))); if (ic== false){return false; }}od.parentNode.removeChild(od); this.lc(); }} ,DeleteSelectedFileInputs:function (N){var Og=[]; var lg=[]; for (var i=this.ListContainer.rows.length-1; i>=0; i--){var Ig=this.ListContainer.rows[i]; var oh=Ig.cells[0].childNodes[0]; if (oh.checked){lg[lg.length]=i; Og[Og.length]=this.GetFileInputFrom(Ig); }}var ic=this.RaiseEvent("\x4fnCli\x65\x6etDel\x65\x74ing\x53\145l\x65\143te\x64",new RadUploadNameSpace.RadUploadDeleteSelectedEventArgs(Og)); if (ic== false){return; }for (var i=0; i<lg.length; i++){ this.DeleteFileInputAt(lg[i], true); }} ,ib:function (){var Oh=this.ListContainer.rows[0]; Oh.parentNode.removeChild(Oh); } ,FileSelected:function (e){if (this.EnableFileInputSkinning){ this.SyncFileInputContent(e); }var l3=e.srcElement?e.srcElement:e.target; l3.alt=l3.title=l3.value; this.RaiseEvent("On\x43lientFileS\x65\x6cect\x65\x64",new RadUploadNameSpace.RadUploadEventArgs(l3)); } ,GetFileInputFrom:function (od){var lh=od.getElementsByTagName("\x69nput"); for (var i=0; i<lh.length; i++){if (lh[i].type=="f\x69\x6ce"){return lh[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; } ,ih:function (l){if (l){if (l.tagName.toLowerCase()=="\x74r"){return l; }else {return this.ih(l.parentNode); }}return null; } ,InitButton:function (button,Ih,oi){if (button){button.value=RadUploadNameSpace.Localization[this.oa][Ih]; if (this.Enabled){if (oi)this.AttachDomEvent(button,"click",oi); }else {button.disabled= true; }}return button; } ,IsExtensionValid:function (Oi){if (Oi=="")return true; for (var i=0; i<this.AllowedFileExtensions.length; i++){var ii=this.AllowedFileExtensions[i].substring(2); var Ii=new RegExp("\x2e"+ii+"$","ig"); if (Oi.match(Ii)){return true; }}return false; } ,RowClicked:function (e){var srcElement=e.srcElement?e.srcElement:e.target; var oj=this.ih(srcElement); if (srcElement.name=="\x52emoveRo\x77"){ this.DeleteFileInputAt(oj.rowIndex); }else if (srcElement.name=="ClearInp\x75\x74"){ this.ClearFileInputAt(oj.rowIndex); }} ,lc:function (){ this.Oj(this.DeleteButton,this.ListContainer.rows.length>0); this.Oj(this.AddButton,(this.la<=0) || (this.ListContainer.rows.length<this.la)); } ,Oj:function (button,lj){if (button){button.className=lj?"Ra\x64\x55ploadB\x75\x74ton": "RadUplo\x61\x64Butto\x6e\x44isab\x6ced"; }} ,SyncFileInputContent:function (e){var l3=e.srcElement?e.srcElement:e.target; var ij=l3.parentNode.childNodes[0].childNodes[0]; if (l3 !== ij){ij.value=l3.value; ij.title=l3.value; ij.disabled= true; }} ,I9:function (form){if (!form)form=document.forms[0]; form.enctype=form.encoding="\x6dul\x74\x69part/f\x6f\x72m-da\x74\141"; } ,ValidateExtensions:function (){for (var i=0; i<this.ListContainer.rows.length; i++){var Ij=this.GetFileInputFrom(this.ListContainer.rows[i]).value; if (!this.IsExtensionValid(Ij)){return false; }}return true; }} ; RadUploadNameSpace.RadUpload.ok= function (l3){} ;;if (typeof window.RadControlsNamespace=="undefined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Browser)=="\x75\156\x64\x65fine\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=="\x4dicros\x6f\x66t In\x74\x65rne\x74\040\x45\x78pl\x6f\x72er") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("m\x61\143")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-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=="\x43SS1Compat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo(); };if (typeof window.RadControlsNamespace=="\165ndef\x69\x6eed"){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("\x6f\x6e"+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,"unloa\x64",S); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.V=[]; } ;;if (typeof window.RadControlsNamespace=="undefin\x65\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.EventMixin)=="\x75ndefine\x64" || 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 (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 r=this._listeners[z]; if (!r){return false; }var Q=RadControlsNamespace.EventMixin.ResolveFunction(R); for (var i=0; i<r.length; i++){if (Q==r[i]){r.splice(i,1); return true; }}return false; } ,ResolveFunction:function (P){if (typeof(P)=="function"){return P; }else if (typeof(window[P])=="functio\x6e"){return window[P]; }else {return new Function("\x76ar Send\x65\x72 = a\x72\x67um\x65\x6ets[\x30\x5d; v\x61\x72 \x41rgume\x6e\164\x73 = ar\x67\165m\x65nts[1\x5d;"+P); }} ,RaiseEvent:function (z,N){if (!this._eventsEnabled){return true; }var n= true; if (this[z]){var M=RadControlsNamespace.EventMixin.ResolveFunction(this[z])(this,N); if (typeof(M)=="\x75ndefined"){M= true; }n=n && M; }if (!this._listeners[z])return n; 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; }n=n && M; }return n; }};};if (typeof(RadUploadNameSpace)=="\165nde\x66\x69ned")RadUploadNameSpace= {} ; if (typeof(RadUploadNameSpace.Localization)=="u\x6e\x64efined")RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Localization.ProcessRawArray= function (m){var L=m[0]; if (typeof(RadUploadNameSpace.Localization[L])=="undefin\x65\x64"){RadUploadNameSpace.Localization[L]=[]; }for (var i=1; i<m.length; i+=2){RadUploadNameSpace.Localization[L][m[i]]=m[i+1]; }} ;;if (typeof window.RadControlsNamespace=="un\x64\x65\x66ined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Overlay)=="\x75ndefine\x64" || typeof(window.RadControlsNamespace.Overlay.Version)==null || window.RadControlsNamespace.Overlay.Version<.11e1){window.RadControlsNamespace.Overlay= function (l){if (!this.SupportsOverlay()){return; } this.Element=l; this.Shim=document.createElement("\111\x46RAME"); this.Shim.src="\x6aavasc\x72\x69pt:\x27\x27;"; this.Element.parentNode.insertBefore(this.Shim,this.Element); if (l.style.zIndex>0){ this.Shim.style.zIndex=l.style.zIndex-1; } this.Shim.style.position="\x61bsolute"; this.Shim.style.border="0px"; this.Shim.frameBorder=0; this.Shim.style.filter="\x70rogid:DXIm\x61\x67eTr\x61\x6es\x66\x6frm\x2e\x4dicr\x6f\163\x6fft.A\x6c\160h\x61(style\x3d0,opa\x63\151t\x79=0)"; this.Shim.disabled="disabled"; };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+"\x70x"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "\x30px"; return parseInt(value)+"\x70x"; };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)=="un\x64\x65fined")RadUploadNameSpace= {} ; RadUploadNameSpace.k="Panel"; RadUploadNameSpace.RadProgressArea= function (J){ this.Id=J[0]; this.OnClientProgressUpdating=J[1]; this.OnClientProgressBarUpdating=J[2]; this.H=J[3]; if (!this.H){alert("Could not \x66\x69nd \x61\x6e in\x73tance o\x66\x20Ra\x64\x50ro\x67ressM\x61nager \x6fn the \x70age. \x41re yo\x75 miss\x69ng t\x68e c\x6fntr\x6f\154\x20dec\x6cara\x74ion?"); }RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Element=document.getElementById(this.Id); this.PrimaryProgressBarElement=this.FindElement("PrimaryPr\x6f\x67res\x73\x42ar"); this.PrimaryTotalElement=this.FindElement("\120ri\x6d\x61ryTot\x61\x6c"); this.PrimaryValueElement=this.FindElement("\x50rimaryVal\x75\x65"); this.PrimaryPercentElement=this.FindElement("Prima\x72\x79Perce\x6e\x74"); this.SecondaryProgressBarElement=this.FindElement("Se\x63\x6fndaryP\x72\x6fgres\x73\102a\x72"); this.SecondaryTotalElement=this.FindElement("\x53\x65conda\x72\x79Tota\x6c"); this.SecondaryValueElement=this.FindElement("S\x65\x63ondaryV\x61\x6cue"); this.SecondaryPercentElement=this.FindElement("\x53econdaryPer\x63\x65nt"); this.h=this.FindElement("Current\x4f\x70erati\x6f\x6e"); this.TimeElapsedElement=this.FindElement("\124im\x65\x45lapse\x64"); this.TimeEstimatedElement=this.FindElement("TimeEst\x69\x6dated"); this.SpeedElement=this.FindElement("\x53peed"); this.CancelButtonElement=this.FindElement("Ca\x6e\x63elButto\x6e"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"\x63lick","\x43\x61ncelRequ\x65\x73t"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="un\x64\x65fined"){RadUploadNameSpace.ProgressAreas=[]; } this.RegisterForAutomaticDisposal("Hide"); RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (G){if (this.RaiseEvent("\117\x6e\x43lien\x74\x50rogr\x65ssUpdat\x69\x6eg", {ProgressData:G } )== false)return; this.Show(); if (this.RaiseEvent("OnClientP\x72\x6fgre\x73\x73BarU\x70dating", {ProgressValue:G.PrimaryPercent,ProgressBarElementName: "\x50\x72imaryP\x72\x6fgres\x73\x42ar",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,G.PrimaryPercent); }if (this.RaiseEvent("On\x43\x6cientPr\x6f\x67ress\x42arUpdat\x69\x6eg", {ProgressValue:G.SecondaryPercent,ProgressBarElementName: "\x53econdary\x50\x72ogre\x73\x73Bar",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=="\x61bso\x6c\x75te"){if (typeof(this.Overlay)=="undefined"){ 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 (l,g){if (l && typeof(g)!="unde\x66\x69ned")l.style.width=g+"\x25"; } ,UpdateVerticalProgressBar:function (l,g){if (l && typeof(g)!="undefined")l.style.height=g+"%"; } ,UpdateTextIndicator:function (l,text){if (l && typeof(text)!="\x75ndefine\x64"){if (typeof(l.value)=="string")l.value=text; else if (typeof(l.innerHTML)=="\x73tring")l.innerHTML=text; }} ,CancelRequest:function (){ this.CancelClicked= true; } ,FindElement:function (F){var f=this.Id+"\x5f"+RadUploadNameSpace.k+"\x5f"+F; return document.getElementById(f); }};;function GetRadProgressManager(){return window["\x52adProgressM\x61\x6eage\x72"]; } ; if (typeof(RadUploadNameSpace)=="\x75ndefin\x65\x64")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.OnClientSubmitting=J[11]; this.TimeFormat="%HOUR\x53%:%MINUTE\x53\x25:%S\x45\103\x4f\x4eDS%\x73"; 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)=="\x75ndefined"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {ClientSubmitHandler:function (N){if (this.RaiseEvent("OnClient\x53ubmittin\x67")== false){ this.CancelEvent(N); return false; } this.StartProgressPolling(); } ,StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("O\x6e\103lie\x6e\x74Pro\x67\x72ess\x53\164ar\x74\145d"); 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("MakeCallba\x63k"),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("r.a.d.\x75\x70load\x20\x41jax \x63allbac\x6b\x20er\x72\x6fr.\x20Sour\x63e url \x77as no\x74\040\x66oun\x64: \012\x0d\012\x0d"+this.o0+"\012\x0d\x0a\015\x44id you\x20\162e\x67\x69st\x65\x72 t\x68\x65 R\x61dUplo\x61\144P\x72ogres\x73\110a\x6edler\x20\151n\x20web.\x63on\x66ig?"+"\x0d\012\015\x0aPleas\x65\x2c se\x65\x20th\x65\x20hel\x70\040f\x6fr mor\x65\040d\x65tails\x3a\040\x52\141d\x55ploa\x64\040\x32.0 -\x20Usin\x67 r.\x61.d.u\x70load\x20- C\x6fnfi\x67ura\x74ion\x20- R\x61dUp\x6coad\x50ro\x67res\x73Ha\x6edl\x65r."); } ,I1:function (){alert("\x72\056a.\x64\x2euplo\x61\x64 Aj\x61\170 \x63\x61llb\x61\143k\x20\145r\x72\157r\x2e Sour\x63\145 \x75rl re\x74urned\x20error\x3a "+this.o1.status+"\x20\012\x0d\012\x0d"+this.o1.o2+"\x20\x0a\015\x0a\015"+this.o0+"\012\x0d\012\x0d\104id\x20\x79ou\x20\x72eg\x69\x73te\x72\x20th\x65\040\x52\x61dU\x70loadP\x72ogres\x73Hand\x6c\145r\x20in w\x65b.c\x6fnfig\x3f"+"\x0d\012\015\x0aPleas\x65\x2c se\x65\040t\x68\x65 h\x65\x6cp \x66or mor\x65 deta\x69\154s\x3a RadU\x70load\x20\062\x2e\060\x20- Us\x69ng r\x2ea.d.\x75plo\x61d - \x43onf\x69gur\x61tio\x6e - \x52adU\x70lo\x61dPr\x6fgre\x73sH\x61nd\x6cer."); } ,O1:function (){alert("r\x2e\x61.d.upl\x6f\x61d Aj\x61\170 \x63\141ll\x62\141c\x6b\x20er\x72or. So\x75\162c\x65 url \x72\145t\x75rned \x69nvali\x64 con\x74ent:\x20\012\x0d\012\x0d"+this.o1.responseText+"\012\x0d\x0a\015"+this.o0+"\x0a\x0d\012\x0d\x44id \x79\x6fu r\x65\147i\x73\x74er \x74\150e\x20RadUp\x6c\x6fad\x50rogre\x73\163H\x61ndle\x72\040\x69\156\x20web.\x63onfi\x67?"+"\x0d\012\x0d\012\x50\x6cease\x2c see th\x65\x20he\x6c\x70 f\x6f\x72 m\x6fre det\x61ils: \x52\141d\x55pload\x202.0 \x2d\040\x55sing\x20r.a.\x64.upl\x6fad \x2d Con\x66igu\x72atio\x6e - \x52adU\x70loa\x64Pr\x6fgre\x73sHa\x6edl\x65r."); } ,UpdateProgressAreas:function (rawProgressData){ this.RaiseEvent("On\x43\x6cientPr\x6f\x67res\x73\x55pda\x74\151n\x67", {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)=="\165n\x64\x65fined")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)=="\x75ndefined")rawProgressData.PrimaryValue=this.FormatBytes(I2); if (typeof(rawProgressData.PrimaryPercent)=="\x75ndefined")rawProgressData.PrimaryPercent=Math.round(100*I2/i2); if (typeof(rawProgressData.SecondaryTotal)=="\x75\x6edefin\x65\x64")rawProgressData.SecondaryTotal=this.l1; if (typeof(rawProgressData.SecondaryValue)=="undef\x69\x6eed")rawProgressData.SecondaryValue=rawProgressData.RadUpload.FilesCount; if (typeof(rawProgressData.SecondaryPercent)=="\x75ndefi\x6e\x65d")rawProgressData.SecondaryPercent=Math.round(100*rawProgressData.RadUpload.FilesCount/(this.l1!=0?this.l1: 1)); if (typeof(rawProgressData.CurrentOperationText)=="\x75ndefin\x65\x64")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="\x75ndefi\x6e\x65d"){if (this.ToSeconds(l2)==0){rawProgressData.Speed=this.FormatBytes(0)+"/s"; }else {rawProgressData.Speed=this.FormatBytes(rawProgressData.RadUpload.Bytes/this.ToSeconds(l2))+"\x2fs"; }}}if (typeof(rawProgressData.TimeEstimated)=="un\x64\x65fined" && typeof(rawProgressData.PrimaryPercent)=="n\x75\x6dber"){if (rawProgressData.PrimaryPercent==0){rawProgressData.TimeEstimated=this.GetFormattedTime(this.ToSeconds(359999000)); }else {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("i\x6eput"); for (var i=0; i<O3.length; i++){var l3=O3[i]; if (l3.type=="file" && l3.value!=""){ this.l1++; }}} ,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; } ,I0:function (){if (typeof(XMLHttpRequest)!="\x75ndefined"){ this.o1=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="undefined"){ this.o1=new ActiveXObject("Microsoft\x2e\x58MLH\x54\x54P"); }else return; this.o1.onreadystatechange=this.CreateEventHandler("\x48andleCallbac\x6b"); this.o1.open("\x47ET",this.i3(), true); this.o1.send(""); } ,I3:function (U,method){return function (){method.apply(U,arguments); } ; } ,O0:function (d){var o4=d.indexOf("?")<0?"\x3f": "&"; return d+o4+this.UniqueRequestIdentifier+"="+this.C; } ,i3:function (){return this.o0+"\x26RadUploa\x64\x54imeS\x74\x61mp\x3d"+new Date().getTime(); } ,RegisterForSubmit:function (form){ this.O4(form); this.l4(form); } ,O4:function (form){var i4=this.CreateEventHandler("ClientS\x75\x62mit\x48\x61ndle\x72"); var I4=form.submit; try {form.submit= function (){if (i4()== false)return; form.submit=I4; form.submit(); };}catch (exception){try {var o5=__doPostBack; __doPostBack= function (eventTarget,eventArgument){var O5= true; if (typeof(Page_ClientValidate)=="\x66unct\x69\x6fn"){O5=Page_ClientValidate(); }if (O5){if (i4()== false)return; o5(eventTarget,eventArgument); }} ; }catch (exception){}}} ,l4:function (form){ this.AttachDomEvent(form,"submit","\x43lientSubm\x69\x74Han\x64\x6cer"); } ,B:function (form){if (typeof(form.action)=="u\x6e\x64efined")form.action=""; if (form.action.match(/\x3f/)){form.action=this.l5(form.action,this.UniqueRequestIdentifier); form.action=this.l5(form.action,this.EnableMemoryOptimizationIdentifier); if (form.action.substring(form.action.length-1)!="\077"){form.action+="&"; }}else {form.action+="\x3f";}form.action+=this.UniqueRequestIdentifier+"="+this.C; if (this.EnableMemoryOptimization){form.enctype=form.encoding="\x6dultipart/fo\x72\x6d-da\x74\x61"; }else {form.action+="&"+this.EnableMemoryOptimizationIdentifier+"\075f\x61\x6cse"; }form._initialAction=form.action; } ,l5:function (i5,I5){var o6=new RegExp("&?"+I5+"=[^&]\x2a"); if (i5.match(o6)){return i5.replace(o6,""); }return i5; } ,FormatBytes:function (O6){var l6=O6/1024; var i6=l6/1024; if (i6>.8){return ""+Math.round(i6*100)/100+"MB"; }if (l6>.8){return ""+Math.round(l6*100)/100+"\x6bB"; }return ""+O6+"\x20bytes"; } ,GetFormattedTime:function (I6){var o7=this.NormalizeTime(I6); return this.TimeFormat.replace(/\x25\x48\x4f\x55\x52\x53\x25/,o7.O7).replace(/\x25\x4d\x49\x4e\x55\x54\x45\x53\x25/,o7.l7).replace(/\x25\x53\x45\x43\x4f\x4e\x44\x53\x25/,o7.i7); } ,NormalizeTime:function (I7){var I6=I7%60; var o8=Math.floor(I7/60); var O8=o8%60; var l8=Math.floor(o8/60); return {O7:l8,l7:O8,i7:I6 };}} ;;RadUploadNameSpace.RadUploadEventArgs= function (i8){ this.FileInputField=i8; } ; RadUploadNameSpace.RadUploadDeleteSelectedEventArgs= function (I8){ this.FileInputFields=I8; } ;;if (typeof(window.RadControlsNamespace)=="u\x6e\x64efined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (o9,K,O9){if (!O9){return; }if (!o9){document.write("<"+"\x6c\151\x6e\x6b"+"\x20\x72el=\047\x73tyl\x65\163h\x65et\047\x20type=\x27\x74ext\x2fcss\x27 href\x3d\047"+O9+"\x27\040/>"); }else {var l9=document.createElement("LINK"); l9.rel="styleshe\x65\x74"; l9.type="t\x65\x78t/css"; l9.href=O9; document.getElementById(K+"\x53tyleSheetHo\x6c\x64er").appendChild(l9); }} ;;