function centered(whatPrize, windowSize)  /* , windowSize */
	{
	var sw = 640, sh = 480;
	sw = screen.availWidth; sh = screen.availHeight;
	
	var popW = 545, popH = 400;
	
	var windowName="centered";
	
	// some chrome
	var otherFeatures = ",menubar=0,scrollbars=1,resizable=0,status=0,directories=0,location=0,toolbar=0";

	if (windowSize == "todo")
		 { var otherFeatures = ",menubar=1,scrollbars=1,resizable=0,status=0,directories=0,location=0,toolbar=1"; }

	// no chrome
	if (windowSize=="2") { var otherFeatures = ",menubar=0,scrollbars=0,resizable=0,status=0,directories=0,location=0,toolbar=0"; }
	
	// all chrome
	/*
	if (windowSize=="1")
		{
		popW = 700;
		popH = 460;
		otherFeatures = ",menubar=1,scrollbars=1,resizable=1,status=1,directories=1,location=1,toolbar=1";
		}
	*/
	
	var topPos = ((sh-popH)/2)-80, leftPos = ((sw-popW)/2-15);
	window.open( (whatPrize),(windowName),"width="+popW+",height="+popH+",top="+topPos+",left="+leftPos+otherFeatures);
	}

function openParent(url)
	{ window.opener.location = url; }

function closeWin()
	{ top.window.close(); }

/*
// regular pop up
<a href="#" onclick="centered(this.href); return false;" target="_blank">Link</a>

// link that closes pop up and opens new info in parent
<a href="#" onclick="openParent(this.href); closeWin(); return false;" target="_blank">Link</a>

function box(s, whichPrizeContainer)
	{ document.getElementById(whichPrizeContainer).style.visibility=s; }

*/





