// JavaScript Document
function popup(url, x, y, w, h, s) {
    if (x==undefined || x=="") x="0";
    if (y==undefined || y=="") y="0";
    if (w==undefined || w=="") w="400";
    if (h==undefined || h=="") h="400";
    if (s==undefined || s=="") s="no";

    win = window.open(url, "_blank",
      "menubar=no,toolbar=no,location=no,directories=no,status=no," +
      "copyhistory=no,resizable=no,scrollbars=" + s + "," +
      "ScreenX=" + x + ",left=" + x + "," +
      "ScreenY=" + y + ",top=" + y + "," +
      "width="   + w + "," +
      "height="  + h);
    win.focus();
    return win;
  }
