﻿

 function GetRadWindow()
	        {
		        var oWindow = null;
		        if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
		        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)
    				
    				
    			
		        return oWindow;
	        }

  function SizeToFit()
       {
        window.setTimeout(
            function()
            {
                var oWnd = GetRadWindow();
               // oWnd.SetWidth(document.documentElement.scrollWidth + 4);
                //oWnd.SetHeight(document.documentElement.scrollHeight + 70);
                 oWnd.SetHeight(document.documentElement.scrollHeight + 50);
            }, 50);
       }



function CloseWindow()
{
            var oWindow = GetRadWindow();			
				oWindow.Close();

}


function resizewindow(_width,_height)
{

self.resizeTo(_width,_height);
}

