

var screenWidth = screen.width;
var screenHeight = screen.height;

function newWindow(mypage, myname, w, h, scroll, size) {
	var winl = Math.round((screenWidth-w)/2);
	var wint = Math.round((screenHeight-h)/2);
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+size;
	myWin = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion)>=4) {
		myWin.window.focus();
	}
}


