/* ********************************************************* */
/* ** OPEN A NEW MAGNIFY WINDOW                           ** */
/* ********************************************************* */

/*
	This function opens a small pop-up window.  It checks
	for the screen's height and if there's available space
	it increases the height of the window.
*/

function popWindow(path) {
	var screeny;
	
	if (screen.height > 600) {
		screeny= 420;
	} else {
		screeny= 420;
	}	

	var windowName= "popWindow";

	var features=	"toolbar=no,location=no,directories=no,"+

			"status=no,menubar=no,scrollbars=no,"+

			"left=0,screenX=0,top=0,screenY=0,"+

			"resizable=yes,width=540,height="+screeny;

	var popWin= window.open(path,windowName,features);

	if (popWin) 

		popWin.focus();

	return popWin;
}