
/*
	Original:  Eric King (eric_andrew_king@hotmail.com)
	Web Site:  http://redrival.com/eak/

	Modified:  The GoHome Networks, Inc.
	Web Site:  http://www.gohome.net

	This script and many more are available free online at
	The JavaScript Source!! http://javascript.internet.com
*/

function NewWindow(mypage, myname, w, h, scroll, extrasettings) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	if (extrasettings) { winprops += ',' + extrasettings; }
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.focus(); }
	return false;
}

function NewWindowFull(mypage, myname, w, h, scroll, resizable, extrasettings) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable
	if (extrasettings) { winprops += ',' + extrasettings; }
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.focus(); }
	return false;
}
