// this variable names the current window (for using the popUp as a remote)
window.name = "currentWindow";
// this function opens the pop-up window
var newWin;
function popUp(page, name, details) {
	newWin=window.open(page, name, details);
	newWin.focus();
	return false;
}
/* Use this in the A HREF tag:
<a href="images/image.jpg" onClick="return popUp('images/image.jpg', 'imageName', 'width = xxx,height = xxx,directories = no,location = no, menubar = no,resizable = no,scrollbars = no, status = no,toolbar = no,screenX = xxx,screenY = xxx,top = xxx,left = xxx')"></a>
*/