﻿    //This code is used to provide a reference to the radwindow "wrapper"
         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 RedirectParentPage(newUrl) {
             parent.window.document.location.href = newUrl;
            
         }
         function CloseRadWindow()
         {
          GetRadWindow().Close();
         }
         