function GetRadUpload(K){return window[K]; } ; if (typeof(RadUploadNameSpace)=="unde\x66\x69ned")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+"\x42ut\x74\x6fnArea"); this.ListContainer=document.getElementById(this.Id+"Li\x73\x74Contain\x65\162"); if (!document.readyState || document.readyState=="co\x6d\x70lete"){ this.InnerConstructor(); }else { this.AttachDomEvent(window,"\154oa\x64","InnerCons\x74\x72ucto\x72"); }} ; RadUploadNameSpace.RadUpload.prototype= {InnerConstructor:function (N){ this.ib(); this.AddButton=this.InitButton(document.getElementById(this.Id+"\x41ddBu\x74\x74on"),"\x41dd","\x41ddFileInpu\x74"); this.DeleteButton=this.InitButton(document.getElementById(this.Id+"Delet\x65\x42utton"),"Delete","DeleteSe\x6c\x65cted\x46\x69leI\x6e\160\x75\164s"); 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)=="undef\x69ned" || 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("\x4fnCli\x65\x6etAdd\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","RowC\x6c\x69cked"); 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("O\x6e\x43lientAd\x64\x65d", {Row:od } ); this.CurrentIndex++; return od; } ,ld:function (container){var ie=document.createElement("input"); ie.type="\x63heckbo\x78"; ie.id=this.Id+"\x63heckbox"+this.CurrentIndex; container.appendChild(ie); ie.className="RadUpl\x6f\x61dFile\x53\x65lec\x74or"; ie.disabled=!this.Enabled; return ie; } ,Oe:function (container){var button=document.createElement("input"); button.type="button"; button.id=this.Id+"\x63lear"+this.CurrentIndex; container.appendChild(button); this.InitButton(button,"\x43lear"); button.className="\x52adUploadCle\x61\x72But\x74\x6fn"; button.name="Clea\x72\x49nput"; button.disabled=!this.Enabled; return button; } ,le:function (container){var button=document.createElement("i\x6e\x70ut"); button.type="b\x75\x74ton"; button.id=this.Id+"remove"+this.CurrentIndex; container.appendChild(button); button.value=RadUploadNameSpace.Localization[this.oa]["Remove"]; button.className="RadUploadRe\x6d\x6fveBu\x74\x74on"; button.name="\x52emoveRow"; button.disabled=!this.Enabled; return button; } ,oe:function (container){var l3=this.Ie(); this.AttachDomEvent(l3,"\x63\150a\x6e\x67e","F\x69\x6ceSelect\x65\x64"); if (this.EnableFileInputSkinning){l3.className="\x52ealFileInp\x75\x74"; var div=document.createElement("div"); container.appendChild(div); div.style.position="relati\x76\x65"; div.appendChild(this.Ib.cloneNode( true)); div.appendChild(l3); if (!this.ReadOnlyFileInputs){ this.AttachDomEvent(l3,"k\x65\x79up","Syn\x63\x46ileInp\x75\x74Con\x74\145n\x74"); }else { this.AttachDomEvent(l3,"keydown","CancelEve\x6e\x74"); }return div; }else {container.appendChild(l3); l3.className="NoSkinnedF\x69\x6ceUnp\x75\x74"; if (this.ReadOnlyFileInputs){ this.AttachDomEvent(l3,"keydown","CancelEven\x74"); }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("OnClientCle\x61\162i\x6e\x67",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("d\x69v"); of.style.position="\x61\x62solute"; of.style.top=0; of.style.left=0; of.style.zIndex=1; var Of=document.createElement("input"); Of.type="te\x78\x74"; Of.className="RadU\x70\x6coadIn\x70\x75tFie\x6cd"; of.appendChild(Of); var If=document.createElement("input"); If.type="\x62utton"; of.appendChild(If); this.InitButton(If,"Select"); If.disabled=!this.Enabled; If.className="RadUploadSe\x6c\x65ctB\x75\x74ton"; return of; } ,Ie:function (){var l3=document.createElement("inp\x75\x74"); l3.type="file"; l3.name=this.GetID("\x66ile"); l3.id=this.GetID("\x66\151le"); l3.disabled=!this.Enabled; return l3; } ,DeleteFileInputAt:function (index,og){var od=this.ListContainer.rows[index]; if (od){if (!og){var ic=this.RaiseEvent("\x4fnClient\x44\x65leti\x6e\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("OnCl\x69entDeletin\x67\x53ele\x63\x74ed",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("OnClientF\x69\x6ceSe\x6c\x65cte\x64",new RadUploadNameSpace.RadUploadEventArgs(l3)); } ,GetFileInputFrom:function (od){var lh=od.getElementsByTagName("inpu\x74"); for (var i=0; i<lh.length; i++){if (lh[i].type=="\x66\151l\x65"){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()=="tr"){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,"c\x6cick",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=="\122\x65moveR\x6f\x77"){ this.DeleteFileInputAt(oj.rowIndex); }else if (srcElement.name=="\103le\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?"RadUpload\x42\x75tt\x6f\x6e": "RadUpload\x42\x75tton\x44\x69sab\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="\x6dultipart/f\x6f\x72m-da\x74\x61"; } ,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=="un\x64\x65fined"){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=="\x4dicr\x6f\x73oft I\x6e\x74erne\x74 Explo\x72\x65r") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("sa\x66\x61ri")!=-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=="CS\x53\x31Compat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo(); };if (typeof window.RadControlsNamespace=="u\x6e\x64efined"){window.RadControlsNamespace= {} ; }RadControlsNamespace.DomEventsMixin= function (){} ; RadControlsNamespace.DomEventsMixin.Initialize= function (O){O.AttachDomEvent=this.AttachDomEvent; O.DetachDomEvent=this.DetachDomEvent; O.DisposeDomEvents=this.DisposeDomEvents; O.ClearEventPointers=this.ClearEventPointers; O.RegisterForAutomaticDisposal=this.RegisterForAutomaticDisposal; O.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("\157\x6e"+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,"unlo\x61d",S); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.V=[]; } ;;if (typeof window.RadControlsNamespace=="unde\x66\x69\156\x65\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.EventMixin)=="unde\x66\x69ned" || 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.DisposeEventHandlers=this.DisposeEventHandlers; } ,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; } ,DisposeEventHandlers:function (){for (var z in this._listeners){var r=null; if (this._listeners.hasOwnProperty(z)){r=this._listeners[z]; for (var i=0; i<r.length; i++){r[i]=null; }r=null; }}} ,ResolveFunction:function (P){if (typeof(P)=="\146uncti\x6f\x6e"){return P; }else if (typeof(window[P])=="\x66unction"){return window[P]; }else {return new Function("var Sen\x64\x65r = \x61\x72gum\x65\156\x74\x73[0]\x3b\x20va\x72 Arg\x75\155e\x6e\164s\x20= arg\x75\155e\x6ets[1]\x3b"+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)=="\x75ndefi\x6e\x65d"){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)=="undef\x69\x6eed"){M= true; }n=n && M; }return n; }};};if (typeof(RadUploadNameSpace)=="undefine\x64")RadUploadNameSpace= {} ; if (typeof(RadUploadNameSpace.Localization)=="unde\x66\x69ned")RadUploadNameSpace.Localization=[]; RadUploadNameSpace.Localization.ProcessRawArray= function (m){var L=m[0]; if (typeof(RadUploadNameSpace.Localization[L])=="u\x6e\x64efined"){RadUploadNameSpace.Localization[L]=[]; }for (var i=1; i<m.length; i+=2){RadUploadNameSpace.Localization[L][m[i]]=m[i+1]; }} ;;if (typeof window.RadControlsNamespace=="\x75\x6edefine\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Overlay)=="u\x6e\x64efined" || 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("\x49FR\x41\x4dE"); this.Shim.src="jav\x61\x73cript:\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="p\x72\x6fgid:DXI\x6d\141\x67\x65T\x72\141ns\x66\157r\x6d\x2eMi\x63roso\x66t.Al\x70\150a\x28style\x3d\060\x2copac\x69\164\x79\075\x30)"; 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+"\x70x"; this.Shim.style.height=this.Element.offsetHeight+"px"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "0\x70\x78"; 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)=="undefin\x65\x64")RadUploadNameSpace= {} ; RadUploadNameSpace.k="P\x61\x6eel"; RadUploadNameSpace.RadProgressArea= function (J){ this.Id=J[0]; this.OnClientProgressUpdating=J[1]; this.OnClientProgressBarUpdating=J[2]; this.H=J[3]; if (!this.H){alert("Cou\x6c\x64 not f\x69\156\x64\040\x61n ins\x74\141n\x63\x65 of\x20RadP\x72ogres\x73Manage\x72 on t\x68\145 \x70age. \x41re y\x6fu m\x69ssi\x6eg 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("PrimaryPro\x67\x72ess\x42\x61r"); this.PrimaryTotalElement=this.FindElement("Prim\x61\x72yTota\x6c"); this.PrimaryValueElement=this.FindElement("Prim\x61\x72yValu\x65"); this.PrimaryPercentElement=this.FindElement("PrimaryPerc\x65\x6et"); this.SecondaryProgressBarElement=this.FindElement("\x53\x65condar\x79\x50rog\x72\x65ssB\x61\162"); this.SecondaryTotalElement=this.FindElement("\x53econd\x61\x72yTota\x6c"); this.SecondaryValueElement=this.FindElement("S\x65\x63ondary\x56\x61lue"); this.SecondaryPercentElement=this.FindElement("SecondaryP\x65\x72cent"); this.h=this.FindElement("C\x75\x72rentOp\x65\x72ati\x6f\x6e"); this.TimeElapsedElement=this.FindElement("Ti\x6d\x65Elapse\x64"); this.TimeEstimatedElement=this.FindElement("\x54imeEstima\x74\x65d"); this.SpeedElement=this.FindElement("Speed"); this.CancelButtonElement=this.FindElement("CancelB\x75\x74ton"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"clic\x6b","\x43ancelReque\x73\x74"); }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("\x4fnCli\x65\x6etPro\x67\x72essU\x70dating", {ProgressData:G } )== false)return; this.Show(); if (this.RaiseEvent("\x4fnCli\x65\x6etProg\x72\x65ssB\x61\162\x55\160da\x74\151n\x67", {ProgressValue:G.PrimaryPercent,ProgressBarElementName: "\x50rimaryProgr\x65\x73sBa\x72",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,G.PrimaryPercent); }if (this.RaiseEvent("\x4fnClient\x50\x72ogres\x73\x42ar\x55\x70dat\x69\x6eg", {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.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=="abso\x6c\165te"){if (typeof(this.Overlay)=="undefined"){ 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)!="\x75\x6edefin\x65\x64")l.style.width=g+"%"; } ,UpdateVerticalProgressBar:function (l,g){if (l && typeof(g)!="\x75ndefined")l.style.height=g+"%"; } ,UpdateTextIndicator:function (l,text){if (l && typeof(text)!="undef\x69\x6eed"){if (typeof(l.value)=="s\x74\x72ing")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+"_"+F; return document.getElementById(f); }};;function GetRadProgressManager(){return window["\x52adProgress\x4d\x61nag\x65\x72"]; } ; if (typeof(RadUploadNameSpace)=="und\x65\x66ined")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="%\x48OURS%:%MINU\x54\x45S%:\x25\x53ECO\x4e\104\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)=="undefi\x6e\x65d"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {ClientSubmitHandler:function (N){if (this.RaiseEvent("OnCli\x65ntSubmit\x74\x69ng")== false){ this.CancelEvent(N); return false; } this.StartProgressPolling(); } ,StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("\x4fnClientProg\x72\x65ssSt\x61\162\x74ed"); 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("\x4da\x6b\x65Callba\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("RadUpload A\x6a\x61x c\x61\x6clba\x63\153\x20error. \x53\157u\x72ce u\x72\154 \x77\141s\x20not f\x6f\165n\x64: \012\x0d\012\015"+this.o0+"\012\x0d\012\x0d\x44id \x79\x6fu \x72\x65gis\x74\x65r \x74\x68e \x52\141d\x55\160l\x6fadPro\x67ressH\x61ndler\x20in w\x65\142\x2econf\x69g?"+"\015\x0a\015\x0a\x50lea\x73\x65, \x73\x65e t\x68\x65 he\x6c\160 \x66or mo\x72\145 \x64\145t\x61ils: \x52adUpl\x6fad 2\x2ex - U\x73ing\x20RadU\x70load\x20- C\x6fnfig\x75rat\x69on \x2d Rad\x55plo\x61dP\x72ogr\x65ssH\x61nd\x6cer."); } ,I1:function (){alert("R\x61\x64Upload \x41\x6aax c\x61\154l\x62\x61ck \x65\162ro\x72\056\x20\123o\x75rce ur\x6c retu\x72\156e\x64 erro\x72: "+this.o1.status+"\x20\012\x0d\012\x0d"+this.o1.o2+" \012\x0d\x0a\015"+this.o0+"\x0a\015\x0a\x0dDid y\x6f\x75 re\x67\151st\x65\162 \x74\x68e \x52\141d\x55\160l\x6fadPro\x67\162e\x73sHand\x6cer i\x6e\040\x77eb.c\x6fnfig\x3f"+"\015\x0a\x0d\012\x50lease,\x20\x73ee \x74\150e\x20\x68elp\x20\146o\x72 more \x64etail\x73\072 \x52adUpl\x6fad 2.\x78 - U\x73\151\x6eg Ra\x64Uplo\x61d - \x43onf\x69gura\x74ion\x20- R\x61dUp\x6coad\x50rog\x72ess\x48and\x6cer\x2e"); } ,O1:function (){alert("RadUplo\x61\x64 Ajax\x20\x63allb\x61\143k\x20\x65rro\x72\056 \x53ource \x75rl ret\x75\162n\x65\144 \x69nvali\x64 cont\x65nt: \x0a\015\x0a\015"+this.o1.responseText+"\012\x0d\x0a\015"+this.o0+"\012\x0d\x0a\015\x44\151d\x20\x79ou \x72\145gi\x73\164e\x72\x20th\x65 RadUp\x6coadPr\x6f\147r\x65\163s\x48andl\x65\162\x20\151\x6e web\x2econf\x69g?"+"\x0d\012\015\x0aPleas\x65\x2c se\x65\040t\x68\x65 h\x65\x6cp f\x6fr mor\x65\x20de\x74\141i\x6cs: Ra\x64Uploa\x64 2.x\x20\055\x20Usin\x67 Rad\x55ploa\x64 - C\x6fnfi\x67urat\x69on \x2d Ra\x64Upl\x6fadP\x72ogr\x65ss\x48and\x6cer\x2e"); } ,UpdateProgressAreas:function (rawProgressData){ this.RaiseEvent("\x4fnClie\x6e\x74Progr\x65\x73sUp\x64\x61tin\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)=="undefined")rawProgressData.TimeElapsed=this.GetFormattedTime(this.ToSeconds(l2)); if (rawProgressData.RadUpload){var i2=rawProgressData.RadUpload.RequestSize; var I2=rawProgressData.RadUpload.Bytes; if (typeof(rawProgressData.PrimaryTotal)=="u\x6e\x64efined")rawProgressData.PrimaryTotal=this.FormatBytes(i2); if (typeof(rawProgressData.PrimaryValue)=="\x75ndefin\x65\x64")rawProgressData.PrimaryValue=this.FormatBytes(I2); if (typeof(rawProgressData.PrimaryPercent)=="u\x6e\x64efined")rawProgressData.PrimaryPercent=Math.round(100*I2/i2); if (typeof(rawProgressData.SecondaryTotal)=="u\x6e\x64efined")rawProgressData.SecondaryTotal=this.l1; if (typeof(rawProgressData.SecondaryValue)=="undefin\x65\x64")rawProgressData.SecondaryValue=rawProgressData.RadUpload.FilesCount; if (typeof(rawProgressData.SecondaryPercent)=="und\x65\x66ined")rawProgressData.SecondaryPercent=Math.round(100*rawProgressData.RadUpload.FilesCount/(this.l1!=0?this.l1: 1)); if (typeof(rawProgressData.CurrentOperationText)=="\x75ndefined")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="\x75\x6edefin\x65\x64"){if (this.ToSeconds(l2)==0){rawProgressData.Speed=this.FormatBytes(0)+"\x2fs"; }else {rawProgressData.Speed=this.FormatBytes(rawProgressData.RadUpload.Bytes/this.ToSeconds(l2))+"/s"; }}}if (typeof(rawProgressData.TimeEstimated)=="undefined" && typeof(rawProgressData.PrimaryPercent)=="number"){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("\x69nput"); 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)!="und\x65fined"){ this.o1=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="\x75\x6edefin\x65\x64"){ this.o1=new ActiveXObject("\x4dicrosoft.X\x4d\x4cHTT\x50"); }else return; this.o1.onreadystatechange=this.CreateEventHandler("\x48andleCall\x62\x61ck"); 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": "\x26"; return d+o4+this.UniqueRequestIdentifier+"="+this.C; } ,i3:function (){return this.o0+"&RadUploa\x64\x54imeS\x74\x61mp="+new Date().getTime(); } ,RegisterForSubmit:function (form){ this.O4(form); this.l4(form); } ,O4:function (form){var i4=this.CreateEventHandler("Cli\x65\156\x74\x53ubmit\x48\x61nd\x6c\x65r"); 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)=="fu\x6ection"){O5=Page_ClientValidate(); }if (O5){if (i4()== false)return; o5(eventTarget,eventArgument); }} ; }catch (exception){}}} ,l4:function (form){ this.AttachDomEvent(form,"\x73ubmit","Clien\x74\x53ubmit\x48\x61ndl\x65\162"); } ,B:function (form){if (typeof(form.action)=="\x75ndef\x69\x6eed")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+="?";}form.action+=this.UniqueRequestIdentifier+"="+this.C; if (this.EnableMemoryOptimization){form.enctype=form.encoding="multipart/\x66\x6frm-d\x61\x74a"; }else {form.action+="\046"+this.EnableMemoryOptimizationIdentifier+"=fals\x65"; }form._initialAction=form.action; } ,l5:function (i5,I5){var o6=new RegExp("&?"+I5+"=[^\x26\x5d*"); 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+"kB"; }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)=="\165nde\x66\x69ned"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (o9,K,O9){if (!O9){return; }if (!o9){document.write("<"+"link"+"\x20\x72\x65l=\047style\x73\x68ee\x74\047\x20\x74ype\x3d\047t\x65xt/\x63\163s\x27 href\x3d\047"+O9+"\047\x20/>"); }else {var l9=document.createElement("\x4cINK"); l9.rel="styleshee\x74"; l9.type="t\x65\x78t/css"; l9.href=O9; document.getElementById(K+"StyleSheet\x48\x6flder").appendChild(l9); }} ;;