var pid = 0;
function popup(url, width, height) {
  if (pid) { if (!pid.closed) pid.close(); }
  pid = open(url, 'pid', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,dependent=yes,width='+width+',height='+height+'');
}
function popupQ(url) { popup(url,420,290); }
function popupH(url) { popup(url,280,430); }