
  function popUP(mypage, myname, w, h, t, l, scroll, resize, tools) {
    if(!w) w = 300;
    if(!h) h = 200;
    var option = new Array();
    option[0] = (scroll) ? "scrollbars=yes" : "scrollbars=no";
    option[1] = (resize) ? "resizable=yes" : "resizable=no";
    option[2] = (tools) ? "location=yes, menubar=yes, status=yes, toolbar=yes" : "location=no, menubar=no, status=no, toolbar=no";
    var winl = (l) ? l : (screen.width - w) / 2;
    var wint = (t) ? t : (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+','+option.join(",");
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4) {
      win.window.focus();
    }
  }




