﻿var currentLevelID = 0;
var nextLevelID = (parseInt(currentLevelID) + 1);
var levelQstr = "&level=" + nextLevelID;

// ShowWindow illustrates another way to get a reference to a RadWindow and set properties based on UI elements
function ShowWindow(url, width, height, levelId, isModal) {
    var manager = GetRadWindowManager();
    var window1 = manager.getWindowByName("PopUpWindowLevel" + levelId);
    window1.setUrl(url);
    window1.set_title(document.title);
    window1.setSize(width, height);
    window1.show();
    return false;
}

function ShowAlertMessage(title, msg, width, height) {
    //window.radopen('http://www.google.co.in', 'PopUpWindowLevel1');
    //alert(msg);
    radalert(msg, width, height, title);
    return false;
}
