// generic popup function
function popup(popFile, winWidth, winHeight){ 
	// set the window size
	//var winWidth = 790;
	//var winHeight = 480;
	// stick the window in the centre of the screen
	var winYpos = (screen.availHeight-winHeight)/2;
	var winXpos = (screen.width-winWidth)/2;
	// set details/properties of the window....
	var details = "toolbar=no,width="+winWidth+",height="+winHeight+",directories=no,status=yes,scrollbars=yes,resizable=no,menubar=no,top="+winYpos+",left="+winXpos;
newwin=window.open(popFile,'popup',details);
newwin.focus();
}
function popupTable(popFile){ 
	popup(popFile,500,500);
}
function popupDef(popFile){ 
	popup(popFile,450,350);
}

