var popImg = null
var imgCount = 0
var imgWinName = "popImg"
function openPopImg(picName, windowWidth, windowHeight){
  closePopImg()
  imgWinName = "popImg" + imgCount++
  popImg = window.open(picName, imgWinName,
           "toolbar=no,scrollbars=no,resizable=no,width="
           + (parseInt(windowWidth)+20)  + ",height="
           + (parseInt(windowHeight)+20))  }
function closePopImg(){
  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  }
