function NewWindow(mypage, myname, w, h, scroll) {

var winl = (screen.width - w) / 2;

var wint = (screen.height - h) / 2;

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'

win = window.open(mypage, myname, winprops)

if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}


function openCenteredWindow(url, name, w, h, Ctrl) {
	var popWin = null;

	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	Ctrl = ( typeof(Ctrl) == "undefined" ) ? "no" : Ctrl = "yes";
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+Ctrl+',resizable='+Ctrl+',menubar=no,toolbar=no,status=yes,location=no';
	if(popWin == null) popWin = window.open(url,name,settings);
	popWin.focus();
}


function talktothepresident() {
	openCenteredWindow("talktothepresident.htm","Talk",550,470,"yes");
}
