function diagramPopup(diagramFile) {
	if (screen && (screen.width > 640)) {
		var positionCode = ",top=50,left="+(((screen.width-640) / 2)-10);
	}
	else {
		var positionCode = ""
	}	
   diagWin = window.open('./diagram.html?'+diagramFile,'diagramWindow','scrollbars=yes,height=300,width=640'+positionCode);
   if (window.focus) {diagWin.focus()}
}
