var picV = null
var popImgV = null  // use this when referring to pop-up image
var picTitleV = null
var imgCountV = 0
var imgWinNameV = "popImg"
var windowWidthV = 480
var windowHeightV = 720
var windowTitleV = "GTR"

function openPopImgV(picNameV){
  closePopImgV()
  picTitle = windowTitleV
  imgWinNameV = "popImg" + imgCountV++ //unique name for each pop-up window
  popImgV = window.open(picNameV, imgWinNameV,
           "toolbar=no,scrollbars=no,resizable=no,width=" 
           + (parseInt(windowWidthV))  + ",height=" 
           + (parseInt(windowHeightV)))   
  }
function closePopImgV(){    // 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(popImgV != null) if(!popImgV.closed) popImgV.close() 
  }
function setStatusV(msg){
  status = msg
  return true
  }