﻿// JScript File

var address, w, h

function UseWindowManager(address, w, h)
{
    //Getting rad window manager
    var oManager = GetRadWindowManager();
    //Success. Getting existing window DialogWindow using GetWindowByName
    var oWnd = oManager.GetWindowByName("RadNewsletterWindow");
    //Success. Setting a size and a Url to the window using its client API before showing
    oWnd.SetSize(w,h);
    oWnd.SetUrl(address);
    //Success. Opening window
    oWnd.Show();
    //Success. Calling window RadWindowManager.GetActiveWindow (should return reference to current window
    var oActive = oManager.GetActiveWindow();
    //Success. Is current visible window the active one? " + (oActive != null && oActive == oWnd)
    //Success. Open a new window using RadWindowManager.Open using default settings
   
    //var oNew = oManager.Open("../TestPage/Default.html", "NewWindow");
} 
