var pic = null
		var popImg = null  // use this when referring to pop-up image
		var picTitle = null
		var imgCount = 0
		var imgWinName = "popImg"
		
		function openPopImg(picName, windowWidth, windowHeight, windowTitle){
			closePopImg()
			picTitle = windowTitle
			imgWinName = "popImg" + imgCount++ //unique name for each pop-up window
			popImg = window.open(picName, imgWinName,"toolbar=no,scrollbars=no,resizable=no,width="+(parseInt(windowWidth))+",height="+(parseInt(windowHeight))) 
			
			strtext=("<html><head><title>"+windowTitle+"</title>");
			strtext+=("</head><body bgcolor='000000'>");
			strtext+=('<div align="center" style="position:absolute;width:'+windowWidth+'px;height:'+windowHeight+'px;left:0px;top:0px">');
			strtext+=("<img src="+picName+"></div></body></html>");	
			
			//write to the newly opened window
			popImg.document.open();
			popImg.document.write(strtext);
			popImg.document.close();
			//bring the window to the top
			popImg.focus();
		  
		  }
		function closePopImg(){    // close pop-up window if it is open 
		  if (navigator.appName != "Microsoft Internet Explorer" 
			  || parseInt(navigator.appVersion) >=4) //do not close if early IE
			if(popImg != null) if(!popImg.closed) popImg.close() 
		  }
		function setStatus(msg){
		  status = msg
		  return true
		  }
<!-- NEXT -->