(function(){ RADAJAXNAMESPACEVERSION=31; if(typeof (window.RadAjaxNamespace)=="undefined"||typeof (window.RadAjaxNamespace.Version)=="undefined"||window.RadAjaxNamespace.Version1){ for(var i=0;i0&&_1.RequestQueue.length"); _40.contentWindow.document.close(); if(window.netscape){ _40.contentWindow.document.location.hash="#'"+new Date()+"'"; } }; _1.DecodePostData=function(_42){ if(decodeURIComponent){ return decodeURIComponent(_42); }else{ return unescape(_42); } }; _1.UniqueIDToClientID=function(_43){ return _43.replace(/\$/g,"_"); }; _1.RestorePostData=function(_44,_45){ if(_44.tagName.toLowerCase()=="select"){ for(var i=0,_47=_44.options.length;i<_47;i++){ if(_45.indexOf(_44.options[i].value)!=-1){ _44.options[i].selected=true; } } } if(_44.tagName.toLowerCase()=="input"&&(_44.type.toLowerCase()=="text"||_44.type.toLowerCase()=="hidden")){ _44.value=_45; } if(_44.tagName.toLowerCase()=="input"&&(_44.type.toLowerCase()=="checkbox"||_44.type.toLowerCase()=="radio")){ _44.checked=_45; } }; _1.AsyncRequest=function(_48,_49,_4a,e){ try{ if(!_4a){ if(e!=null){ var _4c=(e.srcElement)?e.srcElement:e.target; if(_4c&&_4c.tagName.toLowerCase()=="input"){ if(typeof (__doPostBack)!="undefined"){ __doPostBack(_48,_49); return; } } } return; } if(_48==""||_4a==""){ return; } var _4d=window[_4a]; var _4e=_1.CreateNewXmlHttpObject(); if(_4e==null){ return; } if(_1.IsInRequest){ _1.QueueRequest.apply(_1,arguments); return; } if(!RadCallbackNamespace.raiseEvent("onrequeststart")){ return; } var evt=_1.CreateClientEvent(_48,_49); if(typeof (_4d.EnableAjax)!="undefined"){ evt.EnableAjax=_4d.EnableAjax; }else{ evt.EnableAjax=true; } evt.XMLHttpRequest=_4e; if(!_1.FireEvent(_4d,"OnRequestStart",[evt])){ return; } if(!evt.EnableAjax&&typeof (__doPostBack)!="undefined"){ __doPostBack(_48,_49); return; } var _50=window.OnCallbackRequestStart(_4d,evt); if(typeof (_50)=="boolean"&&_50==false){ return; } evt=null; _1.IsInRequest=true; _1.PrepareFormForAsyncRequest(_48,_49,_4a); if(typeof (_4d.PrepareLoadingTemplate)=="function"){ _4d.PrepareLoadingTemplate(); } _1.ShowLoadingTemplate(_4a); var _51=_48.replace(/(\$|:)/g,"_"); RadAjaxNamespace.LoadingPanel.ShowLoadingPanels(_4d,_51); var _52=_1.GetPostData(_4a,e); _52+=_1.GetUrlForAsyncRequest(_4a); if(false){ if(_1.History[""]==null){ _1.HandleHistory(_4a,""); } _1.HandleHistory(_4a,_52); } _4e.open("POST",_1.UrlDecode(_4d.Url),true); try{ _4e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(!_1.IsNetscape()){ _4e.setRequestHeader("Content-Length",_52.length); } } catch(e){ } _4e.onreadystatechange=function(){ _1.HandleAsyncRequestResponse(_4a,null,_48,_49,_4e); }; _4e.send(_52); _52=null; var evt=_1.CreateClientEvent(_48,_49); _1.FireEvent(_4d,"OnRequestSent",[evt]); window.OnCallbackRequestSent(_4d,evt); _4d=null; _51=null; evt=null; } catch(e){ _1.OnError(e,_4a); } }; _1.CreateClientEvent=function(_53,_54){ var _55=_53.replace(/(\$|:)/g,"_"); var evt={EventTarget:_53,EventArgument:_54,EventTargetElement:document.getElementById(_55)}; return evt; }; _1.IncludeClientScript=function(src){ if(_1.XMLHttpRequest==null){ _1.XMLHttpRequest=(window.XMLHttpRequest)?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); } if(_1.XMLHttpRequest==null){ return; } _1.XMLHttpRequest.open("GET",src,false); _1.XMLHttpRequest.send(null); if(_1.XMLHttpRequest.status==200){ var _58=_1.XMLHttpRequest.responseText; _1.EvalScriptCode(_58); } }; _1.EvalScriptCode=function(_59){ if(_1.IsSafari()){ _59=_59.replace(/^\s*\s*$/mi,"$1"); } var _5a=document.createElement("script"); _5a.setAttribute("type","text/javascript"); if(_1.IsSafari()){ _5a.appendChild(document.createTextNode(_59)); }else{ _5a.text=_59; } var _5b=_1.GetHeadElement(); _5b.appendChild(_5a); if(_1.IsSafari()){ _5a.innerHTML=""; }else{ _5a.parentNode.removeChild(_5a); } }; _1.evaluateScriptElementCode=function(_5c){ var _5d=""; if(_1.IsSafari()){ _5d=_5c.innerHTML; }else{ _5d=_5c.text; } _1.EvalScriptCode(_5d); }; _1.ExecuteScripts=function(_5e,_5f){ try{ var _60=_5e.getElementsByTagName("script"); for(var i=0,len=_60.length;i=0;i--){ RadAjaxNamespace.DestroyElement(_60[i],_64); } } catch(e){ _1.OnError(e,_5f); } }; _1.ExecuteScriptsForDisposedIDs=function(_65,_66){ try{ if(_65==null){ return; } if(window.opera){ return; } var _67=_1.disposedIDs.length>0; var _68=_65.getElementsByTagName("script"); for(var i=0,len=_68.length;i]+>/gi,""); }; _1.GetElementByName=function(_ad,_ae){ var res=null; var _b0=_ad.getElementsByTagName("*"); var len=_b0.length; for(var i=0;i0){ var _d0=100-parseInt(_cd.LoadingTemplateTransparency); if(window.netscape&&!window.opera){ _cd.LoadingTemplate.style.MozOpacity=_d0/100; }else{ if(window.opera){ _cd.LoadingTemplate.style.opacity=_d0/100; }else{ _cd.LoadingTemplate.style.filter="alpha(opacity="+_d0+");"; var _d1=_cd.LoadingTemplate.getElementsByTagName("img"); for(var i=0;i<_d1.length;i++){ _d1[i].style.filter=""; } } } }else{ if(navigator.userAgent.toLowerCase().indexOf("msie 6.0")!=-1&&!window.opera){ var _d3=_ce.getElementsByTagName("select"); for(var i=0;i<_d3.length;i++){ _d3[i].style.visibility="hidden"; } } _ce.style.visibility="hidden"; } _cd.LoadingTemplate.style.display=""; } }; _1.HideLoadingTemplate=function(_d4){ var _d5=window[_d4]; if(_d5==null){ return; } var _d6=_d5.LoadingTemplate; if(_d6!=null){ if(_d6.parentNode!=null){ RadAjaxNamespace.DestroyElement(_d6); } _d5.LoadingTemplate=null; } }; _1.InitializeControlsToUpdate=function(_d7,_d8){ var _d9=window[_d7]; var _da=_d8.responseText; try{ eval(_da.substring(_da.indexOf("/*_telerik_ajaxScript_*/"),_da.lastIndexOf("/*_telerik_ajaxScript_*/"))); } catch(e){ this.OnError(e); } if(typeof (_d9.ControlsToUpdate)=="undefined"){ _d9.ControlsToUpdate=[_d7]; } }; _1.FindOldControl=function(_db,_dc){ var _dd=document.getElementById(_db+"_wrapper"); if(_dd==null){ if(_1.IsSafari()){ _dd=_1.GetElementByID(_1.GetForm(_dc),_db); }else{ _dd=document.getElementById(_db); } } var _de=_1.FixCheckboxRadio(_dd); if(typeof (_de)!="undefined"){ _dd=_de; } return _dd; }; _1.FindNewControl=function(_df,_e0,_e1){ _e1=_e1||"*"; var _e2=_e0.getElementsByTagName("div"); for(var i=0,len=_e2.length;i=0;j--){ _1.disposedIDs[_1.disposedIDs.length]=_fa.id; _fb[j].dispose(); } var _fd=_fa.childNodes; for(var i=_fd.length-1;i>=0;i--){ var _ff=_fd[i]; if(_ff.nodeType===1){ if(_ff.dispose&&typeof (_ff.dispose)==="function"){ _ff.dispose(); }else{ if(_ff.control&&typeof (_ff.control.dispose)==="function"){ _1.disposedIDs[_1.disposedIDs.length]=_ff.id; _ff.control.dispose(); } } var _fb=Sys.UI.Behavior.getBehaviors(_ff); for(var j=_fb.length-1;j>=0;j--){ _1.disposedIDs[_1.disposedIDs.length]=_ff.id; _fb[j].dispose(); } _1.destroyTree(_ff); } } } }; _1.FireOnResponseReceived=function(_100,_101,_102,_103){ var evt=_1.CreateClientEvent(_101,_102); evt.ResponseText=_103; if(!_1.FireEvent(_100,"OnResponseReceived",[evt])){ return; } var _105=window.OnCallbackResponseReceived(_100,evt); if(typeof (_105)=="boolean"&&_105==false){ return; } evt=null; }; _1.FireOnResponseEnd=function(_106,_107,_108){ var evt=_1.CreateClientEvent(_107,_108); _1.FireEvent(_106,"OnResponseEnd",[evt]); window.OnCallbackResponseEnd(_106,evt); RadCallbackNamespace.raiseEvent("onresponseend"); evt=null; }; _1.CreateHtmlContainer=function(){ var _10a=document.createElement("div"); _10a.id="RadAjaxHtmlContainer"; _10a.style.display="none"; document.body.appendChild(_10a); return _10a; }; _1.CreateHtmlContainer=function(name){ var _10c=document.getElementById("htmlUpdateContainer_"+name); if(_10c!=null){ return _10c; } var _10d=document.getElementById("htmlUpdateContainer"); if(_10d==null){ _10d=document.createElement("div"); _10d.id="htmlUpdateContainer"; _10d.style.display="none"; if(_1.IsSafari()){ _10d=document.forms[0].appendChild(_10d); }else{ _10d=document.body.appendChild(_10d); } } _10c=document.createElement("div"); _10c.id="htmlUpdateContainer_"+name; _10c.style.display="none"; _10c=_10d.appendChild(_10c); _10d=null; return _10c; }; _1.UpdateHeader=function(_10e,_10f){ var _110=_1.GetHeadElement(); if(_110!=null&&_10f!=""){ var _111=_1.GetTags(_10f,"style"); _1.ApplyStyles(_111); _1.ApplyStyleFiles(_10f); _1.UpdateTitle(_10f); } }; _1.GetHeadHtml=function(_112){ var _113=/\]*\>((.|\n|\r)*?)\<\/head\>/i; var _114=_112.match(_113); if(_114!=null&&_114.length>2){ var _115=_114[1]; return _115; }else{ return ""; } }; _1.UpdateTitle=function(_116){ var _117=_1.GetTag(_116,"title"); if(_117.index!=-1){ var _118=_117.inner.replace(/^\s*(.*?)\s*$/mgi,"$1"); if(_118!=document.title){ document.title=_118; } } }; _1.GetHeadElement=function(){ var _119=document.getElementsByTagName("head"); if(_119.length>0){ return _119[0]; } var head=document.createElement("head"); document.documentElement.appendChild(head); return head; }; _1.ApplyStyleFiles=function(_11b){ var _11c=_1.GetLinkHrefs(_11b); var _11d=""; var head=_1.GetHeadElement(); var _11f=head.getElementsByTagName("link"); for(var i=0;i<_11f.length;i++){ _11d+="\n"+_11f[i].getAttribute("href"); } for(var i=0;i<_11c.length;i++){ var href=_11c[i]; if(href.media&&href.media.toString().toLowerCase()=="print"){ continue; } if(_11d.indexOf(href)>=0){ continue; } href=href.replace(/&amp;t/g,"&t"); if(_11d.indexOf(href)>=0){ continue; } var link=document.createElement("link"); link.setAttribute("rel","stylesheet"); link.setAttribute("href",_11c[i]); head.appendChild(link); } }; _1.ApplyStyles=function(_123){ if(_1.AppliedStyleSheets==null){ _1.AppliedStyleSheets={}; } if(document.createStyleSheet!=null){ for(var i=0;i<_123.length;i++){ var _125=_123[i].inner; var _126=_1.GetStringHashCode(_125); if(_1.AppliedStyleSheets[_126]!=null){ continue; } _1.AppliedStyleSheets[_126]=true; var _127=null; try{ _127=document.createStyleSheet(); } catch(e){ } if(_127==null){ _127=document.createElement("style"); } _127.cssText=_125; } }else{ var _128=null; if(document.styleSheets.length==0){ css=document.createElement("style"); css.media="all"; css.type="text/css"; var _129=_1.GetHeadElement(); _129.appendChild(css); _128=css; } if(document.styleSheets[0]){ _128=document.styleSheets[0]; } for(var j=0;j<_123.length;j++){ var _125=_123[j].inner; var _126=_1.GetStringHashCode(_125); if(_1.AppliedStyleSheets[_126]!=null){ continue; } _1.AppliedStyleSheets[_126]=true; var _12b=_125.split("}"); for(var i=0;i<_12b.length;i++){ if(_12b[i].replace(/\s*/,"")==""){ continue; } _128.insertRule(_12b[i]+"}",i+1); } } } }; _1.GetStringHashCode=function(_12c){ var h=0; if(_12c){ for(var j=_12c.length-1;j>=0;j--){ h^=_1.ANTABLE.indexOf(_12c.charAt(j))+1; for(var i=0;i<3;i++){ var m=(h=h<<7|h>>>25)&150994944; h^=m?(m==150994944?1:0):1; } } } return h; }; _1.ANTABLE="w5Q2KkFts3deLIPg8Nynu_JAUBZ9YxmH1XW47oDpa6lcjMRfi0CrhbGSOTvqzEV"; _1.GetLinkHrefs=function(_131){ var html=_131; var _133=[]; while(1){ var _134=html.match(/]*href=('|")?([^'"]*)('|")?([^>]*)>.*?(<\/link>)?/i); if(_134==null||_134.length<3){ break; } var _135=_134[2]; _133[_133.length]=_135; var _136=_134.index+_135.length; if(_136==0){ break; } html=html.substring(_136,html.length); } return _133; }; _1.GetTags=function(_137,_138){ var _139=[]; var html=_137; while(1){ var _13b=_1.GetTag(html,_138); if(_13b.index==-1){ break; } _139[_139.length]=_13b; var _13c=_13b.index+_13b.outer.length; html=html.substring(_13c,html.length); } return _139; }; _1.GetTag=function(_13d,_13e,_13f){ if(typeof (_13f)=="undefined"){ _13f=""; } var _140=new RegExp("<"+_13e+"[^>]*>((.|\n|\r)*?)","i"); var _141=_13d.match(_140); if(_141!=null&&_141.length>=2){ return {outer:_141[0],inner:_141[1],index:_141.index}; }else{ return {outer:_13f,inner:_13f,index:-1}; } }; _1.EmptyFunction=function(){ }; _1.HandleAsyncRequestResponse=function(_142,_143,_144,_145,_146){ try{ RadAjaxNamespace.IsAsyncResponse=true; var _147=window[_142]; if(_147==null){ return; } if(_146==null||_146.readyState!=4){ return; } _1.IsInRequest=false; _1.Check404Status(_146); if(!_1.HandleAsyncRedirect(_142,_146)){ return; } if(_146.responseText==""){ return; } if(!_1.CheckContentType(_142,_146)){ return; } _1.HideLoadingTemplate(_142); _1.InitializeControlsToUpdate(_142,_146); _1.FireOnResponseReceived(_147,_144,_145,_146.responseText); _1.UpdateControlsHtml(_147,_146,_142); _1.HandleResponseScripts(_146); if(window.__theFormPostData){ window.__theFormPostData=""; } if(window.__theFormPostCollection){ window.__theFormPostCollection=[]; } if(window.WebForm_InitCallback){ window.WebForm_InitCallback(); } if(_146!=null){ _146.onreadystatechange=_1.EmptyFunction; } _1.FireOnResponseEnd(_147,_144,_145); if(_1.IsSafari()){ window.setTimeout(function(){ var h=document.body.offsetHeight; var w=document.body.offsetWidth; },0); } if(_1.RequestQueue.length>0){ asyncRequestArgs=_1.RequestQueue.shift(); window.setTimeout(function(){ _1.AsyncRequest.apply(_1,asyncRequestArgs); },0); } _147.Dispose(); } catch(e){ _1.OnError(e,_142); } }; _1.UpdateControlsHtml=function(_14a,_14b,_14c){ var _14d=_14a.ControlsToUpdate; if(_14d.length==0){ return; } var _14e=_1.GetOldControlsUpdateSettings(_14d,_14c); var _14f=_14b.responseText; var _150=_1.GetHeadHtml(_14f); try{ if(_14a.EnablePageHeadUpdate!=false){ _1.UpdateHeader(_14c,_150); } } catch(e){ } _14f=_14f.replace(_150,""); var _151=_1.CreateHtmlContainer(_14a.ControlID); _14f=_1.RemoveServerForm(_14f); _151.innerHTML=_14f; if(typeof (_14a.PostbackControlIDServer)!="undefined"){ var _152=document.getElementById(_14a.PostbackControlIDServer); if(_152!=null){ var _153=_1.FindNewControl(_14a.PostbackControlIDServer,_151,_152.tagName); if(!_153){ RadAjaxNamespace.LoadingPanel.HideLoadingPanels(_14a); _14a.PreventHideLoadingPanels=true; } } } var _154=navigator.userAgent; if(_154.indexOf("Netscape")<0){ _151.parentNode.removeChild(_151); } var _155=true; for(var i=0,len=_14d.length;i-1){ _151.parentNode.removeChild(_151); } _1.UpdateHiddenInputs(_151.getElementsByTagName("input"),_14c); if(_14a.OnRequestEndInternal){ _14a.OnRequestEndInternal(); } _1.ResetValidators(); if(_14a.EnableOutsideScripts){ _1.ExecuteScripts(_151,_14c); }else{ if(_1.disposedIDs.length>0){ _1.ExecuteScriptsForDisposedIDs(_151,_14c); } if(_155){ _1.ExecuteValidatorsScripts(_151,_14c); } } RadAjaxNamespace.LoadingPanel.HideLoadingPanels(_14a); RadAjaxNamespace.DestroyElement(_151); }; _1.RemoveServerForm=function(_15c){ _15c=_15c.replace(/]*)id=('|")([^'"]*)('|")([^>]*)>/mgi,""); _15c=_15c.replace(/<\/form>/mgi,""); return _15c; }; _1.GetReplacedControlTagNameSearchHint=function(_15d){ var _15e=_15d.tagName; if(_15e!=null){ if(_15e.toLowerCase()=="span"||_15e.toLowerCase()=="input"){ _15e="*"; } if(_15d.title=="RADAJAX_HIDDENCONTROL"){ _15e="*"; } } return _15e; }; _1.HandleResponseScripts=function(_15f){ var _160=_15f.responseText; if(_160.indexOf("_RadAjaxResponseScript__RadAjaxResponseScript")!=-1){ return; } var m=_160.match(/_RadAjaxResponseScript_((.|\n|\r)*?)_RadAjaxResponseScript_/); if(m&&m.length>1){ var _162=m[1]; _1.EvalScriptCode(_162); } }; RadAjaxNamespace.DestroyElement=function(_163,_164){ RadAjaxNamespace.DisposeElement(_163); if(_1.IsGecko()){ var _165=_163.parentNode; if(_165!=null){ _165.removeChild(_163); } } try{ _164=_164||RadAjaxNamespace.GetLeakBin(); _164.appendChild(_163); _164.innerHTML=""; } catch(error){ } }; RadAjaxNamespace.GetLeakBin=function(){ var _166=document.getElementById("IELeakGarbageBin"); if(!_166){ _166=document.createElement("DIV"); _166.id="IELeakGarbageBin"; _166.style.display="none"; document.body.appendChild(_166); } return _166; }; RadAjaxNamespace.DisposeElement=function(_167){ }; RadAjaxNamespace.OnError=function(e,_169){ throw (e); }; _1.HandleAsyncRedirect=function(_16a,_16b){ try{ var _16c=window[_16a]; var _16d=_1.GetResponseHeader(_16b,"Location"); if(_16d&&_16d!=""){ var tmp=document.createElement("a"); tmp.style.display="none"; tmp.href=_16d; document.body.appendChild(tmp); if(tmp.click){ try{ tmp.click(); } catch(e){ } }else{ window.location.href=_16d; } document.body.removeChild(tmp); this.LoadingPanel.HideLoadingPanels(window[_16a]); return false; }else{ return true; } } catch(e){ _1.OnError(e); } return true; }; _1.GetResponseHeader=function(_16f,_170){ try{ return _16f.getResponseHeader(_170); } catch(e){ return null; } }; _1.GetAllResponseHeaders=function(_171){ try{ return _171.getAllResponseHeaders(); } catch(e){ return null; } }; _1.CheckContentType=function(_172,_173){ try{ var _174=window[_172]; var _175=_1.GetResponseHeader(_173,"content-type"); if(_175==null&&_173.status==null){ var _176=new Error("Unknown server error"); throw (_176); return false; } var _177; if(!window.opera){ _177="text/javascript"; }else{ _177="text/xml"; } if(_175.indexOf(_177)==-1&&_173.status==200){ var e=new Error("Unexpected ajax response was received from the server.\n"+"This may be caused by one of the following reasons:\n\n "+"- Server.Transfer.\n "+"- Custom http handler.\n"+"- Incorrect loading of an \"Ajaxified\" user control.\n\n"+"Verify that you don't get a server-side exception or any other undesired behavior, by setting the EnableAJAX property to false."); throw (e); return false; }else{ if(_173.status!=200){ var evt={Status:_173.status,ResponseText:_173.responseText,ResponseHeaders:_1.GetAllResponseHeaders(_173)}; if(!_1.FireEvent(_174,"OnRequestError",[evt])){ return false; } document.write(_173.responseText); return false; } } return true; } catch(e){ _1.OnError(e); } }; _1.IsSafari=function(){ return (navigator.userAgent.match(/safari/i)!=null); }; _1.IsNetscape=function(){ return (navigator.userAgent.match(/netscape/i)!=null); }; _1.IsGecko=function(){ return (window.netscape&&!window.opera); }; _1.IsOpera=function(){ return window.opera!=null; }; _1.UpdateHiddenInputs=function(_17a,_17b){ try{ var _17c=window[_17b]; var form=_1.GetForm(_17b); if(_1.IsSafari()){ } for(var i=0,len=_17a.length;i0); if(_18c.validation){ if(typeof (Page_ClientValidate)=="function"){ _18f=Page_ClientValidate(_18c.validationGroup); window.setTimeout(function(){ if(typeof (ValidatorOnSubmit)=="function"){ ValidatorOnSubmit(); } },0); } } if(_18f){ if((typeof (_18c.actionUrl)!="undefined")&&_190){ theForm.action=_18c.actionUrl; } if(_18c.trackFocus){ var _191=theForm.elements["__LASTFOCUS"]; if((typeof (_191)!="undefined")&&(_191!=null)){ if(typeof (document.activeElement)=="undefined"){ _191.value=_18c.eventTarget; }else{ var _192=document.activeElement; if((typeof (_192)!="undefined")&&(_192!=null)){ if((typeof (_192.id)!="undefined")&&(_192.id!=null)&&(_192.id.length>0)){ _191.value=_192.id; }else{ if(typeof (_192.name)!="undefined"){ _191.value=_192.name; } } } } } } } if(_190){ __doPostBack(_18c.eventTarget,_18c.eventArgument); return; } if(_18f){ _1.AsyncRequest(_18c.eventTarget,_18c.eventArgument,_18d,e); } }; _1.ClientValidate=function(_193,e,_195){ var _196=true; if(typeof (Page_ClientValidate)=="function"){ _196=Page_ClientValidate(); window.setTimeout(function(){ if(typeof (ValidatorOnSubmit)=="function"){ ValidatorOnSubmit(); } },0); } if(_196){ var _197=window[_195]; if(_197!=null&&typeof (_197.AsyncRequest)=="function"){ _197.AsyncRequest(_193.name,"",e); } } }; _1.FireEvent=function(_198,_199,_19a){ try{ var _19b=true; if(typeof (_198[_199])=="string"){ _19b=eval(_198[_199]); }else{ if(typeof (_198[_199])=="function"){ if(_19a){ if(typeof (_19a.unshift)!="undefined"){ _19a.unshift(_198); _19b=_198[_199].apply(_198,_19a); }else{ _19b=_198[_199].apply(_198,[_19a]); } }else{ _19b=_198[_199](); } } } if(typeof (_19b)!="boolean"){ return true; }else{ return _19b; } } catch(error){ this.OnError(error); } }; RadAjaxNamespace.AddPanel=function(_19c){ var _19d=new RadAjaxNamespace.LoadingPanel(_19c); this.LoadingPanels[_19d.ClientID]=_19d; }; RadAjaxNamespace.LoadingPanel=function(_19e){ for(var prop in _19e){ this[prop]=_19e[prop]; } }; _1.IsChildOf=function(node,_1a1){ var _1a2=document.getElementById(node); if(_1a2){ while(_1a2.parentNode){ if(_1a2.parentNode.id==_1a1||_1a2.parentNode.id==_1a1+"_wrapper"){ return true; } _1a2=_1a2.parentNode; } }else{ if(node.indexOf(_1a1)==0){ return true; } } return false; }; _1.DisposeDisplayedLoadingPanels=function(){ _1.DisplayedLoadingPanels=null; }; if(_1.DisplayedLoadingPanels==null){ _1.DisplayedLoadingPanels=[]; _1.EventManager.Add(window,"unload",_1.DisposeDisplayedLoadingPanels); } RadAjaxNamespace.LoadingPanel.ShowLoadingPanels=function(_1a3,_1a4){ if(_1a3.GetAjaxSetting==null||_1a3.GetParentAjaxSetting==null){ return; } var _1a5=_1a3.GetAjaxSetting(_1a4); if(_1a5==null){ _1a5=_1a3.GetParentAjaxSetting(_1a4); } if(_1a5){ for(var j=0;j<_1a5.UpdatedControls.length;j++){ var _1a7=_1a5.UpdatedControls[j]; var _1a8=null; if((typeof (_1a7.PanelID)!="undefined")&&(_1a7.PanelID!="")){ _1a8=RadAjaxNamespace.LoadingPanels[_1a7.PanelID]; }else{ if(typeof (_1a3.DefaultLoadingPanelID)!="undefined"&&_1a3.DefaultLoadingPanelID!=""){ _1a8=RadAjaxNamespace.LoadingPanels[_1a3.DefaultLoadingPanelID]; } } if(typeof (RadAjaxPanelNamespace)!="undefined"&&_1a3.IsAjaxPanel){ if(_1a8!=null){ _1a8.Show(_1a7.ControlID); } }else{ if(_1a8!=null&&_1a7.ControlID!=_1a3.ClientID){ _1a8.Show(_1a7.ControlID); } } } } }; RadAjaxNamespace.LoadingPanel.prototype.Show=function(_1a9){ var _1aa=document.getElementById(_1a9+"_wrapper"); if((typeof (_1aa)=="undefined")||(!_1aa)){ _1aa=document.getElementById(_1a9); } var _1ab=document.getElementById(this.ClientID); if(!(_1aa&&_1ab)){ return; } var _1ac=this.InitialDelayTime; var _1ad=this; this.CloneLoadingPanel(_1ab,_1aa.id); if(_1ac){ window.setTimeout(function(){ _1ad.DisplayLoadingElement(_1aa.id); },_1ac); }else{ this.DisplayLoadingElement(_1aa.id); } }; RadAjaxNamespace.LoadingPanel.prototype.GetDisplayedElement=function(_1ae){ return _1.DisplayedLoadingPanels[this.ClientID+_1ae]; }; RadAjaxNamespace.LoadingPanel.prototype.DisplayLoadingElement=function(_1af){ loadingElement=this.GetDisplayedElement(_1af); if(loadingElement!=null){ if(loadingElement.References>0){ var _1b0=document.getElementById(_1af); if(!this.IsSticky){ var rect=_1.RadGetElementRect(_1b0); loadingElement.style.position="absolute"; loadingElement.style.width=rect.width+"px"; loadingElement.style.height=rect.height+"px"; loadingElement.style.left=rect.left+"px"; loadingElement.style.top=rect.top+"px"; loadingElement.style.textAlign="center"; loadingElement.style.zIndex=_1.LoadingPanelzIndex; var _1b2=100-parseInt(this.Transparency); if(parseInt(this.Transparency)>0){ if(loadingElement.style&&loadingElement.style.MozOpacity!=null){ loadingElement.style.MozOpacity=_1b2/100; }else{ if(loadingElement.style&&loadingElement.style.opacity!=null){ loadingElement.style.opacity=_1b2/100; }else{ if(loadingElement.style&&loadingElement.style.filter!=null){ loadingElement.style.filter="alpha(opacity="+_1b2+");"; } } } }else{ _1b0.style.visibility="hidden"; } } loadingElement.StartDisplayTime=new Date(); loadingElement.style.display=""; } } }; RadAjaxNamespace.LoadingPanel.prototype.FlashCompatibleClone=function(_1b3){ var _1b4=_1b3.cloneNode(false); _1b4.innerHTML=_1b3.innerHTML; return _1b4; }; RadAjaxNamespace.LoadingPanel.prototype.CloneLoadingPanel=function(_1b5,_1b6){ if(!_1b5){ return; } var _1b7=this.GetDisplayedElement(_1b6); if(_1b7==null){ var _1b7=this.FlashCompatibleClone(_1b5); if(!this.IsSticky){ document.body.insertBefore(_1b7,document.body.firstChild); }else{ var _1b8=_1b5.parentNode; var _1b9=_1.GetNodeNextSibling(_1b5); _1.InsertAtLocation(_1b7,_1b8,_1b9); } _1b7.References=0; _1b7.UpdatedElementID=_1b6; _1.DisplayedLoadingPanels[_1b5.id+_1b6]=_1b7; } _1b7.References++; return _1b7; }; RadAjaxNamespace.LoadingPanel.prototype.Hide=function(_1ba){ var _1bb=this.ClientID+_1ba; var _1bc=_1.DisplayedLoadingPanels[_1bb]; if(_1bc==null){ _1bc=_1.DisplayedLoadingPanels[_1bb+"_wrapper"]; } _1bc.References--; var _1bd=document.getElementById(_1ba); if(typeof (_1bd)!="undefined"&&(_1bd!=null)){ _1bd.style.visibility="visible"; } _1bc.style.display="none"; }; RadAjaxNamespace.LoadingPanel.HideLoadingPanels=function(_1be){ if(_1be.PreventHideLoadingPanels!=null){ return; } if(_1be.AjaxSettings==null){ return; } var _1bf=_1be.GetAjaxSetting(_1be.PostbackControlIDServer); if(_1bf==null){ _1bf=_1be.GetParentAjaxSetting(_1be.PostbackControlIDServer); } if(_1bf!=null){ for(var j=0;j<_1bf.UpdatedControls.length;j++){ var _1c1=_1bf.UpdatedControls[j]; RadAjaxNamespace.LoadingPanel.HideLoadingPanel(_1c1,_1be); } } }; RadAjaxNamespace.LoadingPanel.HideLoadingPanel=function(_1c2,_1c3){ var _1c4=RadAjaxNamespace.LoadingPanels[_1c2.PanelID]; if(_1c4==null){ _1c4=RadAjaxNamespace.LoadingPanels[_1c3.DefaultLoadingPanelID]; } if(_1c4==null){ return; } var _1c5=_1c2.ControlID; var _1c6=_1c4.GetDisplayedElement(_1c5+"_wrapper"); if((typeof (_1c6)=="undefined")||(!_1c6)){ _1c6=_1c4.GetDisplayedElement(_1c2.ControlID); }else{ _1c5=_1c2.ControlID+"_wrapper"; } var now=new Date(); if(_1c6==null){ return; } var _1c8=now-_1c6.StartDisplayTime; if(_1c4.MinDisplayTime>_1c8){ window.setTimeout(function(){ _1c4.Hide(_1c5); document.getElementById(_1c2.ControlID).visibility="visible"; },_1c4.MinDisplayTime-_1c8); }else{ _1c4.Hide(_1c5); var _1c9=document.getElementById(_1c2.ControlID); if(_1c9!=null){ _1c9.visibility="visible"; } } }; _1.RadAjaxControl=function(){ if(typeof (window.event)=="undefined"){ window.event=null; } }; _1.RadAjaxControl.prototype.GetParentAjaxSetting=function(_1ca){ if(typeof (_1ca)=="undefined"){ return null; } for(var i=this.AjaxSettings.length;i>0;i--){ if(_1.IsChildOf(_1ca,this.AjaxSettings[i-1].InitControlID)){ return this.GetAjaxSetting(this.AjaxSettings[i-1].InitControlID); } } }; _1.RadAjaxControl.prototype.GetAjaxSetting=function(_1cc){ var _1cd=0; var _1ce=null; for(_1cd=0;_1cd0){ _1ce.UpdatedControls.push(this.AjaxSettings[_1cd].UpdatedControls.shift()); } } } } return _1ce; }; _1.Rectangle=function(left,top,_1d2,_1d3){ this.left=(null!=left?left:0); this.top=(null!=top?top:0); this.width=(null!=_1d2?_1d2:0); this.height=(null!=_1d3?_1d3:0); this.right=left+_1d2; this.bottom=top+_1d3; }; _1.GetXY=function(el){ var _1d5=null; var pos=[]; var box; if(el.getBoundingClientRect){ box=el.getBoundingClientRect(); var _1d8=document.documentElement.scrollTop||document.body.scrollTop; var _1d9=document.documentElement.scrollLeft||document.body.scrollLeft; var x=box.left+_1d9-2; var y=box.top+_1d8-2; return [x,y]; }else{ if(document.getBoxObjectFor){ box=document.getBoxObjectFor(el); pos=[box.x-1,box.y-1]; }else{ pos=[el.offsetLeft,el.offsetTop]; _1d5=el.offsetParent; if(_1d5!=el){ while(_1d5){ pos[0]+=_1d5.offsetLeft; pos[1]+=_1d5.offsetTop; _1d5=_1d5.offsetParent; } } } } if(window.opera){ _1d5=el.offsetParent; while(_1d5&&_1d5.tagName.toUpperCase()!="BODY"&&_1d5.tagName.toUpperCase()!="HTML"){ pos[0]-=_1d5.scrollLeft; pos[1]-=_1d5.scrollTop; _1d5=_1d5.offsetParent; } }else{ _1d5=el.parentNode; while(_1d5&&_1d5.tagName.toUpperCase()!="BODY"&&_1d5.tagName.toUpperCase()!="HTML"){ pos[0]-=_1d5.scrollLeft; pos[1]-=_1d5.scrollTop; _1d5=_1d5.parentNode; } } return pos; }; _1.RadGetElementRect=function(_1dc){ if(!_1dc){ _1dc=this; } var _1dd=_1.GetXY(_1dc); var left=_1dd[0]; var top=_1dd[1]; var _1e0=_1dc.offsetWidth; var _1e1=_1dc.offsetHeight; return new _1.Rectangle(left,top,_1e0,_1e1); }; if(!window.RadCallbackNamespace){ window.RadCallbackNamespace={}; } if(!window.OnCallbackRequestStart){ window.OnCallbackRequestStart=function(){ }; } if(!window.OnCallbackRequestSent){ window.OnCallbackRequestSent=function(){ }; } if(!window.OnCallbackResponseReceived){ window.OnCallbackResponseReceived=function(){ }; } if(!window.OnCallbackResponseEnd){ window.OnCallbackResponseEnd=function(){ }; } if(!RadCallbackNamespace.raiseEvent){ RadCallbackNamespace.raiseEvent=function(_1e2,_1e3){ var _1e4=true; var _1e5=RadCallbackNamespace.getRadCallbackEventHandlers(_1e2); if(_1e5!=null){ for(var i=0;i<_1e5.length;i++){ var res=_1e5[i](_1e3); if(res==false){ _1e4=false; } } } return _1e4; }; } if(!RadCallbackNamespace.getRadCallbackEventHandlers){ RadCallbackNamespace.getRadCallbackEventHandlers=function(_1e8){ if(typeof (_1.callbackEventNames)=="undefined"){ return null; } for(var i=0;i<_1.callbackEventNames.length;i++){ if(_1.callbackEventNames[i].eventName==_1e8){ return _1.callbackEventNames[i].eventHandlers; } } return null; }; } if(!RadCallbackNamespace.attachEvent){ RadCallbackNamespace.attachEvent=function(_1ea,_1eb){ if(typeof (_1.callbackEventNames)=="undefined"){ _1.callbackEventNames=new Array(); } var _1ec=this.getRadCallbackEventHandlers(_1ea); if(_1ec==null){ _1.callbackEventNames[_1.callbackEventNames.length]={eventName:_1ea,eventHandlers:new Array()}; _1.callbackEventNames[_1.callbackEventNames.length-1].eventHandlers[0]=_1eb; }else{ var _1ed=this.getEventHandlerIndex(_1ec,_1eb); if(_1ed==-1){ _1ec[_1ec.length]=_1eb; } } }; } if(!RadCallbackNamespace.getEventHandlerIndex){ RadCallbackNamespace.getEventHandlerIndex=function(_1ee,_1ef){ for(var i=0;i<_1ee.length;i++){ if(_1ee[i]==_1ef){ return i; } } return -1; }; } if(!RadCallbackNamespace.detachEvent){ RadCallbackNamespace.detachEvent=function(_1f1,_1f2){ var _1f3=this.getRadCallbackEventHandlers(_1f1); if(_1f3!=null){ var _1f4=this.getEventHandlerIndex(_1f3,_1f2); if(_1f4>-1){ _1f3.splice(_1f4,1); } } }; } window["AjaxNS"]=_1; } })();