Type.registerNamespace("Telerik.Web.UI"); Type.registerNamespace("Telerik.Web.UI.WindowManager"); function GetRadWindowManager(){return Telerik.Web.UI.WindowManager.Manager; }window.radalert=function(e,c,a,b){var d=GetRadWindowManager(); return d.radalert(e,c,a,b); }; window.radconfirm=function(g,d,c,a,f,b){var e=GetRadWindowManager(); return e.radconfirm(g,d,c,a,f,b); }; window.radprompt=function(f,c,e,d,b,a,g){var h=GetRadWindowManager(); return h.radprompt(f,c,e,d,b,a,g); }; window.radopen=function(b,a){var c=GetRadWindowManager(); return c.open(b,a); }; window.radopenWithContainer=function(c,a){var d=GetRadWindowManager(); var b=$get(c); if(!b){radalert("Content element with such ClientID not found!
Make sure you have provided a correct ClientID!"); return; }return d.open(null,a,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(b){try{var a=this.get_element().style.zIndex; if(a){this.set_zIndex(a); }}catch(c){}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(d,a,b){var c=this.getWindowByName(a); if(!c){if(!a){a=this.get_id()+this._getUniqueId(); }c=this._createWindow(a,b); }else{if(b&&this.get_navigateUrl()){c._dockMode=false; }}if(d&&!c.get_reloadOnShow()&&c._iframe&&c._iframe.src!=d){c.setUrl(d); }else{if(d){c._navigateUrl=d; }}c.show(); return c; },radalert:function(e,c,a,b){var d=this._getStandardPopup("alert",e); if(typeof(b)!="undefined"){d.set_title(b); }d.setSize(c?c:280,a?a:200); d.center(); d.show(); return d; },radconfirm:function(g,d,c,a,f,b){var e=this._getStandardPopup("confirm",g); if(typeof(b)!="undefined"){e.set_title(b); }e.setSize(c?c:280,a?a:200); e.set_clientCallBackFunction(function(h,j){if(d){d(j); }}); e.center(); e.show(); return e; },radprompt:function(h,e,g,f,c,b,j){var d=this._getStandardPopup("prompt",h,j); if(typeof(b)!="undefined"){d.set_title(b); }d.setSize(g?g:280,f?f:200); d.set_clientCallBackFunction(function(k,l){if(e){e(l); }}); d.center(); d.show(); if(j&&$telerik.isIE){var a=d.get_popupElement().getElementsByTagName("INPUT")[0]; if(a){a.value=j; }}return d; },getActiveWindow:function(){return Telerik.Web.UI.RadWindowController.get_activeWindow(); },getWindowById:function(d){var b=this.get_windows(); for(var c=0; c1){if("true"==g[0]&&!e.isVisible()){e.show(); }window.setTimeout(function(){if(parseInt(g[1])>0){e.set_width(g[1]); }if(parseInt(g[2])>0){e.set_height(g[2]); }if("true"==g[0]){e.moveTo(parseInt(g[3]),parseInt(g[4])); }if("true"==g[5]){e.minimize(); }},1); }}var a=this.get_windows(); for(i=0; i1){b=g[0]; a=g[1].substr(g[1].indexOf("#")+1); }else{a=d; }}var f=new Date(); f.setFullYear(f.getFullYear()+10); document.cookie="RadWindowCookie="+(b+e+"-"+c+"#"+a)+";path=/;expires="+f.toUTCString()+";"; },_getRadWindowCookie:function(c){var a=this._getOnlyCookie(); if(!a){return; }var b=null; c="["+c+"]"; var e=a.indexOf(c); if(e>=0){var d=e+c.length+1; b=a.substring(d,a.indexOf("#",d)); }return b; },cascade:function(){var e=0; var c=0; var a=this._getWindowsSortedByZindex(); for(var d=0; d6){break; }}n=a; g=Math.ceil(h/n); }var b=$telerik.getClientBounds(); var j=Math.floor(b.width/g); var l=Math.floor(b.height/n); var d=document.documentElement.scrollLeft||document.body.scrollLeft; var c=document.documentElement.scrollTop||document.body.scrollTop; var k=0; for(var a=0; ag){c+=l; d=document.documentElement.scrollLeft||document.body.scrollLeft; }e.restore(); e.moveTo(d,c); e.setSize(j,l); d+=j; }}},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(d,e){var f=d.get_zindex(); var c=e.get_zindex(); if(f==c){return 0; }return(f