/**
 *	Popup Image function
 *	Pops up an image in a new browser window.
 *	Uses an ASP script: <code>image/popup.asp</code> 
 *	@author	T. Michael Keesey
 */
/**
 *	Pops up an image in a new browser window.
 *	@param	uri		path of image file
 *	@param	title	title to display for image
 *	@param	width	width of image, in pixels
 *	@param	height  height of image, in pixels
 */
function popupImage(uri, title, width, height) {
	var winWidth = width;
	if (winWidth > screen.width) {
		winWidth = screen.width;
	}
	var winHeight = height;
	if (winHeight > screen.height) {
		winHeight = screen.height;
	}
	var win = window.open("/image/popup.asp?uri=" + escape(uri) + "&title=" + escape(title) + "&width=" + escape(width) + "&height=" + escape(height), "WdcImagePopup", "width=" + winWidth + ",height=" + winHeight + ",location=no,menubar=no,status=no,scrollbars=auto,toolbar=no");
	win.focus();
} 
