Type.registerNamespace("Telerik.Web.UI"); Type.registerNamespace("Telerik.Web.UI.WindowManager"); $telerik.toWindowManager=function(a){return a; }; $telerik.findWindowManager=$find; function GetRadWindowManager(){return Telerik.Web.UI.WindowManager.Manager; }window.radalert=function(c,b,d,e,f){var a=GetRadWindowManager(); return a.radalert(c,b,d,e,f); }; window.radconfirm=function(d,g,b,e,c,f){var a=GetRadWindowManager(); return a.radconfirm(d,g,b,e,c,f); }; window.radprompt=function(d,h,b,e,c,f,g){var a=GetRadWindowManager(); return a.radprompt(d,h,b,e,c,f,g); }; window.radopen=function(b,a){var c=GetRadWindowManager(); return c.open(b,a); }; window.radopenWithContainer=function(a,c){var d=GetRadWindowManager(); var b=$get(a); if(!b){radalert("Content element with such ClientID not found!
Make sure you have provided a correct ClientID!"); return; }return d.open(null,c,b); }; Telerik.Web.UI.RadWindowManager=function(a){Telerik.Web.UI.RadWindowManager.initializeBase(this,[a]); this._windowIDs=[]; this._windows=[]; this._preserveClientState=false; this.Open=this.open; this.GetWindowByName=this.getWindowByName; this.GetWindowById=this.getWindowById; this.GetActiveWindow=this.getActiveWindow; this.GetWindowObjects=this.get_windows; this.GetWindows=this.get_windows; this.Cascade=this.cascade; this.Tile=this.tile; this.RestoreAll=this.restoreAll; this.MaximizeAll=this.maximizeAll; this.MinimizeAll=this.minimizeAll; this.ShowAll=this.showAll; this.CloseAll=this.closeAll; this.CloseActiveWindow=this.closeActiveWindow; this.MinimizeActiveWindow=this.minimizeActiveWindow; this.RestoreActiveWindow=this.restoreActiveWindow; }; Telerik.Web.UI.RadWindowManager.prototype={get_zIndex:function(){return Telerik.Web.UI.RadWindowUtils._zIndex; },set_zIndex:function(a){var b=parseInt(a); if(isNaN(a)){return; }Telerik.Web.UI.RadWindowUtils._zIndex=a; },initialize:function(a){try{var c=this.get_element().style.zIndex; if(c){this.set_zIndex(c); }}catch(b){}this._initialize(); this._registerAsPageManager(); if(this.get_preserveClientState()){this.restoreState(); }},dispose:function(){var a=this.get_preserveClientState(); if(a){this.saveState(); }this._disposeWindows(); this._windows=null; Telerik.Web.UI.RadWindowManager.callBaseMethod(this,"dispose"); },open:function(b,c,a){var e=this.getWindowByName(c); if(!e){if(!c){c=this.get_id()+this._getUniqueId(); }e=this._createWindow(c,a); var d=this.get_element().className; if(d){e.set_cssClass(d.replace(/^ /,"")); }}else{if(a&&this.get_navigateUrl()){e._dockMode=false; }}if(b&&!e.get_reloadOnShow()&&e._iframe&&e._iframe.src!=b){e.setUrl(b); }else{if(b){e._navigateUrl=b; }}e.show(); return e; },radalert:function(b,a,d,e,f){var c=this._getStandardPopup("alert",b); if(typeof(e)!="undefined"){c.set_title(e); }c.setSize(a?a:280,d?d:200); c.set_clientCallBackFunction(function(g,h){if(f){f(h); }}); c.center(); c.show(); return c; },radconfirm:function(c,g,a,e,b,f){var d=this._getStandardPopup("confirm",c); if(typeof(f)!="undefined"){d.set_title(f); }d.setSize(a?a:280,e?e:200); d.set_clientCallBackFunction(function(h,j){if(g){g(j); }}); d.center(); d.show(); return d; },radprompt:function(c,j,a,e,b,g,h){var d=this._getStandardPopup("prompt",c,h); if(typeof(g)!="undefined"){d.set_title(g); }d.setSize(a?a:280,e?e:200); d.set_clientCallBackFunction(function(k,l){if(j){j(l); }}); d.center(); d.show(); if(h&&$telerik.isIE){var f=d.get_popupElement().getElementsByTagName("INPUT")[0]; if(f){f.value=h; }}return d; },getActiveWindow:function(){return Telerik.Web.UI.RadWindowController.get_activeWindow(); },getWindowById:function(c){var b=this.get_windows(); for(var a=0; a1){if("true"==e[0]&&!g.isVisible()){g.show(); }window.setTimeout(function(){if(parseInt(e[1])>0){g.set_width(e[1]); }if(parseInt(e[2])>0){g.set_height(e[2]); }if("true"==e[0]){g.moveTo(parseInt(e[3]),parseInt(e[4])); }if("true"==e[5]){g.minimize(); }},1); }}var b=this.get_windows(); for(i=0; i1){b=e[0]; g=e[1].substr(e[1].indexOf("#")+1); }else{g=d; }}var a=new Date(); a.setFullYear(a.getFullYear()+10); document.cookie="RadWindowCookie="+(b+c+"-"+f+"#"+g)+";path=/;expires="+a.toUTCString()+";"; },_getRadWindowCookie:function(c){var e=this._getOnlyCookie(); if(!e){return; }var d=null; c="["+c+"]"; var a=e.indexOf(c); if(a>=0){var b=a+c.length+1; d=e.substring(b,e.indexOf("#",b)); }return d; },cascade:function(){var b=0; var c=0; var f=this._getWindowsSortedByZindex(); for(var e=0; e6){break; }}g=k; e=Math.ceil(l/g); }var a=$telerik.getClientBounds(); var b=Math.floor(a.width/e); var n=Math.floor(a.height/g); var f=document.documentElement.scrollLeft||document.body.scrollLeft; var d=document.documentElement.scrollTop||document.body.scrollTop; var c=0; for(var k=0; ke){d+=n; f=document.documentElement.scrollLeft||document.body.scrollLeft; }j.restore(); j.moveTo(f,d); j.setSize(b,n); f+=b; }}},closeActiveWindow:function(){this._executeActiveWindow("close"); },minimizeActiveWindow:function(){this._executeActiveWindow("minimize"); },restoreActiveWindow:function(){this._executeActiveWindow("restore"); },closeAll:function(){this._executeAll("close"); },showAll:function(){this._executeAll("show"); },minimizeAll:function(){this._executeAll("minimize"); },maximizeAll:function(){this._executeAll("maximize"); },restoreAll:function(){this._executeAll("restore"); },_getWindowsSortedByZindex:function(){var a=this._windows.concat([]); var b=function(c,d){var e=c.get_zindex(); var f=d.get_zindex(); if(e==f){return 0; }return(e