var ncWin = null;
function openNewWindow(path, width, height, resizable, dependent)
{
	var left = (screen.width) ? (screen.width - width) / 2 : 100;
	var top = (screen.height) ? (screen.height - height) / 2 : 100;
	var res = (resizable ? "yes" : "no");
	var dep = (dependent ? "yes" : "no");
	
	var settings = "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=" + res + ",dependent=" + dep;
	var now = new Date().getTime();
	ncWin = window.open(path, "popup" + now, settings);
	ncWin.focus();
}
