
//jkk -- 5/04/2006
//Function to open a popup page with an image file named ./img/planning_large.gif
function enlargeImage() {
	picName = new Image();
	picName.src = "./img/planning_large.gif";
	picURL=picName.src;		
	newWindow=window.open(picURL,'newWin',' scrollbars=yes, status=no, location=no, directories=no, menubar=no, resizable=yes, toolbar=no, width='+picName.width+', height='+picName.height);
	newWindow.document.write('<html><head><title>Planning Grid<\/title><\/head><body leftmargin="0" topmargin="0"><IMG SRC="'+picURL+'" BORDER="0" ALT="Planning Grid"><\/body><\/html>');
	newWindow.resizeBy(picName.width-newWindow.document.body.clientWidth, picName.height-newWindow.document.body.clientHeight);
	newWindow.focus();
}
	
function openCenteredWindow(sURL, sTarget, iWidth, iHeight) {
	var iLeft = (screen.width - iWidth) / 2;
	var iTop = (screen.height - iHeight) / 2;
	window.open(sURL, sTarget, "height=" + iHeight + ", width=" + iWidth + ", left=" + iLeft + ", top=" + iTop + ", channelmode=no, directories=no, fullscreen=no, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, titlebar=no, toolbar=no");
}