var imgOpened = 0;
function openWindowPicture(picture,title,w,h) {
			
		// Select the size of the window based on the size of the image.
			
		if (navigator.appName == "Netscape") {
			winh = h + 16;
			winw = w + 33;
			imageSRC = "<CENTER><P><IMG SRC=\""+picture+"\" BORDER=0></P></CENTER>";
		}
		else {
			winh = h + 30;
			winw = w + 40;
			imageSRC = "<CENTER><P><IMG SRC=\""+picture+"\" BORDER=0></P></CENTER>";
		}
			
		// Restrict the height of the window to no more than 480.
			
		if (winh > 480) winh = 480;
			
		settings = "toolbar=no,location=no,menubar=no,resizable=yes,scrollbars=yes,width="+winw+",height="+winh;
		winname = "winpict"+imgOpened;
		imgOpened++;
		myWindow = window.open("",winname,settings);
		myWindow.document.write("<HEAD><TITLE>"+title+"</TITLE></HEAD>");
		myWindow.document.write("<BODY BGCOLOR=\"#FFFFFF\">");
		myWindow.document.write(imageSRC);
}
