function newPopupWindow(file, width, height) {
    msgWindow=open(file,'popup','resizable=yes,scrollbars=yes,width=' + width + ',height=' + height);
    if (msgWindow.opener == null) msgWindow.opener = self;
}

function viewImage(img) {

	// show the image
	newPopupWindow("../picture-viewer.jsp?image=" + img, 690, 550);

}