// JavaScript Document

function makeNewWindow(url,width,height, scrollbars) 
{
	var var1
	if (scrollbars==true)
	{
		var1="yes"
	}
	else
	{
		var1="no"
	}
	var windowOpened
	var newWindow
	var w = screen.width; // Get the width of the screen
    var h = screen.height; // Get the height of the screen
    var left = (w - width)/2;
    var top = (h - height)/2;
	if (left<10) left = 10;
	if (top<10) top = 10;
	var high = height + 0 // customizable
	var wide = width + 0  // customizable
	if (windowOpened) 
	{
		newWindow.close();
	}
	newWindow=window.open(url, "newwin",
        "toolbar=no,resizable=yes,scrollbars="+var1+",menubar=no,left = "+left+",top = "+top+",width="+wide+",height="+high);
	windowOpened=true;
}
