function newWindow(URL, target, size)
{
	var xSize;
	var ySize;
	var props;
	
	if (size == "0.75" )
	{
		xSize = 700;
		ySize = 600;	
		props = "width="+xSize + ",height="+ySize + ",toolbar,location,directories,resizable,status,menubar,scrollbars";
	}
	else
	{
		xSize = screen.width * size;
		ySize = screen.height * size;
		props = "width="+xSize + ",height="+ySize + ",toolbar,location,directories,resizable,status,menubar,scrollbars";
	}	
	newwindow=window.open(URL, target, props);
	if (window.focus) {newwindow.focus()}
}

function showPopup(URL,title)
{
	newwindow=window.open(URL,title,"toolbar=no,location=no,directories=no,resizable=yes,status=no,menubar=no,scrollbars=yes,width=660,height=520");
	if (window.focus) {newwindow.focus()}
}

function hideRelatedNoteTitle(noteID) {
	var relatedNotePopupDiv = document.getElementById('relatednote');
	relatedNotePopupDiv.style.display = "none";
}

function popupRelatedNoteTitle(noteID) {
	var relatedNoteImage = document.getElementById('note' + noteID);
	var relatedNoteImageFromTopStyle = relatedNoteImage.style.top; // includes the 'px' suffix
	var relatedNoteImageFromTop = parseInt(relatedNoteImageFromTopStyle);
	var relatedNotePopupDiv = document.getElementById('relatednote');
	var featureNoteTitle = featureNoteTitles[noteID];
	var textNode = relatedNotePopupDiv.firstChild;
	textNode.data = featureNoteTitle;
	var fromTopCoord = relatedNoteImageFromTop;
	// the name should be 10 pixels below the dot, or 25 pixels (15 + 10) below the top of the dot
	//var adjustedTopCoord = fromTopCoord + 15 + 10;
	var adjustedTopCoord = fromTopCoord + 10;
	relatedNotePopupDiv.style.top = adjustedTopCoord + "px";
	relatedNotePopupDiv.style.display = "";
}
