function DoPopup(URL, Width, Height, Resizable, Scrollbars, Toolbar, Location, Status, Menubar)
{
    /*
    Width=Use this to define the width of the new window.
    Height=Use this to define the height of the new window.
    Resizable=yes or no; Use this to control whether or not you want the user to be able to resize the window.
    Scrollbars=yes or no; This lets you decide whether or not to have scrollbars on the window.
    Toolbar=yes or no; Whether or not the new window should have the browser navigation bar at the top (The back, foward, stop buttons..etc.).
    Location=yes or no; Whether or not you wish to show the location box with the current url (The place to type http://address).
    Status=yes or no; Whether or not to show the window status bar at the bottom of the window.
    Menubar=yes or no; Whether or not to show the menus at the top of the window (File, Edit, etc...).
    */

    var windowprops='width=' + Width + ',height=' + Height + ',resizable=' + Resizable + ',scrollbars=' + Scrollbars + ',toolbar=' + Toolbar + ',location=' + Location + ',status=' + Status + ',menubar=' + Menubar;
    var new_window = window.open(URL,'NewWindow',windowprops);

    var xPos = (screen.availWidth-parseInt(Width)) * 0.50;
    var yPos = (screen.availHeight-parseInt(Height)) * 0.25;
    new_window.moveTo(xPos,yPos);
    new_window.focus();
}

function closeWindow() {
	window.opener.focus();
	window.close();
}