 var windowHandle = null; var globalImage = null; var globalImageWidth = null; var globalImageHeight = null; var globalCaption = null;function myOpen(localImage,localCaption,imageWidth,imageHeight){	globalImage = localImage;	globalCaption = localCaption;	globalImageWidth = imageWidth;	globalImageHeight = imageHeight;	windowWidth = imageWidth + 34;	 if (imageHeight > screen.height - 140)			 	windowHeight = screen.height - 50	 else		windowHeight = imageHeight + 110;	 posX = screen.width/2 - imageWidth/2 - 20;	windowHandle = window.open('photo.html','windowName','toolbar=no,location=no,status=no, scrollbars=yes,resizable=no,width='+ windowWidth +',height='+ windowHeight +',top=0,left='+ posX );windowHandle.moveTo(posX,0);}//Version for simple window with text only (added width on 1 June 2008)function myOpen2(localImage,imageWidth)	{	globalImage = localImage;	posX = screen.width/2 - imageWidth/2 - 20;			windowWidth = imageWidth + 34;	windowHandle = 	window.open(globalImage,'popup','toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+ windowWidth +',copyhistory=no');	windowHandle.moveTo(posX,0);	}function changeIt(MyImage1, MyImage2) { if (document.images) { document[MyImage1].src = MyImage2; } ;} 