var geprWin
var geprWinSized
//Opens the GEPR file in a small window if not already open
function openGEPRWindow(URL) {
    if (geprWin && !geprWin.closed)
	   geprWin.focus()
	else
	   geprWin = window.open(URL,"gepr",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=750,height=200'); 
}

function openGEPRWindowSized(URL, width, height) {
    if (geprWinSized && !geprWinSized.closed)
	   geprWinSized.focus()
	else
	   geprWinSized = window.open(URL,"geprSized",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height); 
}



//Closes the GEPR window if it is open
function closeGEPRWindow() {
	if (geprWin && !geprWin.closed) {
	   geprWin.close()
	}
}
