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