
/**
Open known popup window (set name and sizes).
Window	spawnPopupWindow()
*/
function	spawnPopupWindow()
{
	spawnPopupWindowWithDetails("seafabPopup",710,660);
}

/**
Open known popup window (set name and sizes).
Window	spawnPopupWindowPortrait()
*/
function	spawnPopupWindowPortrait()
{
	spawnPopupWindowWithDetails("seafabPopup",660,710);
}



/**
Open generic popup window.
Usage <a href="../../js/?" target="windowName" onclick="spawnPopupWindowWithDetails('windowName',100,200);">link</a>
Window	spawnPopupWindowWithDetails(String windowName,int width,int height)
*/
function	spawnPopupWindowWithDetails(windowName,width,height)
{
	//close previous
	if(pagePopupWindow != null)
		pagePopupWindow.close();

	//create new
	var	newWin=window.open('',windowName,"resizable=yes,width=" + width + ",height=" + height + ",toolbar=no,scrollbars=yes,menubar=no,status=yes,location=no");
	newWin.focus();

	//remember window
	pagePopupWindow=newWin;
	return(newWin);
}

//Global note of the single window on the page
var	pagePopupWindow=null;