function expandingWindow(website)
{ 	var heightspeed = 15;
	var widthspeed  = 15;
	var leftdist    = 150;
	var topdist     = 50;

	if (document.all)
	{
		var winwidth =  600;
		var winheight = 600;
		var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes");
		for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
			{
			sizer.resizeTo("1", sizeheight);
			}
		for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
			{
			sizer.resizeTo(sizewidth, sizeheight);
			}
			sizer.location = website;
	}
	else
	   fixWindow(website, '600','600','yes')
}


function fixWindow(website, 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'
	win = window.open(website, this.href, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


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'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function SplitWindow(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 pdfWindow(website, w, h, scroll)
{ 	var winl = (screen.width - w);
	var wint = (screen.height - h);
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(website, this.href, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
