/* Array of windows to allow closing of all popups */

openWins = new Array();
curWin = 0;

function doPopUpFull(theURL, theWidth, theHeight, windowName ) {
	openWins[curWin] = window.open(theURL, windowName,
		'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,' 
		+ 'width=' + theWidth + ',height=' + theHeight );

	openWins[curWin++].focus();
}

function doPopupName(theURL, windowName )	{
	doPopUpFull( theURL, 625, 400, windowName );
}

function doBigPopup(theURL, windowName )	{
	doPopUpFull( theURL, 800, 600, windowName );
}

function doPopup(theURL)	{
	doPopUpFull( theURL, 625, 400, 'PopUpWindow' );
}

function doSmallPopup(theURL)	{
	doPopUpFull( theURL, 320, 240, 'PopUpWindow' );
}

function doMediumPopup(theURL)	{
	doPopUpFull( theURL, 400, 240, 'PopUpWindow' );
}

function closePopUps() {
	for(i=0; i < openWins.length; i++) {
		if (openWins[i] && !openWins[i].closed) {
			openWins[i].close();
		}
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}				  