function openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// This function opens a new window with a 'virtual' page (ie. one with no URL).
function openGlossary(entryID) {
	var fileName = "http://www.matter.org.uk/glossary/detail.asp?dbid=" + entryID;
	MatterGlossaryWindow = window.open(fileName, "", "location=no,status=no,toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=640,height=480");	
	MatterGlossaryWindow.focus();
}

// Opens a popup window in the centre of the screen
// Author: Thobias Sjokvist
// Please email any changes made to this function to me
function openPopupWindow(url, w, h, windowname)
{
	// add a bit of border
	w += 32;
	h += 64;
	// calculate the x and y position for centering the window
	xpos = screen.width/2-w/2;
	ypos = screen.height/2-h/2;
	// check if 'windowname' has been defined, otherwise give the popup window a generic name
	var popup = new String("popup");
	if (windowname != "") {
		popup = String(windowname);
	}
	var win = window.open(url, popup, 'width=' + w + ', height=' + h + ', ' +
		'location=no, menubar=no, titlebar=no, status=no, ' +
		'status=no, toolbar=no, scrollbars=yes, resizable=yes');
	win.resizeTo(w, h);
	win.moveTo(xpos,ypos);
	if (window.focus) {win.focus()};
}