var RadUploadNameSpace= {} ; RadUploadNameSpace.V=[]; RadUploadNameSpace.Localization=[]; RadUploadNameSpace.v=null; RadUploadNameSpace.RadUpload= function (T){RadControlsNamespace.EventMixin.Initialize(this ); if (!document.readyState || document.readyState=="\x63\x6fmplete"){ this.t(T); }else if (window.attachEvent){var S=this ; var R= function (){S.t(T); } ; window.attachEvent("onlo\x61\144",R); }else if (window.addEventListener && navigator.userAgent.indexOf("\x53afar\x69")!=-1){var S=this ; var R= function (){S.t(T); } ; window.addEventListener("load",R, true); }} ; RadUploadNameSpace.RadUpload.prototype.t= function (T){ this.Id=T[0]; this.r=T[1]; this.Q=this.r+"Img/"; this.FormId=T[2]; this.P=T[3]; this.N=T[4]; this.RequestUniqueIdentifier=T[5]; this.RequestUniqueKey=T[6]; if (RadUploadNameSpace.v==null){RadUploadNameSpace.v=this.RequestUniqueKey; } this.n=T[7]; this.M=T[8]; this.m=T[9]; this.L=T[10]; this.l=T[11]; if (RadUploadNameSpace.Utils.IsSafari()){ this.m= false; } this.K=T[12]; this.k=T[13]; this.OnClientAdding=T[14]; this.OnClientDeleting=T[15]; this.OnClientClearing=T[16]; this.OnClientFileSelected=T[17]; this.OnClientDeletingSelected=T[18]; this.Enabled=T[19]; this.J=T[20]; this.H=0; this.h=null; this.Document=document; this.G=this.Document.getElementById(this.Id+"\x42\x75\x74tonAr\x65\x61"); this.g=this.Document.getElementById(this.Id+"\x4cistCo\x6e\x74aine\x72"); for (var i=0; i<this.g.rows.length; i++){var F=this.g.rows[i]; F.parentNode.removeChild(F); }if (this.m){ this.f(); }var S=this ; this.D=this.d("\x41ddButton","\x41dd", function (){S.Add(); } ); this.C=this.d("DeleteBu\x74\x74on","Delete", function (){S.c(); } ); var B=document.getElementById(this.FormId); if (B.enctype!="\155\x75\x6ctipar\x74\x2fform\x2d\144a\x74\141"){B.enctype="multip\x61\x72t/for\x6d\x2ddata"; B.encoding="m\x75\x6ctipart/\x66\x6frm-\x64\x61ta"; } ; B=null; var o0=this.M; if (this.n>0){o0=Math.min(this.M,this.n); }for (var i=0; i<o0; i++){ this.Add( true , true); }if (o0>0 && this.J){ this.O0(0); } this.SetControlObjectsVisibility(this.k); if (this.M==0){ this.l0(this.C, false); }var i0= false; for (var i=0; i<RadUploadNameSpace.V.length; i++){if (RadUploadNameSpace.V[i].Id==this.Id){RadUploadNameSpace.V[i]=this ; i0= true; break; }}if (!i0){RadUploadNameSpace.V[RadUploadNameSpace.V.length]=this ; }RadUploadNameSpace.Utils.AttachEvent(window,"\x75nload", function (){RadUploadNameSpace.Utils.I0(); } ); } ; RadUploadNameSpace.RadUpload.prototype.f= function (){ this.h=this.o1("\x64\x69v"); this.h.style.position="abs\x6f\x6cute"; this.h.style.top=0; this.h.style.left=0; this.h.style.zIndex=1; var O1=this.o1("\x69nput"); O1.type="\x74ext"; O1.className="\x52adUploa\x64\x49nputF\x69\x65ld"; this.h.appendChild(O1); var l1=this.o1("\x69nput"); l1.type="\x62utton"; l1.value=RadUploadNameSpace.Localization[this.K]["\x53elect"]; l1.disabled=!this.Enabled; l1.className="\x52adUploadS\x65\x6cectB\x75\x74to\x6e"; this.h.appendChild(l1); } ; RadUploadNameSpace.RadUpload.prototype.Add= function (i1,I1){if (i1==null){i1= false; } this.o2(this.g.rows.length,i1,I1); } ; RadUploadNameSpace.RadUpload.prototype.o2= function (index,i1,I1){if (typeof(index)=="und\x65\x66ined"){index=this.g.rows.length; }if (index>this.g.rows.length){index=this.g.rows.length; }if ((index>=this.n) && (this.n>0)){return; }if (!i1){var O2=this.RaiseEvent("\x4fnClientAd\x64\x69ng",new RadUploadNameSpace.l2(null)); if (O2== false){return; }}var i2=this.g.insertRow(index); if (this.Enabled){i2.onclick=RadUploadNameSpace.Utils.I2; }i2.Container=this ; var o3=this.O3(); var l3=this.i3(); var I3=this.o4(); var O4=this.l4(); var i4=i2.insertCell(0); i4.appendChild(o3); var I4=i2.insertCell(1); l3.Container=this ; var S=this ; if (this.m){l3.className="\x52ealFileInp\x75\x74"; var o5=this.o1("\144\x69v"); o5.style.position="\x72elative"; I4.appendChild(o5); o5.appendChild(l3); if (!window.opera){var O5=this.h.cloneNode( true); o5.appendChild(O5); var onKeyUp= function (){var l5=O5.childNodes[0]; l5.value=l3.value; l5.disabled= true; l5.title=l3.value; };if (this.L){}else {l3.onkeyup=onKeyUp; }l3.onchange= function (){onKeyUp(); S.RaiseEvent("\x4fnCl\x69\x65ntFil\x65\x53ele\x63\164\x65\x64",new RadUploadNameSpace.l2(l3)); } ; }}else {l3.className="\x4e\x6fSkinne\x64\x46ileU\x6e\x70ut"; I4.appendChild(l3); l3.onchange= function (){S.RaiseEvent("OnClien\x74\x46ileSe\x6c\x65cte\x64",new RadUploadNameSpace.l2(l3)); } ; }if (this.L){l3.onkeypress= function (e){if (!e){e=window.event; }if (e.preventDefault){e.preventDefault(); }else {return false; }} ; }var i5=i2.insertCell(2); i5.appendChild(I3); var I5=i2.insertCell(3); I5.appendChild(O4); this.o6(); this.O6(i2); this.H++; if (!I1){try {l3.focus(); }catch (ex){}}} ; RadUploadNameSpace.RadUpload.prototype.O0= function (index){var F=this.g.rows[index]; var l6=this.i6(index); try {l6.focus(); }catch (ex){}} ; RadUploadNameSpace.RadUpload.prototype.c= function (){var I6=[]; var o7=[]; for (var i=this.g.rows.length-1; i>=0; i--){var F=this.g.rows[i]; var O7=F.cells[0].childNodes[0]; if (O7.checked){o7[o7.length]=i; var l7=F.getElementsByTagName("INPUT"); for (var j=0; j<l7.length; j++){if (l7[j].type=="\x66ile"){I6[I6.length]=l7[j]; break; }}}}var O2=this.RaiseEvent("\x4f\156\x43\x6cientD\x65\x6ceti\x6egSelect\x65\x64",new RadUploadNameSpace.i7(I6)); if (O2== false){return; }for (var i=0; i<o7.length; i++){ this.I7(o7[i], true); }} ; RadUploadNameSpace.RadUpload.prototype.I7= function (index,i1){var F=this.g.rows[index]; if (F){if (i1){F.parentNode.removeChild(F); this.o6(); }else {var l6=this.i6(index); var O2=this.RaiseEvent("O\x6eClientDele\x74\x69ng",new RadUploadNameSpace.l2(l6)); if (O2== false){return false; }F.parentNode.removeChild(F); this.o6(); }}} ; RadUploadNameSpace.RadUpload.prototype.o8= function (index){var F=this.g.rows[index]; if (F){var l6=this.i6(index); var O2=this.RaiseEvent("\x4fnClientCle\x61\x72ing",new RadUploadNameSpace.l2(l6));if (O2== false){return false; } this.I7(index, true); this.o2(index, true); }} ; RadUploadNameSpace.RadUpload.prototype.d= function (O8,l8,i8){var I8=this.Document.getElementById(this.Id+O8); if (I8!=null){I8.value=RadUploadNameSpace.Localization[this.K][l8]; if (this.Enabled){I8.onclick=i8; }else {I8.disabled= true; }}return I8; } ; RadUploadNameSpace.RadUpload.prototype.o9= function (){return this.O9.o9(); } ; RadUploadNameSpace.RadUpload.prototype.o6= function (){ this.l0(this.C,this.l9()>0); this.l0(this.D,(this.n<=0) || (this.l9()<this.n)); } ; RadUploadNameSpace.RadUpload.prototype.O3= function (){var i9=this.o1("input"); i9.type="checkbox"; i9.id=this.Id+"c\x68eckbox"+this.H; i9.className="RadUploa\x64\x46ileS\x65\x6cecto\x72"; i9.disabled=!this.Enabled; return i9; } ; RadUploadNameSpace.RadUpload.prototype.i3= function (){var I9=this.o1("in\x70\x75t"); I9.type="\x66ile"; I9.name=this.Id+"\146\x69\x6ce"+this.H; I9.id=this.Id+"file"+this.H; I9.disabled=!this.Enabled; return I9; } ; RadUploadNameSpace.RadUpload.prototype.o4= function (){var oa=this.o1("inpu\x74"); oa.type="\x62utton"; oa.value=RadUploadNameSpace.Localization[this.K]["Remove"]; oa.id=this.Id+"remove"+this.H; oa.className="\x52adUp\x6c\x6fadRe\x6d\x6fveB\x75tton"; oa.Container=this ; oa.name="\122\x65\x6doveRo\x77"; oa.disabled=!this.Enabled; return oa; } ; RadUploadNameSpace.RadUpload.prototype.l4= function (){var Oa=this.o1("input"); Oa.type="but\x74\x6fn"; Oa.value=RadUploadNameSpace.Localization[this.K]["Clear"]; Oa.id=this.Id+"clear"+this.H; Oa.className="\x52adUpl\x6f\x61dClea\x72\x42ut\x74\157n"; Oa.Container=this ; Oa.name="\x43learInput"; Oa.disabled=!this.Enabled; return Oa; } ; RadUploadNameSpace.RadUpload.prototype.l9= function (){return this.g.rows.length; } ; RadUploadNameSpace.RadUpload.prototype.o1= function (tagName){return RadUploadNameSpace.Utils.o1(this.Document,tagName); } ; RadUploadNameSpace.RadUpload.prototype.l0= function (button,la){if (la){button.className="RadUploadBu\x74\x74on"; }else {button.className="RadUploadBut\x74\157n\x44\x69sab\x6c\145d"; }} ; RadUploadNameSpace.RadUpload.prototype.O6= function (ia){ this.Ia(ia.cells[0],this.k&RadUploadNameSpace.Utils.ob); this.Ia(ia.cells[2],this.k&RadUploadNameSpace.Utils.Ob); this.Ia(ia.cells[3],this.k&RadUploadNameSpace.Utils.lb); } ; RadUploadNameSpace.RadUpload.prototype.Ia= function (ib,Ib){RadUploadNameSpace.Utils.Ia(ib,Ib); } ; RadUploadNameSpace.RadUpload.prototype.oc= function (ia,Ib){RadUploadNameSpace.Utils.oc(ia,Ib); } ; RadUploadNameSpace.RadUpload.prototype.Oc= function (button,Ib){RadUploadNameSpace.Utils.lc(button,Ib,"\x69nline","inline"); } ; RadUploadNameSpace.RadUpload.prototype.Dispose= function (){ this.C=null; } ; RadUploadNameSpace.RadUpload.prototype.i6= function (index){var ia=this.g.rows[index]; if (ia){var ic=ia.getElementsByTagName("\x49NPUT"); for (var i=0; i<ic.length; i++){if (ic[i].type=="file")return ic[i]; }}return null; } ; RadUploadNameSpace.RadUpload.prototype.Ic= function (od){if (od=="")return true; for (var j=0; j<this.l.length; j++){var Od=this.l[j].substring(2); var ld=new RegExp("."+Od+"\x24","\x69g"); if (od.match(ld)){return true; }}return false; } ; RadUploadNameSpace.RadUpload.prototype.AddFileInput= function (){ this.Add( true); } ; RadUploadNameSpace.RadUpload.prototype.AddFileInputAt= function (index){ this.o2(index, true , false); } ; RadUploadNameSpace.RadUpload.prototype.ClearFileInputAt= function (index){ this.o8(index, true , false); } ; RadUploadNameSpace.RadUpload.prototype.DeleteSelectedFileInputs= function (){ this.c(); } ; RadUploadNameSpace.RadUpload.prototype.GetFileInputs= function (){var oe=[]; for (var i=0; i<this.g.rows.length; i++){oe[oe.length]=this.i6(i); }return oe; } ; RadUploadNameSpace.RadUpload.prototype.DeleteFileInputAt= function (position){ this.I7(position); } ; RadUploadNameSpace.RadUpload.prototype.SetControlObjectsVisibility= function (k){ this.k=k; for (var i=0; i<this.g.rows.length; i++){ this.O6(this.g.rows[i]); } this.oc(this.G,this.k&RadUploadNameSpace.Utils.Oe); this.Oc(this.D,this.k&RadUploadNameSpace.Utils.le); this.Oc(this.C,this.k&RadUploadNameSpace.Utils.ie); } ; RadUploadNameSpace.RadUpload.prototype.ValidateExtensions= function (){for (var i=0; i<this.g.rows.length; i++){var Ie=this.i6(i).value; if (!this.Ic(Ie)){return false; }}return true; } ; function GetRadUpload(of){return window[of]; } ;;if (typeof window.RadControlsNamespace=="\x75\x6edefined"){window.RadControlsNamespace= {} ; }window.RadControlsNamespace.Browser= {} ; 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("\x6dac")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); this.IsMozilla=window.netscape && !window.opera; this.IsOpera=window.opera; this.IsOpera9=window.opera && (parseInt(window.opera.version())>8); this.IsIE=!this.IsMacIE && !this.IsMozilla && !this.IsOpera && !this.IsSafari; 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=="\165ndefine\x64"){window.RadControlsNamespace= {} ; }RadControlsNamespace.DomEventsMixin= function (){} ; RadControlsNamespace.DomEventsMixin.Initialize= function (Iw){Iw.AttachDomEvent=this.AttachDomEvent; Iw.DetachDomEvent=this.DetachDomEvent; Iw.DisposeDomEvents=this.DisposeDomEvents; Iw.ClearEventPointers=this.ClearEventPointers; Iw.RegisterForAutomaticDisposal=this.RegisterForAutomaticDisposal; Iw.ox=this.ox; Iw.CreateEventHandler=this.CreateEventHandler; Iw.Ox=this.Ox; Iw.ClearEventPointers(); } ; RadControlsNamespace.DomEventsMixin.CreateEventHandler= function (lx){var il=this ; return function (e){if (!e)e=window.event; il[lx](e); };} ; RadControlsNamespace.DomEventsMixin.AttachDomEvent= function (ix,lt,Ix){var R=this.CreateEventHandler(Ix); this.oy[this.oy.length]=[ix,lt,R]; this.Ox(ix,lt,R); } ; RadControlsNamespace.DomEventsMixin.Ox= function (ix,lt,R){if (ix.attachEvent){ix.attachEvent("\x6fn"+lt,R); }else if (ix.addEventListener){ix.addEventListener(lt,R, false); }} ; RadControlsNamespace.DomEventsMixin.DetachDomEvent= function (ix,lt,R){if (ix.detachEvent){ix.detachEvent("\x6fn"+lt,R); }} ; RadControlsNamespace.DomEventsMixin.DisposeDomEvents= function (){for (var i=0; i<this.oy.length; i++){ this.DetachDomEvent(this.oy[i][0],this.oy[i][1],this.oy[i][2]); } this.ClearEventPointers(); } ; RadControlsNamespace.DomEventsMixin.RegisterForAutomaticDisposal= function (Oy){var ly=this ; var iy=this.CreateEventHandler(Oy); var Iy= function (){iy(); ly.DisposeDomEvents(); ly=null; } ; this.Ox(window,"unload",Iy); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.oy=[]; } ;;if (typeof window.RadControlsNamespace=="und\x65\x66\x69ned"){window.RadControlsNamespace= {} ; }RadControlsNamespace.EventMixin= {Initialize:function (Iw){Iw.oz= {} ; Iw._eventsEnabled= true; Iw.AttachEvent=this.AttachEvent; Iw.DetachEvent=this.DetachEvent; Iw.RaiseEvent=this.RaiseEvent; Iw.EnableEvents=this.EnableEvents; Iw.DisableEvents=this.DisableEvents; } ,DisableEvents:function (){ this._eventsEnabled= false; } ,EnableEvents:function (){ this._eventsEnabled= true; } ,AttachEvent:function (lt,Oz){if (!this.oz[lt]){ this.oz[lt]=[]; } this.oz[lt][this.oz[lt].length]=(RadControlsNamespace.EventMixin.ResolveFunction(Oz)); } ,DetachEvent:function (lt,Oz){var lz=this.oz[lt]; if (!lz){return false; }var iz=RadControlsNamespace.EventMixin.ResolveFunction(Oz); for (var i=0; i<lz.length; i++){if (iz==lz[i]){lz.splice(i,1); return true; }}return false; } ,ResolveFunction:function (Iz){if (typeof(Iz)=="\146unction"){return Iz; }else if (typeof(window[Iz])=="f\x75nction"){return window[Iz]; }else {return new Function("var\x20\x53ender \x3d\x20arg\x75\155\x65\x6ets[\x30\135;\x20\x76\x61r Arg\x75\x6den\x74\163 \x3d argu\x6d\145\x6e\164s\x5b1];"+Iz); }} ,RaiseEvent:function (lt,o10){if (!this._eventsEnabled){return true; }var O10= true; if (this[lt]){var l10=RadControlsNamespace.EventMixin.ResolveFunction(this[lt])(this,o10); if (typeof(l10)=="\x75ndef\x69\x6eed"){l10= true; }O10=O10 && l10; }if (!this.oz[lt])return O10; for (var i=0; i<this.oz[lt].length; i++){var Oz=this.oz[lt][i]; var l10=Oz(this,o10); if (typeof(l10)=="\x75\x6edefin\x65\x64"){l10= true; }O10=O10 && l10; }return O10; }} ;;RadUploadNameSpace.Localization.ProcessRawArray= function (Of){var If=Of[0]; if (typeof(RadUploadNameSpace.Localization[If])=="\x75n\x64\x65fined"){RadUploadNameSpace.Localization[If]=[]; }for (var i=1; i<Of.length; i+=2){RadUploadNameSpace.Localization[If][Of[i]]=Of[i+1]; }} ;;if (typeof window.RadControlsNamespace=="undefin\x65\x64"){window.RadControlsNamespace= {} ; }window.RadControlsNamespace.Overlay= function (Z){if (!this.SupportsOverlay()){return; } this.Element=Z; this.Shim=document.createElement("IFR\x41ME"); this.Shim.src="javascript\x3a\x27\047;"; this.Element.parentNode.appendChild(this.Shim); this.Shim.style.zIndex="-1"; this.Shim.style.position="\x61bsol\x75\x74e"; this.Shim.style.border="\x30px"; this.Shim.frameBorder=0; this.Shim.style.filter="pro\x67\x69d:DXIm\x61\x67eTr\x61nsform\x2e\115i\x63\x72oso\x66t.Al\x70\150a\x28\163t\x79le=0,\x6f\160a\x63ity=0\x29"; this.Shim.disabled="dis\x61\x62led"; };RadControlsNamespace.Overlay.prototype.SupportsOverlay= function (){return RadControlsNamespace.Browser.IsIE || (RadControlsNamespace.Browser.IsMozilla && RadControlsNamespace.Browser.IsMac); };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 "0px"; return parseInt(value)+"\x70x"; };RadControlsNamespace.Overlay.prototype.Dispose= function (){ this.Element=null; this.Shim=null; };;if (typeof(RadUploadNameSpace)=="\x75ndefined")RadUploadNameSpace= {} ; RadUploadNameSpace.O="\x50\141n\x65\x6c"; RadUploadNameSpace.RadProgressArea= function (o){ this.Id=o[0]; this.OnClientProgressUpdating=o[1]; this.OnClientProgressBarUpdating=o[2]; this.I=o[3]; if (!this.I){alert("Cou\x6c\x64 not \x66\x69nd\x20\x61n\x20\x69ns\x74\x61nce\x20\157\x66 Rad\x50rogres\x73Manage\x72 on t\x68e pag\x65. Are\x20you \x6dis\x73ing \x74he c\x6fntro\x6c dec\x6cara\x74ion\x3f"); }RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.Element=document.getElementById(this.Id); this.PrimaryProgressBarElement=this.FindElement("\x50\x72imary\x50\x72ogre\x73\x73Ba\x72"); this.PrimaryTotalElement=this.FindElement("\x50rimaryTotal"); this.PrimaryValueElement=this.FindElement("Primary\x56\x61lue"); this.PrimaryPercentElement=this.FindElement("\x50rimaryP\x65\x72cent"); this.SecondaryProgressBarElement=this.FindElement("Second\x61\x72yProg\x72\x65ssB\x61\162"); this.SecondaryTotalElement=this.FindElement("\x53\145con\x64\x61ryTot\x61\x6c"); this.SecondaryValueElement=this.FindElement("\x53econ\x64\x61ryVal\x75\x65"); this.SecondaryPercentElement=this.FindElement("\x53econda\x72\x79Perce\x6e\x74"); this.A=this.FindElement("\x43urrentOpera\x74\x69on"); this.TimeElapsedElement=this.FindElement("TimeElap\x73\x65d"); this.TimeEstimatedElement=this.FindElement("\x54\x69meEst\x69\x6dated"); this.SpeedElement=this.FindElement("\x54ransf\x65\x72Spee\x64"); this.CancelButtonElement=this.FindElement("Cance\x6c\x42utton"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"\x63lick","\x43ancel\x52\x65ques\x74"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="und\x65\x66ined"){RadUploadNameSpace.ProgressAreas=[]; }RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (U){if (this.RaiseEvent("\x4fnClientP\x72\x6fgre\x73\x73Up\x64\x61tin\x67", {ProgressData:U } )== false)return; this.Show(); if (this.RaiseEvent("O\x6e\x43lient\x50\x72ogr\x65\x73sBa\x72\125p\x64\x61ti\x6e\x67", {ProgressValue:U.PrimaryPercent,ProgressBarElementName: "P\x72\x69maryPro\x67\x72ess\x42\x61r",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,U.PrimaryPercent); }if (this.RaiseEvent("\x4fnCl\x69\x65ntProg\x72\x65ssB\x61\162U\x70\x64at\x69\x6eg", {ProgressValue:U.SecondaryPercent,ProgressBarElementName: "\x53econ\x64\x61ryPro\x67\x72ess\x42\x61r",ProgressBarElement: this.SecondaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.SecondaryProgressBarElement,U.SecondaryPercent); } this.UpdateTextIndicator(this.PrimaryTotalElement,U.PrimaryTotal); this.UpdateTextIndicator(this.PrimaryValueElement,U.PrimaryValue); this.UpdateTextIndicator(this.PrimaryPercentElement,U.PrimaryPercent); this.UpdateTextIndicator(this.SecondaryTotalElement,U.SecondaryTotal); this.UpdateTextIndicator(this.SecondaryValueElement,U.SecondaryValue); this.UpdateTextIndicator(this.SecondaryPercentElement,U.SecondaryPercent); this.UpdateTextIndicator(this.A,U.CurrentOperationText); this.UpdateTextIndicator(this.TimeElapsedElement,U.TimeElapsed); this.UpdateTextIndicator(this.TimeEstimatedElement,U.TimeEstimated); this.UpdateTextIndicator(this.SpeedElement,U.Speed); } ,Show:function (){ this.Element.style.display=""; } ,Hide:function (){ this.Element.style.display="none"; } ,UpdateHorizontalProgressBar:function (Z,z){if (Z && typeof(z)!="undefin\x65\144")Z.style.width=z+"\x25"; } ,UpdateVerticalProgressBar:function (Z,z){if (Z && typeof(z)!="\x75\x6edefine\x64")Z.style.height=z+"%"; } ,UpdateTextIndicator:function (Z,text){if (Z && typeof(text)!="\x75ndefin\x65\x64"){if (typeof(Z.value)=="s\x74\x72ing")Z.value=text; else if (typeof(Z.innerHTML)=="\x73tring")Z.innerHTML=text; }} ,CancelRequest:function (){ this.CancelClicked= true; } ,FindElement:function (W){var w=this.Id+"_"+RadUploadNameSpace.O+"\x5f"+W; return document.getElementById(w); }};;if (typeof(RadUploadNameSpace)=="\165ndef\x69\156e\x64")RadUploadNameSpace= {} ; RadUploadNameSpace.RadProgressManager= function (o){RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.og=o[0]; var Og=o[1]; this.EnableMemoryOptimizationIdentifier=o[2]; this.UniqueRequestIdentifier=o[3]; this.lg=o[4]; this.OnClientProgressStarted=o[5]; this.OnClientProgressUpdating=o[6]; this.FormId=o[7]; this.Ig=o[8]; this.EnableMemoryOptimization=o[9]; this.SuppressMissingHttpModuleError=o[10]; this.TimeFormat="\x25HOURS%:%MI\x4e\x55TES\x25\x3a%SE\x43\x4fNDS\x25\x73"; var form=document.getElementById(this.FormId); if (!form){form=document.forms[0]; } this.oh(form); if (this.Ig== true){ this.RegisterForSubmit(form); } this.Oh=this.lh(Og); this.ih= false; if (typeof(RadUploadNameSpace.ProgressAreas)=="undef\x69\x6eed"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("O\x6eClientProg\x72\x65ssSt\x61\162\x74ed"); this.Ih=new Date(); this.MakeCallback(); } ,MakeCallback:function (){if (!this.ih){ this.ih= true; this.oi(); }} ,HandleCallback:function (){if (this.Oi.readyState!=4)return; this.ih= false; if (this.ErrorOccured())return; var responseText=this.Oi.responseText; if (responseText){try {eval(responseText); }catch (ex){ this.ii(); return; }if (rawProgressData){if (this.EnableMemoryOptimization== true && !this.SuppressMissingHttpModuleError && rawProgressData.ProgressError){alert(rawProgressData.ProgressError); return; }if (rawProgressData.InProgress){if (this.Ii>0 || rawProgressData.RadProgressContextCustomCounters){ this.ModifyProgressData(rawProgressData); if (!this.oj(rawProgressData)){window.location.href=window.location.href; return; }}}}}window.setTimeout(this.CreateEventHandler("\x4d\x61\x6beCall\x62\x61ck"),this.og); } ,ErrorOccured:function (){if (!document.all)return false; if (this.Oi.status==404){ this.Oj(); }else if (this.Oi.status!=200){ this.lj(); }else return false; return true; } ,Oj:function (){alert("\x72.a.d.u\x70\x6coad A\x6a\x61x \x63\141l\x6c\142a\x63\x6b er\x72or.\x20\123o\x75rce ur\x6c was \x6e\157t\x20found\x3a \012\x0d\x0a\015"+this.Oh+"\x0a\x0d\012\x0dDid you\x20\x72eg\x69\163t\x65\x72 t\x68\x65 R\x61\144U\x70loadP\x72\157g\x72essHa\x6edler?\x20Or ar\x65 you\x20usi\x6eg UR\x4c Rew\x72iter\x3f"+"\134r\134n\x5c\x72\134\x6ePleas\x65\054 \x73\x65e \x74\x68e \x68elp fo\x72 more\x20\144e\x74ails:\x20\122\x61\144U\x70load\x202.0 \x2d Co\x6efigu\x72atio\x6e - R\x65gis\x74eri\x6eg Ra\x64Upl\x6fadP\x72og\x72ess\x48and\x6cer\x2e"); } ,lj:function (){alert("r\x2e\x61.d.upl\x6f\x61d A\x6a\x61x c\x61\x6clba\x63\x6b e\x72\x72or\x2e Sourc\x65\040\x75\162l\x20retur\x6eed er\x72or: "+this.Oi.status+"\x20\012\x0d\012\x0d"+this.Oh+"\012\x0d\x0a\015\x44\151d \x79\x6fu \x72\x65gis\x74\145r\x20\x74he\x20\122a\x64Uploa\x64\120r\x6fgress\x48andle\x72? Or\x20\141\x72e yo\x75 usi\x6eg UR\x4c Re\x77rite\x72?"+"\134r\134\x6e\134\x72\x5cnPl\x65\141se\x2c\040s\x65\x65 t\x68\x65 h\x65\154p\x20\146o\x72 more\x20\144\x65\164a\x69ls: \x52adUpl\x6fad \x32.0 -\x20Conf\x69gura\x74ion\x20- Re\x67ist\x65rin\x67 Ra\x64Upl\x6fadP\x72og\x72ess\x48an\x64ler\x2e"); } ,ii:function (){alert("\x72\056a.\x64\x2euploa\x64\x20Aj\x61\x78 ca\x6c\x6cbac\x6b\x20er\x72\157r\x2e Sourc\x65 url \x72\x65tu\x72ned i\x6evalid\x20cont\x65nt: \x0a\015\x0a\015"+this.Oi.responseText+"\012\x0d\012\x0d"+this.Oh+"\012\x0d\012\015\x44id yo\x75\x20re\x67\x69ste\x72\040t\x68\145 \x52\141d\x55pload\x50\x72og\x72essHa\x6edler?\x20Or a\x72\145\x20you \x75sing\x20URL \x52ewri\x74er?"+"\x5c\162\134\x6e\134\x72\x5cnPl\x65\141s\x65\x2c se\x65\040t\x68e help\x20\146o\x72 more\x20\144e\x74ails:\x20RadU\x70\154\x6f\141\x64 2.0\x20- Co\x6efig\x75rati\x6fn -\x20Regi\x73ter\x69ng \x52adU\x70loa\x64Pr\x6fgre\x73sH\x61ndl\x65r."); } ,oj:function (rawProgressData){ this.RaiseEvent("\x4fnClientP\x72\x6fgres\x73\x55pda\x74\x69ng", {ProgressData:rawProgressData } ); for (var i=0; i<RadUploadNameSpace.ProgressAreas.length; i++){var ij=RadUploadNameSpace.ProgressAreas[i]; if (ij.CancelClicked){return false; }ij.Update(rawProgressData); }return true; } ,ModifyProgressData:function (rawProgressData){var Ij=new Date()-this.Ih; if (typeof(rawProgressData.TimeElapsed)=="undefined")rawProgressData.TimeElapsed=this.GetFormattedTime(this.ToSeconds(Ij)); if (rawProgressData.RadUpload){var ok=rawProgressData.RadUpload.RequestSize; var Ok=rawProgressData.RadUpload.Bytes; if (typeof(rawProgressData.PrimaryTotal)=="undefined")rawProgressData.PrimaryTotal=this.FormatBytes(ok); if (typeof(rawProgressData.PrimaryValue)=="\x75ndef\x69\x6eed")rawProgressData.PrimaryValue=this.FormatBytes(Ok); if (typeof(rawProgressData.PrimaryPercent)=="\x75\x6edefine\x64")rawProgressData.PrimaryPercent=Math.round(100*Ok/ok); if (typeof(rawProgressData.SecondaryTotal)=="\x75\x6edefined")rawProgressData.SecondaryTotal=this.Ii; if (typeof(rawProgressData.SecondaryValue)=="undef\x69\x6eed")rawProgressData.SecondaryValue=rawProgressData.RadUpload.FilesCount; if (typeof(rawProgressData.SecondaryPercent)=="u\x6e\x64efined")rawProgressData.SecondaryPercent=Math.round(100*rawProgressData.RadUpload.FilesCount/(this.Ii!=0?this.Ii: 1)); if (typeof(rawProgressData.CurrentOperationText)=="\x75\x6edefined")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="undefin\x65\x64")rawProgressData.Speed=this.FormatBytes(rawProgressData.RadUpload.Bytes/this.ToSeconds(Ij))+"/s"; }if (typeof(rawProgressData.TimeEstimated)=="undefine\x64" && typeof(rawProgressData.PrimaryPercent)=="number")rawProgressData.TimeEstimated=this.GetFormattedTime(this.ToSeconds(Ij*(100/rawProgressData.PrimaryPercent-1))); } ,ToSeconds:function (lk){return Math.round(lk/1000); } ,InitSelectedFilesCount:function (){ this.Ii=0; var oe=document.getElementsByTagName("\x69nput"); for (var i=0; i<oe.length; i++){var ik=oe[i]; if (ik.type=="fi\x6c\x65" && ik.value!=""){ this.Ii++; }}} ,oi:function (){if (typeof(XMLHttpRequest)!="\x75ndefi\x6e\x65d"){ this.Oi=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="\x75ndefined"){ this.Oi=new ActiveXObject("\x4dicrosoft.XM\x4c\x48TTP"); }else return; this.Oi.onreadystatechange=this.CreateEventHandler("\x48andleCal\x6c\x62ack"); this.Oi.open("GET",this.Ik(), true); this.Oi.send(""); } ,ll:function (il,method){return function (){method.apply(il,arguments); } ; } ,lh:function (Og){var Il=Og.indexOf("om")<0?"?": "\x26"; return Og+Il+this.UniqueRequestIdentifier+"="+this.lg; } ,Ik:function (){return this.Oh+"\x26\122a\x64\x55pload\x54\x69me\x53\x74amp\x3d"+new Date().getTime(); } ,RegisterForSubmit:function (form){var Om=this.CreateEventHandler("\123t\x61\x72tProgr\x65\x73sPo\x6c\x6cing"); var Im=form.submit; try {form.submit= function (){Om(); form.submit=Im; form.submit(); };}catch (exception){try {var On=__doPostBack; __doPostBack= function (eventTarget,eventArgument){var In= true; if (typeof(Page_ClientValidate)=="\x66unctio\x6e"){In=Page_ClientValidate(); }if (In){Om(); On(eventTarget,eventArgument); }} ; }catch (exception){}} this.AttachDomEvent(form,"\x73ubmit","S\x74\x61rtProg\x72\x65ssPo\x6c\154i\x6e\147"); } ,oh:function (form){if (typeof(form.action)=="\x75ndefined")form.action=""; if (form.action.match(/\x3f/)){form.action=this.oo(form.action,this.UniqueRequestIdentifier); form.action=this.oo(form.action,this.EnableMemoryOptimizationIdentifier); if (form.action.substring(form.action.length-1)!="\x3f"){form.action+="&"; }}else {form.action+="?";}form.action+=this.UniqueRequestIdentifier+"="+this.lg; if (this.EnableMemoryOptimization){form.enctype=form.encoding="\x6d\165l\x74\x69part\x2f\x66orm\x2d\x64ata"; }else {form.action+="&"+this.EnableMemoryOptimizationIdentifier+"=\x66\x61lse"; }} ,oo:function (Oo,Io){var op=new RegExp("\x26?"+Io+"\x3d\133^&]\x2a"); if (Oo.match(op)){return Oo.replace(op,""); }return Oo; } ,FormatBytes:function (Op){var lp=Op/1024; var ip=lp/1024; if (ip>.8){return ""+Math.round(ip*100)/100+"M\x42"; }if (lp>.8){return ""+Math.round(lp*100)/100+"\x6bB"; }return ""+Op+"\x20bytes"; } ,GetFormattedTime:function (Ip){var oq=this.NormalizeTime(Ip); return this.TimeFormat.replace(/\x25\x48\x4f\x55\x52\x53\x25/,oq.Oq).replace(/\x25\x4d\x49\x4e\x55\x54\x45\x53\x25/,oq.lq).replace(/\x25\x53\x45\x43\x4f\x4e\x44\x53\x25/,oq.iq); } ,NormalizeTime:function (Iq){var Ip=Iq%60; var or=Math.floor(Iq/60); var Or=or%60; var lr=Math.floor(or/60); return {Oq:lr,lq:Or,iq:Ip };}} ;;RadUploadNameSpace.l2= function (i10){ this.FileInputField=i10; } ; RadUploadNameSpace.i7= function (I10){ this.FileInputFields=I10; } ;;RadUploadNameSpace.Utils= {} ; RadUploadNameSpace.Utils.ir=0; RadUploadNameSpace.Utils.ob=1; RadUploadNameSpace.Utils.Ob=2; RadUploadNameSpace.Utils.lb=4; RadUploadNameSpace.Utils.le=8; RadUploadNameSpace.Utils.ie=16; RadUploadNameSpace.Utils.Ir=RadUploadNameSpace.Utils.ob|RadUploadNameSpace.Utils.Ob|RadUploadNameSpace.Utils.le|RadUploadNameSpace.Utils.ie; RadUploadNameSpace.Utils.os=RadUploadNameSpace.Utils.ob|RadUploadNameSpace.Utils.Ob|RadUploadNameSpace.Utils.lb|RadUploadNameSpace.Utils.le|RadUploadNameSpace.Utils.ie; RadUploadNameSpace.Utils.Oe=RadUploadNameSpace.Utils.le|RadUploadNameSpace.Utils.ie; RadUploadNameSpace.Utils.AppendStyleSheet= function (of,Os){var ls=(navigator.appName=="\x4di\x63\x72osoft \x49\156\x74\145r\x6e\x65t E\x78\160l\x6f\x72\x65\162") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("m\x61\x63")!=-1)); var is=(navigator.userAgent.toLowerCase().indexOf("saf\x61\x72i")!=-1); if (ls || is){document.write("\x3c"+"link"+"\x20rel=\047\x73ty\x6c\x65she\x65t\047\x20\x74yp\x65\x3d\047\x74ext\x2fcss\047\x20hre\x66\075\x27"+Os+"\047>"); }else {var Is=document.createElement("\114I\x4e\x4b"); Is=Is.cloneNode( true); Is.rel="s\x74\x79lesheet"; Is.type="text\x2f\x63ss"; Is.href=Os; document.getElementById(of+"\x53\x74yleSh\x65\x65tHol\x64\x65r").appendChild(Is); }} ; RadUploadNameSpace.Utils.I0= function (){for (var i=0; i<RadUploadNameSpace.V.length; i++){var ot=RadUploadNameSpace.V[i]; if (ot.Dispose){ot.Dispose(); }}} ; RadUploadNameSpace.Utils.AttachEvent= function (Ot,lt,it){if (document.attachEvent){Ot.attachEvent("\x6fn"+lt,it); }else if (window.addEventListener){Ot.addEventListener(lt,it, true); }} ; RadUploadNameSpace.Utils.I2= function (e){if (!e)e=event; var It; if (e.srcElement && e.srcElement.name){It=e.srcElement.name; }else if (e.target && e.target.name){It=e.target.name; }if (It=="\x52emoveRo\x77"){if (this.Container.I7(this.rowIndex)!= false){ this.Container=null; }}if (It=="ClearInp\x75\x74"){var index=this.rowIndex; if (this.Container.o8(index)!= false){ this.Container=null; }}} ; RadUploadNameSpace.Utils.ou= function (Ou,lu,value){for (var i=0; i<Ou.length; i++){if (Ou[i][lu]==value){return i; }}return -1; } ; RadUploadNameSpace.Utils.iu= function (Iu,ov){B.submit= function (){try {ov(); this.submit=Iu; this.submit(); }catch (Ov){}} ; } ; RadUploadNameSpace.Utils.lv= function (ov){try {On=__doPostBack; __doPostBack= function (eventTarget,eventArgument){ov(); var In= true; if (typeof(Page_ClientValidate)=="function"){In=Page_ClientValidate(); }if (In){On(eventTarget,eventArgument); }} ; }catch (Ov){}} ; RadUploadNameSpace.Utils.RegisterForPostback= function (iv,ov){var B=null; try {B=document.getElementById(iv); }catch (ex){B=document.forms[0]; }var Iu=B.submit; try {RadUploadNameSpace.Utils.iu(Iu,ov); }catch (Ov){RadUploadNameSpace.Utils.lv(ov); }RadUploadNameSpace.Utils.AttachEvent(B,"\x73\x75\x62mit", function (){ov(); } ); B=null; } ; RadUploadNameSpace.Utils.o1= function (Iv,tagName){var ow=Iv.createElement(tagName); return ow.cloneNode( true); } ; RadUploadNameSpace.Utils.Ia= function (ib,Ib){RadUploadNameSpace.Utils.lc(ib,Ib,"block","\x74able-cel\x6c"); } ; RadUploadNameSpace.Utils.oc= function (ia,Ib){RadUploadNameSpace.Utils.lc(ia,Ib,"bloc\x6b","\x74\141b\x6c\x65-row"); } ; RadUploadNameSpace.Utils.lc= function (Ow,Ib,lw,iw){if (Ib){Ow.style.display=document.all?lw:iw; }else {Ow.style.display="none"; }} ; RadUploadNameSpace.Utils.IsSafari= function (){return (navigator.userAgent.toLowerCase().indexOf("safar\x69")>0); } ;;