// JavaScript Document

/* RELOAD PAGE IF RESIZED (NETSCAPE 4 ONLY) */

function ResizeReloadNN4(init)
	{ 
	if (init==true) with (navigator)
		{
		if (document.layers)
			{
			pageW = innerWidth;
			pageH = innerHeight;
			onresize = ResizeReloadNN4();
			}
		}
	else if (innerWidth != pageW || innerHeight != pageH)
		{
		history.go(0);
		}
	}
	
ResizeReloadNN4(true);

/* POPUP CENTERED WINDOW */

function popup(mypage, myname, w, h, scrolli) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrolli+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
