  function NewWindow(mypage, myname, w, h, scroll, pos, status)
  {
    var winl = 0;
    var wint = 0;
    if (pos=="top")
    {
      winl = 0;
      wint = 20;
    }
    else
    {
      winl = (screen.width - w) / 2;
      wint = (screen.height - h) / 2;
    }
    if (!status) {status = "no";}
    var winprops = 'height='+h+', width='+w+', top='+wint+', left='+winl+', scrollbars='+scroll+', location=no, directories=no, status='+status+', menubar=no, toolbar=no, resizable=no';
    var win = window.open(mypage, myname, winprops);
    if (parseInt(navigator.appVersion, 10) >= 4)
    { 
      win.window.focus();
    }
  }