function GetRadUpload(K){return window[K]; } ; if (typeof(RadUploadNameSpace)=="undefin\x65\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+"\x42utton\x41\x72ea"); this.ListContainer=document.getElementById(this.Id+"\x4cistConta\x69\x6eer"); if (!document.readyState || document.readyState=="complete"){ this.InnerConstructor(); }else { this.AttachDomEvent(window,"\x6c\x6fad","\x49\x6enerCons\x74\x72uct\x6f\x72"); }} ; RadUploadNameSpace.RadUpload.prototype= {InnerConstructor:function (N){ this.ib(); this.AddButton=this.InitButton(document.getElementById(this.Id+"AddBu\x74\x74on"),"\x41dd","\x41ddFileIn\x70\x75t"); this.DeleteButton=this.InitButton(document.getElementById(this.Id+"\x44\x65leteBut\x74\x6fn"),"\x44elete","DeleteSelec\x74\x65dFil\x65\x49np\x75\164\x73"); 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)=="\x75ndef\x69\x6eed" || 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("OnC\x6c\x69entAdd\x69\x6eg",new RadUploadNameSpace.RadUploadEventArgs(null)); if (ic== false){return; }} this.Ic(index); } ,Ic:function (index){var od=this.ListContainer.insertRow(index); this.AttachDomEvent(od,"\x63lick","\x52\x6fwClic\x6b\x65d"); 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("OnClie\x6e\x74Adde\x64", {Row:od } ); this.CurrentIndex++; return od; } ,ld:function (container){var ie=document.createElement("\x69nput"); ie.type="\x63heckbo\x78"; ie.id=this.Id+"c\x68\x65ckbox"+this.CurrentIndex; container.appendChild(ie); ie.className="RadUp\x6c\x6fadFil\x65\x53ele\x63tor"; ie.disabled=!this.Enabled; return ie; } ,Oe:function (container){var button=document.createElement("input"); button.type="\x62\x75tton"; button.id=this.Id+"clear"+this.CurrentIndex; container.appendChild(button); this.InitButton(button,"Clear"); button.className="RadUpl\x6f\x61dClea\x72\x42utt\x6f\x6e"; button.name="ClearInp\x75\x74"; button.disabled=!this.Enabled; return button; } ,le:function (container){var button=document.createElement("\x69nput"); button.type="b\x75\x74ton"; button.id=this.Id+"rem\x6f\x76e"+this.CurrentIndex; container.appendChild(button); button.value=RadUploadNameSpace.Localization[this.oa]["\x52\x65move"]; button.className="\x52adUploadR\x65\x6dove\x42\x75tto\x6e"; button.name="R\x65\x6doveRow"; button.disabled=!this.Enabled; return button; } ,oe:function (container){var l3=this.Ie(); this.AttachDomEvent(l3,"\x63hange","FileSelected"); if (this.EnableFileInputSkinning){l3.className="RealFileInpu\x74"; var div=document.createElement("div"); container.appendChild(div); div.style.position="re\x6c\x61tive"; div.appendChild(this.Ib.cloneNode( true)); div.appendChild(l3); if (!this.ReadOnlyFileInputs){ this.AttachDomEvent(l3,"keyup","SyncFileInpu\x74\103\x6f\156te\x6et"); }else { this.AttachDomEvent(l3,"\x6beydown","CancelEven\x74"); }return div; }else {container.appendChild(l3); l3.className="NoSkinned\x46\x69leU\x6e\x70ut"; if (this.ReadOnlyFileInputs){ this.AttachDomEvent(l3,"k\x65\x79down","Can\x63\x65lEvent"); }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("\x4fnC\x6c\x69entCle\x61\x72ing",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="\x61bsolute"; of.style.top=0; of.style.left=0; of.style.zIndex=1; var Of=document.createElement("input"); Of.type="text"; Of.className="\x52adUplo\x61\x64Inpu\x74\x46iel\x64"; of.appendChild(Of); var If=document.createElement("\x69nput"); If.type="\x62utton"; of.appendChild(If); this.InitButton(If,"Select"); If.disabled=!this.Enabled; If.className="\x52\x61dUplo\x61\x64Sele\x63\x74Bu\x74\x74on"; return of; } ,Ie:function (){var l3=document.createElement("in\x70\x75t"); l3.type="file"; l3.name=this.GetID("\x66ile"); l3.id=this.GetID("\x66\x69le"); l3.disabled=!this.Enabled; return l3; } ,DeleteFileInputAt:function (index,og){var od=this.ListContainer.rows[index]; if (od){if (!og){var ic=this.RaiseEvent("\x4fnClientDelet\x69ng",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("\117\x6eClientDel\x65\x74ing\x53elected",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("\x4fnClient\x46\x69leSe\x6c\x65ct\x65\x64",new RadUploadNameSpace.RadUploadEventArgs(l3)); } ,GetFileInputFrom:function (od){var lh=od.getElementsByTagName("input"); for (var i=0; i<lh.length; i++){if (lh[i].type=="\x66\151le"){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()=="\164\x72"){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,"\143\x6c\x69ck",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("."+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=="Remove\x52ow"){ this.DeleteFileInputAt(oj.rowIndex); }else if (srcElement.name=="Cle\x61\x72Input"){ 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?"RadUplo\x61dButton": "RadUp\x6c\x6fadButt\x6f\x6eDis\x61bled"; }} ,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="multipar\x74\x2ffor\x6d\x2ddata"; } ,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=="\x75\x6edefined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Browser)=="un\x64\x65fined" || 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 \x49\x6eter\x6e\x65t \x45\170\x70\x6core\x72") && ((navigator.userAgent.toLowerCase().indexOf("ma\x63")!=-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.IsIE7=/\x4d\x53\x49\x45\x20\x37/.test(navigator.appVersion); this.StandardsMode=this.IsSafari || this.IsOpera9 || this.IsMozilla || document.compatMode=="\x43\123S1C\x6f\x6dpat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo(); };if (typeof window.RadControlsNamespace=="\165n\x64\x65fine\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("\x6fn"+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,"\x75nl\x6f\x61d",S); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.V=[]; } ;;if (typeof window.RadControlsNamespace=="undefin\x65\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.EventMixin)=="\x75\x6edefin\x65\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)=="functi\x6fn"){return P; }else if (typeof(window[P])=="\146\x75\x6ectio\x6e"){return window[P]; }else {return new Function("\x76\x61r Sen\x64\x65r =\x20\x61rg\x75\x6dent\x73\x5b0];\x20\166\x61r Ar\x67\165\x6d\x65nt\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)=="und\x65\x66ined"){M= true; }n=n && M; }return n; }};};if (typeof(RadUploadNameSpace)=="\x75ndefined")RadUploadNameSpace= {} ; if (typeof(RadUploadNameSpace.Localization)=="\x75ndefine\x64")RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Localization.ProcessRawArray= function (m){var L=m[0]; if (typeof(RadUploadNameSpace.Localization[L])=="\x75ndefine\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=="undefine\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Overlay)=="\x75ndefined" || 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("IFRAME"); this.Shim.src="\x6aavascr\x69\x70t:\047\047\x3b"; 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="a\x62\x73olute"; this.Shim.style.border="\x30px"; this.Shim.frameBorder=0; this.Shim.style.filter="progid:DXIm\x61\x67eTr\x61\x6esf\x6f\162m\x2e\x4dic\x72\x6fsof\x74.Al\x70\150a\x28style=\x30,opac\x69\164y\x3d0)"; this.Shim.disabled="\x64\x69sabled"; };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+"p\x78"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "\x30\x70x"; 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)=="\x75ndefined")RadUploadNameSpace= {} ; RadUploadNameSpace.k="\x50anel"; 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 n\x6f\164\x20\x66ind\x20\x61n\x20\x69nst\x61\156c\x65\x20o\x66 Rad\x50\x72og\x72\145s\x73Manag\x65\162 \x6fn th\x65\040\x70ag\x65. Ar\x65 you\x20miss\x69ng \x74he c\x6fntr\x6fl de\x63lar\x61tio\x6e?"); }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("P\x72\x69maryTot\x61\x6c"); this.PrimaryValueElement=this.FindElement("\x50\x72imaryV\x61\x6cue"); this.PrimaryPercentElement=this.FindElement("\x50rimaryP\x65\x72cent"); this.SecondaryProgressBarElement=this.FindElement("\x53\x65condar\x79\x50rogr\x65\x73sB\x61\162"); this.SecondaryTotalElement=this.FindElement("\x53econda\x72\x79Tota\x6c"); this.SecondaryValueElement=this.FindElement("\x53econdaryV\x61\x6cue"); this.SecondaryPercentElement=this.FindElement("SecondaryP\x65\x72cent"); this.h=this.FindElement("Current\x4f\x70erati\x6f\x6e"); this.TimeElapsedElement=this.FindElement("\x54imeElaps\x65\x64"); this.TimeEstimatedElement=this.FindElement("TimeEsti\x6d\x61ted"); this.SpeedElement=this.FindElement("\x53\160eed"); this.CancelButtonElement=this.FindElement("Cance\x6c\x42utton"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"click","CancelR\x65\x71uest"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="\x75ndefined"){RadUploadNameSpace.ProgressAreas=[]; } this.RegisterForAutomaticDisposal("Hide"); RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (G){if (this.RaiseEvent("\117\x6e\x43lient\x50\x72ogre\x73sUpdati\x6e\147", {ProgressData:G } )== false)return; this.Show(); if (this.RaiseEvent("OnClientP\x72\x6fgre\x73\x73Bar\x55\x70da\x74\x69ng", {ProgressValue:G.PrimaryPercent,ProgressBarElementName: "\120ri\x6d\x61ryProg\x72\x65ssB\x61\162",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,G.PrimaryPercent); }if (this.RaiseEvent("\x4fnClien\x74\x50rogre\x73\x73Ba\x72\x55pda\x74\151n\x67", {ProgressValue:G.SecondaryPercent,ProgressBarElementName: "\x53econda\x72\x79Progr\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.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=="a\x62solute"){if (typeof(this.Overlay)=="\x75\x6edefine\x64"){ this.Overlay=new RadControlsNamespace.Overlay(this.Element); } this.Overlay.Update(); }} ,Hide:function (){ this.Element.style.display="\x6eone"; if (this.Overlay){ this.Overlay.Dispose(); this.Overlay=null; }} ,UpdateHorizontalProgressBar:function (l,g){if (l && typeof(g)!="unde\x66\x69ned")l.style.width=g+"%"; } ,UpdateVerticalProgressBar:function (l,g){if (l && typeof(g)!="u\x6e\x64efined")l.style.height=g+"\x25"; } ,UpdateTextIndicator:function (l,text){if (l && typeof(text)!="\x75ndef\x69\x6eed"){if (typeof(l.value)=="\x73\x74ring")l.value=text; else if (typeof(l.innerHTML)=="st\x72\x69ng")l.innerHTML=text; }} ,CancelRequest:function (){ this.CancelClicked= true; } ,FindElement:function (F){var f=this.Id+"_"+RadUploadNameSpace.k+"\x5f"+F; return document.getElementById(f); }};;function GetRadProgressManager(){return window["\x52adProgress\x4d\x61nag\x65\x72"]; } ; if (typeof(RadUploadNameSpace)=="undefine\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="\045\x48OURS%:%\x4d\x49NUTE\x53\045\x3a\045S\x45\x43OND\x53\045\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)=="\x75ndefi\x6e\x65d"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {ClientSubmitHandler:function (N){if (this.RaiseEvent("\117\x6e\x43lient\x53\x75bmi\x74\164i\x6e\x67")== false){ this.CancelEvent(N); return false; } this.StartProgressPolling(); } ,StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("\x4fnCl\x69\x65ntPro\x67\x72ess\x53\x74art\x65\144"); 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("\x4dakeCallba\x63\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\x6fad \x41jax cal\x6c\142ac\x6b\040\x65\162\x72or.\x20\123o\x75rce u\x72\154 \x77as no\x74 foun\x64: \012\015\x0a\015"+this.o0+"\x0a\015\x0a\x0dDid \x79\x6fu r\x65gister \x74\150e\x20\x52ad\x55pload\x50\162o\x67\162e\x73sHand\x6cer in\x20web.c\x6fnfig\x3f"+"\x0d\012\015\x0aPleas\x65\x2c se\x65\040t\x68\x65 h\x65\x6cp \x66\157r\x20more \x64\145t\x61ils: \x52adUpl\x6fad 2\x2e\060\x20- Us\x69ng \x72.a.d\x2euplo\x61d -\x20Conf\x69gur\x61tio\x6e - \x52adU\x70loa\x64Pr\x6fgre\x73sHa\x6edl\x65r."); } ,I1:function (){alert("r.a.d.\x75\x70load\x20\x41jax \x63\141l\x6c\142a\x63\x6b er\x72\157\x72\056\x20\x53ou\x72ce ur\x6c\040r\x65turne\x64 erro\x72: "+this.o1.status+" \012\x0d\x0a\015"+this.o1.o2+" \012\x0d\012\015"+this.o0+"\012\x0d\012\x0d\x44id \x79\x6fu \x72\x65gi\x73\x74er\x20\x74he\x20RadUp\x6c\157a\x64Progr\x65\163\x73\110a\x6edler\x20in w\x65b.co\x6efig\x3f"+"\015\x0a\015\012\x50lea\x73\x65, \x73\x65e t\x68\145 \x68\x65lp\x20for m\x6f\162e\x20\144e\x74ails\x3a\040R\x61dUpl\x6fad 2\x2e0 - \x55sin\x67\040\x72.a.d\x2eupl\x6fad \x2d Co\x6efig\x75rat\x69on \x2d Ra\x64Up\x6coad\x50ro\x67res\x73Ha\x6edl\x65r."); } ,O1:function (){alert("\x72.a.d.up\x6c\x6fad A\x6a\x61x \x63\x61llb\x61\x63k \x65\x72ro\x72. Sou\x72\x63e \x75\162\x6c\040\x72\145t\x75rned \x69nval\x69d co\x6eten\x74: \012\x0d\012\x0d"+this.o1.responseText+"\012\x0d\012\x0d"+this.o0+"\012\x0d\x0a\015\x44id you\x20\x72eg\x69\x73ter\x20\164h\x65\x20R\x61\x64Up\x6c\157a\x64Progr\x65ssHan\x64ler i\x6e web\x2e\143\x6fnfig\x3f"+"\015\x0a\015\012\x50leas\x65\x2c s\x65\x65 th\x65\040h\x65\154p\x20for mo\x72e det\x61\151l\x73: Rad\x55pload\x202.0 \x2d\040\x55sing\x20r.a\x2ed.up\x6coad \x2d Co\x6efigu\x72ati\x6fn -\x20Rad\x55plo\x61dP\x72ogr\x65ssH\x61nd\x6cer."); } ,UpdateProgressAreas:function (rawProgressData){ this.RaiseEvent("\x4f\x6eClien\x74\x50rogr\x65\x73sU\x70\x64ati\x6e\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)=="undefin\x65\x64")rawProgressData.TimeElapsed=this.GetFormattedTime(this.ToSeconds(l2)); if (rawProgressData.RadUpload){var i2=rawProgressData.RadUpload.RequestSize; var I2=rawProgressData.RadUpload.Bytes; if (typeof(rawProgressData.PrimaryTotal)=="undefi\x6e\x65d")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)=="undefined")rawProgressData.SecondaryTotal=this.l1; if (typeof(rawProgressData.SecondaryValue)=="undefined")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)=="\x75ndefin\x65\x64")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="undef\x69\x6eed"){if (this.ToSeconds(l2)==0){rawProgressData.Speed=this.FormatBytes(0)+"/\x73"; }else {rawProgressData.Speed=this.FormatBytes(rawProgressData.RadUpload.Bytes/this.ToSeconds(l2))+"/s"; }}}if (typeof(rawProgressData.TimeEstimated)=="\x75ndefined" && typeof(rawProgressData.PrimaryPercent)=="num\x62\x65r"){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("input"); for (var i=0; i<O3.length; i++){var l3=O3[i]; if (l3.type=="\146\x69le" && 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)!="\x75ndefined"){ this.o1=new ActiveXObject("\x4dicrosoft.\x58\x4dLHT\x54\x50"); }else return; this.o1.onreadystatechange=this.CreateEventHandler("\x48andleCal\x6c\x62ack"); this.o1.open("GET",this.i3(), true); this.o1.send(""); } ,I3:function (U,method){return function (){method.apply(U,arguments); } ; } ,O0:function (d){var o4=d.indexOf("?")<0?"\077": "\x26"; return d+o4+this.UniqueRequestIdentifier+"\x3d"+this.C; } ,i3:function (){return this.o0+"&RadUpl\x6f\x61dTim\x65\x53tam\x70\075"+new Date().getTime(); } ,RegisterForSubmit:function (form){ this.O4(form); this.l4(form); } ,O4:function (form){var i4=this.CreateEventHandler("\x43lient\x53\x75bmit\x48\x61ndl\x65\162"); 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)=="\x66unction"){O5=Page_ClientValidate(); }if (O5){if (i4()== false)return; o5(eventTarget,eventArgument); }} ; }catch (exception){}}} ,l4:function (form){ this.AttachDomEvent(form,"\163u\x62\x6dit","\103lie\x6e\x74Submi\x74\x48andl\x65r"); } ,B:function (form){if (typeof(form.action)=="unde\x66\x69ned")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)!="\x3f"){form.action+="&"; }}else {form.action+="\x3f";}form.action+=this.UniqueRequestIdentifier+"\x3d"+this.C; if (this.EnableMemoryOptimization){form.enctype=form.encoding="multipart\x2f\x66orm\x2d\x64ata"; }else {form.action+="\x26"+this.EnableMemoryOptimizationIdentifier+"\x3d\146als\x65"; }form._initialAction=form.action; } ,l5:function (i5,I5){var o6=new RegExp("&?"+I5+"=[^&]*"); 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+"\x4dB"; }if (l6>.8){return ""+Math.round(l6*100)/100+"kB"; }return ""+O6+" bytes"; } ,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)=="\x75\x6edefined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (o9,K,O9){if (!O9){return; }if (!o9){document.write("<"+"\x6cink"+" rel=\047stylesh\x65\145t\x27\x20ty\x70\145=\x27\x74ext\x2f\143\x73s\047\x20hr\x65\146=\x27"+O9+"\x27\x20/>"); }else {var l9=document.createElement("\x4cINK"); l9.rel="\x73tylesheet"; l9.type="text/\x63\x73s"; l9.href=O9; document.getElementById(K+"\x53tyleSheetH\x6f\x6cder").appendChild(l9); }} ;;