 <!--BEGIN Pop-up Windows Script------------------------------------------>

function openPopImg(winURL, winWidth, winHeight, ImgFeatures, winLeft, winTop){
  var d_winLeft = 20  // default, pixels from screen left to window left
  var d_winTop = 20   // default, pixels from screen top to window top
  winName = "popWin" + winCount++ //unique name for each pop-up window
  closeImgWin()           // close any previously opened pop-up window
  if (openPopImg.arguments.length >= 4)  // any additional features? 
    ImgFeatures = "," + ImgFeatures
  else 
    ImgFeatures = "" 
  if (openPopImg.arguments.length == 6)  // location specified
    ImgFeatures += ImgPlace(winWidth, winHeight, winLeft, winTop)
  else
    ImgFeatures += ImgPlace(winWidth, winHeight, d_winLeft, d_winTop)
  popWin = window.open(winURL, winName, "width=" + winWidth 
           + ",height=" + winHeight + ImgFeatures)
  }
function closeImgWin(){    // 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(popWin != null) if(!popWin.closed) popWin.close() 
  }
function ImgPlace(winWidth, winHeight, winLeft, winTop){
  return ""
  }
//-->
 // for Netscape 4+ and IE 4+

function ImgPlace(winWidth, winHeight, winLeft, winTop){
  var ImgLocation = ""
  if (winLeft < 0)
    winLeft = screen.width - winWidth + winLeft
  if (winTop < 0)
    winTop = screen.height - winHeight + winTop
  if (winTop == "cen")
    winTop = (screen.height - winHeight)/2 - 20
  if (winLeft == "cen")
    winLeft = (screen.width - winWidth)/2
  if (winLeft>0 & winTop>0)
    ImgLocation =  ",screenX=" + winLeft + ",left=" + winLeft	
                + ",screenY=" + winTop + ",top=" + winTop
  else
    ImgLocation = ""
  return ImgLocation
  }
//-->


