function newWindowCentered(wUrl, wName, width, height, hasScroll, extraSettings)
{
	var winLeft = (screen.width - width) / 2;
	var winTop = (screen.height - height) / 2;
	var winProps = 'width='+width+',height='+height+',top='+winTop+',left='+winLeft+',scrollbars='+hasScroll+',resizable=1';
	if (extraSettings) {
		winProps += ',' + extraSettings;
	}
	var win = window.open(wUrl,wName,winProps)
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
	return false;
}
