// Popup poster, Popup webpage

  var poster

  function popupPoster(gif, tstr, width, height) {
   if (poster) if (!poster.closed) poster.close()
   y = (600-height)/2
   x = Math.max((800-width)/2, 0)
   poster=window.open("", "popup", "width="+width+",height="+height+
    ",top="+y+",left="+x+",screenX="+x+",screenY="+y);
   with (poster.document) {
    writeln("<html><head><title>", tstr, "</title></head>")
    writeln("<body style='margin: 0 0 0 0' marginwidth=0 marginheight=0>")
    writeln("<p><img src='"+gif+"'></p>")
    writeln("</body></html>")
   }
   poster.focus()
   return false
  }

  function popupWebpage(url) {
   w = window.open(url)
   w.focus()
   return false
  }

