
/* Code to control the html drop down menu */

function gotoSelectedLink(pagename)
	{
	// checks if the value passed is nopage(number)
	// because Firefox defaults back to the wrong selected value
	// if the value attributes are the same
	
	if (pagename.substr(0,6) != 'nopage')
		{
			if (pagename.indexOf("?target=new")!=-1)
				{
				// If the link contains '?target=new', open it in a new window...
				window.open(pagename)
				}
			else
				{
				// ...otherwise open the link in the existing window
				document.location.assign(pagename)	
				}	
		}		
	}