// js lib
function openWin(id,url,width,height) {
    var width = width;
    var height = height;
    var top = 60;
    var left = (document.body.clientWidth/2) - (width/2);
    var win = new Window(id, {className: "alphacube", title: "", width:width, height:height, zIndex:1000, opacity:1, resizable: true, url: url})
	document.getElementById("demo").style.display="none";
    win.setDestroyOnClose();
	win.showCenter(true);
}

var timeout;
function hitIt() {
    Dialog.info("<br>Thank You...", {windowParameters: {className: "alphacube", width:150, height:100}, showProgress: true});
    timeout=2;
    setTimeout("infoTimeout()", 1000)
}

function infoTimeout() {
    timeout--;
    if (timeout >0) {
        //Dialog.setInfoMessage("Test of info panel, it will close <br>in " + timeout + "s ...")
        setTimeout("infoTimeout()", 1000)
    } else
        Dialog.closeInfo()
}