Scusa, avevo capito male le tue intenzioni... il codice che ti serve è:
codice:
<html>

<head>
  <script type="text/javascript">
  <!--
  Search = window.open('searching.htm', 'Search', 'toolbar=0, location=0, status=0, menubar=0, scrollbars=0, resizable=1, width=220, height=220'); 

  window.onunload = Search.close();
  //-->
  </script>
</head>

</body>

<body>

</html>
che chiude automaticamente la pup-up alla chiusura della finestra "madre"
Secan