

/* This is used to trigger popup windows. Here's the HTML syntax for this:
	<a href="url-here.html" onclick="return popupWindow(this.href);">Link text</a>  */

function popupWindow(theURL)
{
	var newWindow = window.open(theURL,'_blank','width=600,height=650,scrollbars=1,resizable=1,status=1');
	if(newWindow)
	{
		newWindow.focus();
		return false; // cancel link
	}
	else
	{
		return true; // follow link as normal
	}
}

/* This is used on the search results page to go to URLs without a submit button */
function gotoURL(selectElement)
{
	var URL = selectElement.options[selectElement.selectedIndex].value;
	window.location.href = URL;
}