function launch(URL, newName, newFeatures, orgName) {
  var remote = open(URL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}

function openWindow(URL) {
  Popup = launch(URL, 'popup', 'dependent=0,height=420,width=420,screenX=150,left=150,screenY=0,top=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0', 'launcher');
}
function openURLunKnownWindow(URL) {
  Popup = launch(URL, 'popup', 'dependent=0,height=300,width=350,screenX=150,left=150,screenY=0,top=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0', 'launcher');
}