// (c) 2004, taker (http://www.taker.ru)

function newWindow(url, width, height, windowName, scroll) {
	windowName = (windowName) ? windowName : 'myWin';
	var myPos = (screen) ? ',left=' + parseInt((screen.width-width)/2) + ',top=' + parseInt((screen.height-height)/2) : '';
	var myWin = window.open(url, 'myWin', 'width=' + width + ',height=' + height + ',menubar=0,location=0,resizable=0,scrollbars,toolbar=0' + myPos);
	myWin.focus();
	return myWin;
}

