function PopupWindow($ImageURL, Width, Height)
{
  TImage = new Image(Width, Height);
  TImage.src = $ImageURL;

  if (TImage.width)
  {
    args = "width=" + (TImage.width + 16) + "," +
           "height=" + (TImage.height + 16) + "," +
           "location=0," +
           "menubar=0," +
           "resizable=0," +
           "scrollbars=0," +
           "status=0," +
           "titlebar=0," +
           "toolbar=0," +
           "hotkeys=0," +
           "screenx=0," +  //NN Only
           "screeny=0," +  //NN Only
           "left=0," +     //IE Only
           "top=0";        //IE Only
    
    var Popup = window.open("screenshot.html?" + $ImageURL, "_blank", args);
    if (navigator.appName.substring(0, 8) == "Netscape")
    {
      Popup.location = "screenshot.html?" + $ImageURL;
    }
  }
}
