var RadUploadNameSpace= {} ; RadUploadNameSpace.V=[]; RadUploadNameSpace.Localization=[]; RadUploadNameSpace.v=null; RadUploadNameSpace.RadUpload= function (T){RadControlsNamespace.EventMixin.Initialize(this ); if (!document.readyState || document.readyState=="complete"){ this.t(T); }else if (window.attachEvent){var S=this ; var R= function (){S.t(T); } ; window.attachEvent("onl\x6f\x61d",R); }else if (window.addEventListener && navigator.userAgent.indexOf("Safa\x72\x69")!=-1){var S=this ; var R= function (){S.t(T); } ; window.addEventListener("\x6coad",R, true); }} ; RadUploadNameSpace.RadUpload.prototype.t= function (T){ this.Id=T[0]; this.r=T[1]; this.Q=this.r+"\x49mg/"; 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 (RadControlsNamespace.Browser.IsSafari || RadControlsNamespace.Browser.IsOpera){ 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+"\x42uttonArea"); this.g=this.Document.getElementById(this.Id+"ListContain\x65\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("AddButton","A\x64\x64", function (){S.Add(); } ); this.C=this.d("DeleteBut\x74\x6fn","Del\x65\x74e", function (){S.c(); } ); var B=document.getElementById(this.FormId); if (B.enctype!="\x6dultipart/fo\x72\x6d-da\x74\x61"){B.enctype="\x6dultip\x61\x72t/for\x6d\x2ddat\x61"; B.encoding="multi\x70\x61rt/fo\x72\x6d-dat\x61"; } ; 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,"unloa\x64", function (){RadUploadNameSpace.Utils.I0(); } ); } ; RadUploadNameSpace.RadUpload.prototype.f= function (){ this.h=this.o1("\x64iv"); this.h.style.position="\x61bsolu\x74\x65"; this.h.style.top=0; this.h.style.left=0; this.h.style.zIndex=1; var O1=this.o1("\x69nput"); O1.type="\x74\x65\x78t"; O1.className="R\x61\x64UploadI\x6e\x70utF\x69\x65l\x64"; this.h.appendChild(O1); var l1=this.o1("input"); l1.type="button"; l1.value=RadUploadNameSpace.Localization[this.K]["Selec\x74"]; l1.disabled=!this.Enabled; l1.className="R\x61\x64Upload\x53\x65lec\x74\x42ut\x74\x6fn"; 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)=="\x75\x6edefin\x65\x64"){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("OnClient\x41\x64di\x6e\x67",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="RealFileInpu\x74"; var o5=this.o1("div"); o5.style.position="relative"; 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\x63ted",new RadUploadNameSpace.l2(l3)); } ; }}else {l3.className="NoSkin\x6e\x65dFile\x55\x6eput"; I4.appendChild(l3); l3.onchange= function (){S.RaiseEvent("OnCli\x65\x6etFile\x53\x65lec\x74\145\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("\x49\x4e\x50UT"); for (var j=0; j<l7.length; j++){if (l7[j].type=="file"){I6[I6.length]=l7[j]; break; }}}}var O2=this.RaiseEvent("\x4fnClie\x6e\x74Dele\x74\x69ngS\x65\x6cect\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("OnClien\x74\104\x65\x6cetin\x67",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("OnClientCl\x65\x61rin\x67",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="\143heckbox"; i9.id=this.Id+"chec\x6b\x62ox"+this.H; i9.className="RadUpl\x6f\x61dFile\x53\x65lec\x74\157r"; i9.disabled=!this.Enabled; return i9; } ; RadUploadNameSpace.RadUpload.prototype.i3= function (){var I9=this.o1("input"); I9.type="f\x69\x6ce"; I9.name=this.Id+"\x66\x69le"+this.H; I9.id=this.Id+"\x66\x69le"+this.H; I9.disabled=!this.Enabled; return I9; } ; RadUploadNameSpace.RadUpload.prototype.o4= function (){var oa=this.o1("i\x6eput"); oa.type="butto\x6e"; oa.value=RadUploadNameSpace.Localization[this.K]["\x52\x65move"]; oa.id=this.Id+"\x72emove"+this.H; oa.className="RadUplo\x61\x64Remov\x65\x42utto\x6e"; oa.Container=this ; oa.name="\x52\x65moveR\x6f\x77"; oa.disabled=!this.Enabled; return oa; } ; RadUploadNameSpace.RadUpload.prototype.l4= function (){var Oa=this.o1("\151\x6e\x70ut"); Oa.type="\x62utton"; Oa.value=RadUploadNameSpace.Localization[this.K]["\x43lear"]; Oa.id=this.Id+"clear"+this.H; Oa.className="RadU\x70\x6coadCle\x61\x72But\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="\x52adUploadBut\x74\x6fn"; }else {button.className="\x52adUploa\x64\x42utton\x44\x69sa\x62\154e\x64"; }} ; 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","\x69nline"); } ; 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+"$","ig"); 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=="\165ndef\x69\x6eed"){window.RadControlsNamespace= {} ; }window.RadControlsNamespace.Browser= {} ; window.RadControlsNamespace.Browser.ParseBrowserInfo= function (){ this.IsMacIE=(navigator.appName=="\x4dicrosoft \x49\x6eter\x6e\x65t \x45xplorer") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("safari")!=-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=="CSS1Comp\x61\x74"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo();;if (typeof window.RadControlsNamespace=="\x75\x6edefined"){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("on"+lt,R); }else if (ix.addEventListener){ix.addEventListener(lt,R, false); }} ; RadControlsNamespace.DomEventsMixin.DetachDomEvent= function (ix,lt,R){if (ix.detachEvent){ix.detachEvent("on"+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,"u\x6el\x6f\x61d",Iy); } ; RadControlsNamespace.DomEventsMixin.ClearEventPointers= function (){ this.oy=[]; } ;;if (typeof window.RadControlsNamespace=="\165nde\x66\x69ned"){window.RadControlsNamespace= {} ; }RadControlsNamespace.EventMixin= {Initialize:function (Iw){Iw._listeners= {} ; 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._listeners[lt]){ this._listeners[lt]=[]; } this._listeners[lt][this._listeners[lt].length]=(RadControlsNamespace.EventMixin.ResolveFunction(oz)); } ,DetachEvent:function (lt,oz){var Oz=this._listeners[lt]; if (!Oz){return false; }var lz=RadControlsNamespace.EventMixin.ResolveFunction(oz); for (var i=0; i<Oz.length; i++){if (lz==Oz[i]){Oz.splice(i,1); return true; }}return false; } ,ResolveFunction:function (iz){if (typeof(iz)=="function"){return iz; }else if (typeof(window[iz])=="function"){return window[iz]; }else {return new Function("\x76\x61\162\x20\123en\x64\x65r \x3d\x20arg\x75\x6den\x74\x73[0]\x3b va\x72\040\x41rgume\x6e\164\x73\040=\x20argum\x65nts[\x31\135\x3b"+iz); }} ,RaiseEvent:function (lt,Iz){if (!this._eventsEnabled){return true; }var o10= true; if (this[lt]){var O10=RadControlsNamespace.EventMixin.ResolveFunction(this[lt])(this,Iz); if (typeof(O10)=="\x75n\x64\x65fined"){O10= true; }o10=o10 && O10; }if (!this._listeners[lt])return o10; for (var i=0; i<this._listeners[lt].length; i++){var oz=this._listeners[lt][i]; var O10=oz(this,Iz); if (typeof(O10)=="\x75ndefin\x65\x64"){O10= true; }o10=o10 && O10; }return o10; }} ;;RadUploadNameSpace.Localization.ProcessRawArray= function (Of){var If=Of[0]; if (typeof(RadUploadNameSpace.Localization[If])=="\x75\x6e\x64efined"){RadUploadNameSpace.Localization[If]=[]; }for (var i=1; i<Of.length; i+=2){RadUploadNameSpace.Localization[If][Of[i]]=Of[i+1]; }} ;;if (typeof window.RadControlsNamespace=="undef\x69\x6e\145\x64"){window.RadControlsNamespace= {} ; }window.RadControlsNamespace.Overlay= function (Z){if (!this.SupportsOverlay()){return; } this.Element=Z; this.Shim=document.createElement("\111FRAM\x45"); this.Shim.src="javascript\x3a\x27\x27\x3b"; this.Element.parentNode.insertBefore(this.Shim,this.Element); if (Z.style.zIndex>0){ this.Shim.style.zIndex=Z.style.zIndex-1; } this.Shim.style.position="\x61bsolut\x65"; this.Shim.style.border="\x30px"; this.Shim.frameBorder=0; this.Shim.style.filter="pr\x6f\x67id:DXIm\x61\x67eTr\x61nsform\x2e\115i\x63\x72os\x6f\x66\x74.Alp\x68\x61(s\x74\171l\x65=0,op\x61\143i\x74y=0)"; this.Shim.disabled="\x64isabled"; };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+"\x70x"; };RadControlsNamespace.Overlay.prototype.ToUnit= function (value){if (!value)return "0px"; return parseInt(value)+"p\x78"; };RadControlsNamespace.Overlay.prototype.Dispose= function (){ this.Element=null; this.Shim=null; };;if (typeof(RadUploadNameSpace)=="u\x6e\x64efined")RadUploadNameSpace= {} ; RadUploadNameSpace.O="Panel"; RadUploadNameSpace.RadProgressArea= function (o){ this.Id=o[0]; this.OnClientProgressUpdating=o[1]; this.OnClientProgressBarUpdating=o[2]; this.I=o[3]; if (!this.I){alert("\x43oul\x64\x20not f\x69\x6ed a\x6e insta\x6e\x63e \x6f\x66 Ra\x64Pro\x67\162\x65ssMan\x61ger o\x6e\040\x74he p\x61\147\x65\056\x20Ar\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("\120ri\x6d\x61ryPro\x67\x72ess\x42\141r"); this.PrimaryTotalElement=this.FindElement("\x50rimaryTota\x6c"); this.PrimaryValueElement=this.FindElement("\x50rima\x72\x79Value"); this.PrimaryPercentElement=this.FindElement("\x50rimaryP\x65\x72cent"); this.SecondaryProgressBarElement=this.FindElement("\x53econd\x61\x72yProg\x72\x65ss\x42\x61r"); this.SecondaryTotalElement=this.FindElement("\x53econdar\x79\x54otal"); this.SecondaryValueElement=this.FindElement("SecondaryVal\x75\145"); this.SecondaryPercentElement=this.FindElement("\x53\x65condar\x79\x50erc\x65\x6et"); this.A=this.FindElement("Curr\x65\x6etOpera\x74\x69on"); this.TimeElapsedElement=this.FindElement("TimeElapse\x64"); this.TimeEstimatedElement=this.FindElement("TimeEsti\x6d\x61ted"); this.SpeedElement=this.FindElement("Spe\x65\x64"); this.CancelButtonElement=this.FindElement("C\x61\x6ecelButt\x6f\x6e"); this.CancelClicked= false; if (this.CancelButtonElement){ this.AttachDomEvent(this.CancelButtonElement,"click","Can\x63\x65lReque\x73\x74"); }if (typeof(RadUploadNameSpace.ProgressAreas)=="\x75ndefined"){RadUploadNameSpace.ProgressAreas=[]; } this.RegisterForAutomaticDisposal("Hide"); RadUploadNameSpace.ProgressAreas[RadUploadNameSpace.ProgressAreas.length]=this ; } ; RadUploadNameSpace.RadProgressArea.prototype= {Update:function (U){if (this.RaiseEvent("OnClien\x74Progres\x73\x55pda\x74\x69ng", {ProgressData:U } )== false)return; this.Show(); if (this.RaiseEvent("OnClientProg\x72essBarUp\x64\x61ti\x6e\x67", {ProgressValue:U.PrimaryPercent,ProgressBarElementName: "\x50rimaryPro\x67\x72essB\x61\x72",ProgressBarElement: this.PrimaryProgressBarElement } )!= false){ this.UpdateHorizontalProgressBar(this.PrimaryProgressBarElement,U.PrimaryPercent); }if (this.RaiseEvent("OnClientPr\x6f\x67ress\x42\x61rUp\x64\141\x74\x69ng", {ProgressValue:U.SecondaryPercent,ProgressBarElementName: "Secondary\x50\x72ogre\x73\x73Bar",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=""; if (this.Element.style.position=="\x61bsolut\x65"){if (typeof(this.Overlay)=="\x75ndefin\x65\x64"){ this.Overlay=new RadControlsNamespace.Overlay(this.Element); } this.Overlay.Update(); }} ,Hide:function (){ this.Element.style.display="n\x6f\x6ee"; if (this.Overlay){ this.Overlay.Dispose(); this.Overlay=null; }} ,UpdateHorizontalProgressBar:function (Z,z){if (Z && typeof(z)!="\x75ndefined")Z.style.width=z+"\x25"; } ,UpdateVerticalProgressBar:function (Z,z){if (Z && typeof(z)!="undefined")Z.style.height=z+"\x25"; } ,UpdateTextIndicator:function (Z,text){if (Z && typeof(text)!="u\x6e\x64efined"){if (typeof(Z.value)=="\x73tring")Z.value=text; else if (typeof(Z.innerHTML)=="\x73tring")Z.innerHTML=text; }} ,CancelRequest:function (){ this.CancelClicked= true; } ,FindElement:function (W){var w=this.Id+"\x5f"+RadUploadNameSpace.O+"_"+W; return document.getElementById(w); }};;if (typeof(RadUploadNameSpace)=="undefined")RadUploadNameSpace= {} ; RadUploadNameSpace.RadProgressManager= function (o){RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.og=Math.max(o[0],50); 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="%\x48O\x55\x52S%:%MI\x4e\x55TES\x25:%SECON\x44\x53%s"; 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)=="\x75ndefined"){RadUploadNameSpace.ProgressAreas=[]; }} ; RadUploadNameSpace.RadProgressManager.prototype= {StartProgressPolling:function (){ this.InitSelectedFilesCount(); this.RaiseEvent("\x4fnClientPro\x67\x72essS\x74\141\x72ted"); 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("M\x61keCallback"),this.og); } ,ErrorOccured:function (){if (!document.all)return false; if (this.Oi.status==404){ this.Oj(); }else if (this.Oi.status>0 && this.Oi.status!=200){ this.lj(); }else return false; return true; } ,Oj:function (){alert("\x72.a.d.uplo\x61\x64 Aj\x61\x78 c\x61\x6clba\x63\153\x20\x65rr\x6fr. S\x6f\165r\x63\145 \x75rl wa\x73\040\x6eot f\x6fund: \x0a\015\x0a\015"+this.Oh+"\x0a\015\012\x0dDid y\x6f\x75 re\x67ister t\x68\145 \x52\x61dU\x70loadP\x72\157g\x72\145s\x73Handl\x65r in \x77eb.c\x6f\156\x66ig?"+"\015\x0a\015\012\x50leas\x65\054 \x73\145e \x74\150e\x20\x68el\x70 for m\x6fre de\x74\141i\x6cs: Ra\x64Uploa\x64 2.0 \x2d Usi\x6eg r\x2ea.d.\x75ploa\x64 - C\x6fnfi\x67ura\x74ion \x2d Ra\x64Upl\x6fadP\x72og\x72ess\x48and\x6cer\x2e"); } ,lj:function (){alert("r\x2e\x61.d.upl\x6f\x61d Aj\x61\170 \x63\141ll\x62\141c\x6b\x20er\x72or. So\x75rce ur\x6c retur\x6eed er\x72or: "+this.Oi.status+" \x0a\x0d\012\x0d"+this.Oi.ij+"\x20\012\x0d\x0a\015"+this.Oh+"\012\x0d\012\015\x44id y\x6f\165 \x72\x65gi\x73\x74er\x20\x74he\x20RadUp\x6c\157a\x64\120r\x6fgres\x73\110a\x6edler\x20in w\x65b.co\x6efig\x3f"+"\x0d\012\x0d\012\x50\x6ceas\x65\x2c s\x65\x65 t\x68\x65 h\x65\x6cp \x66or mo\x72\145 \x64etail\x73: Rad\x55ploa\x64\040\x32.0 -\x20Usin\x67 r.a\x2ed.u\x70load\x20- C\x6fnfi\x67ura\x74ion\x20- R\x61dUp\x6coad\x50ro\x67res\x73Ha\x6edl\x65r."); } ,ii:function (){alert("\x72.a.d.upload\x20\x41jax\x20\x63all\x62\141c\x6b\x20er\x72\x6fr\x2e\x20So\x75\162c\x65\040\x75\162l\x20retur\x6eed in\x76alid\x20cont\x65nt: \x0a\015\x0a\015"+this.Oi.responseText+"\012\x0d\012\x0d"+this.Oh+"\012\x0d\012\x0d\x44id y\x6f\x75 r\x65\147is\x74\145r\x20\x74he\x20RadUpl\x6fadPro\x67\162e\x73sHand\x6cer in\x20web.c\x6fnfig\x3f"+"\x0d\x0a\015\x0a\x50lea\x73\x65, \x73\x65e t\x68\145 \x68\x65lp\x20for mo\x72e det\x61\151l\x73: Rad\x55pload\x202.0 \x2d\040\x55sing\x20r.a.\x64.up\x6coad \x2d Co\x6efigu\x72ati\x6fn -\x20Rad\x55plo\x61dP\x72ogr\x65ssH\x61nd\x6cer."); } ,oj:function (rawProgressData){ this.RaiseEvent("\x4fnClient\x50\x72ogre\x73\x73Upd\x61\164i\x6e\x67", {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 ok=new Date()-this.Ih; if (typeof(rawProgressData.TimeElapsed)=="\x75ndefi\x6e\x65d")rawProgressData.TimeElapsed=this.GetFormattedTime(this.ToSeconds(ok)); if (rawProgressData.RadUpload){var Ok=rawProgressData.RadUpload.RequestSize; var lk=rawProgressData.RadUpload.Bytes; if (typeof(rawProgressData.PrimaryTotal)=="undefined")rawProgressData.PrimaryTotal=this.FormatBytes(Ok); if (typeof(rawProgressData.PrimaryValue)=="\x75ndefined")rawProgressData.PrimaryValue=this.FormatBytes(lk); if (typeof(rawProgressData.PrimaryPercent)=="\x75\x6edefine\x64")rawProgressData.PrimaryPercent=Math.round(100*lk/Ok); if (typeof(rawProgressData.SecondaryTotal)=="u\x6edefined")rawProgressData.SecondaryTotal=this.Ii; if (typeof(rawProgressData.SecondaryValue)=="undefi\x6e\x65d")rawProgressData.SecondaryValue=rawProgressData.RadUpload.FilesCount; if (typeof(rawProgressData.SecondaryPercent)=="undefine\x64")rawProgressData.SecondaryPercent=Math.round(100*rawProgressData.RadUpload.FilesCount/(this.Ii!=0?this.Ii: 1)); if (typeof(rawProgressData.CurrentOperationText)=="undefined")rawProgressData.CurrentOperationText=rawProgressData.RadUpload.CurrentFileName; if (typeof(rawProgressData.Speed)=="\x75ndefi\x6e\x65d")rawProgressData.Speed=this.FormatBytes(rawProgressData.RadUpload.Bytes/this.ToSeconds(ok))+"\x2f\x73"; }if (typeof(rawProgressData.TimeEstimated)=="undef\x69\x6eed" && typeof(rawProgressData.PrimaryPercent)=="number")rawProgressData.TimeEstimated=this.GetFormattedTime(this.ToSeconds(ok*(100/rawProgressData.PrimaryPercent-1))); } ,ToSeconds:function (ik){return Math.round(ik/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=="\x66ile" && Ik.value!=""){ this.Ii++; }}} ,oi:function (){if (typeof(XMLHttpRequest)!="undefined"){ this.Oi=new XMLHttpRequest(); }else if (typeof(ActiveXObject)!="\x75ndefined"){ this.Oi=new ActiveXObject("Mi\x63\x72osoft.\x58\115\x4c\x48T\x54\x50"); }else return; this.Oi.onreadystatechange=this.CreateEventHandler("Handl\x65\x43allba\x63\x6b"); this.Oi.open("GET",this.ll(), true); this.Oi.send(""); } ,il:function (Il,method){return function (){method.apply(Il,arguments); } ; } ,lh:function (Og){var om=Og.indexOf("?")<0?"\x3f": "\x26"; return Og+om+this.UniqueRequestIdentifier+"="+this.lg; } ,ll:function (){return this.Oh+"\x26RadUploadTi\x6d\x65Sta\x6d\x70="+new Date().getTime(); } ,RegisterForSubmit:function (form){var Om=this.CreateEventHandler("Star\x74\x50rogre\x73\x73Pol\x6c\151n\x67"); 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)=="\x66unction"){In=Page_ClientValidate(); }if (In){Om(); On(eventTarget,eventArgument); }} ; }catch (exception){}} this.AttachDomEvent(form,"\x73\x75bmit","\x53tartP\x72\x6fgres\x73\x50oll\x69ng"); } ,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+="\x3f";}form.action+=this.UniqueRequestIdentifier+"\x3d"+this.lg; if (this.EnableMemoryOptimization){form.enctype=form.encoding="\x6dultipart/f\x6f\x72m-da\x74\x61"; }else {form.action+="\x26"+this.EnableMemoryOptimizationIdentifier+"=false"; }} ,oo:function (Oo,Io){var op=new RegExp("\046\x3f"+Io+"\x3d\x5b^&]*"); 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+"\x4dB"; }if (lp>.8){return ""+Math.round(lp*100)/100+"\x6bB"; }return ""+Op+" \x62\x79tes"; } ,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 (l10){ this.FileInputField=l10; } ; 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=="Micro\x73oft\x20\x49nter\x6e\x65t \x45\x78pl\x6f\x72er") && ((navigator.userAgent.toLowerCase().indexOf("\155\x61c")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6dac")!=-1)); var is=(navigator.userAgent.toLowerCase().indexOf("\x73\x61fari")!=-1); if (ls || is){document.write("\x3c"+"link"+" rel=\047\x73tyl\x65\x73hee\x74\x27 t\x79\160e\x3d\x27tex\x74\057\x63ss\047\x20hre\x66=\047"+Os+"\x27>"); }else {var Is=document.createElement("LINK"); Is=Is.cloneNode( true); Is.rel="stylesheet"; Is.type="\x74\145xt/\x63\x73s"; Is.href=Os; document.getElementById(of+"StyleShee\x74\x48olde\x72").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=="R\x65\155o\x76\x65Row"){if (this.Container.I7(this.rowIndex)!= false){ this.Container=null; }}if (It=="ClearInpu\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)=="\x66unctio\x6e"){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,"\x73ubmit", 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,"\x62lock","\x74able-cell"); } ; RadUploadNameSpace.Utils.oc= function (ia,Ib){RadUploadNameSpace.Utils.lc(ia,Ib,"b\x6c\x6fck","table-r\x6f\x77"); } ; RadUploadNameSpace.Utils.lc= function (Ow,Ib,lw,iw){if (Ib){Ow.style.display=document.all?lw:iw; }else {Ow.style.display="no\x6e\x65"; }} ; RadUploadNameSpace.Utils.IsSafari= function (){return (navigator.userAgent.toLowerCase().indexOf("\x73afari")>0); } ;;