function openImage(image,width,height) {
	var scrolls = "no";
	if (screen.width < width || screen.height < height) {
		width = screen.width * 0.90;
		height = screen.height * 0.90;
		scrolls = "yes";
	}
	window.open("popupimage.jsp?image=" + image,"pictures", "width=" + width + ",height=" + height + ",toolbar=no,menubar=0,resizable=yes,status=0,location=no,directories=0,scrollbars=" + scrolls + ",header=no");
}

function closewindow() {
window.close();
}