// takes an image object or just a string
function popup(imageURI) {
	var path = '/global/script/showImage.php';
	var href;
	if (typeof(imageURI) == 'string')
		href = imageURI;
	else if (typeof(imageURI) == 'object')
		href = imageURI.href;
	else return true; // return true to allow the link to work even if the javascript fails

	href= path + '?src=' + href;
	var popup = window.open(href, 'Image', 'width=400,height=400'); // default width and height, just in case
	if (window.focus) popup.focus(); // steal focus (for when the pop-up is still open and the user clicks on a pop-up link from the referring page)
 
	return false; // keep it from following the link in the original window
}