tu hai nel <head> questo:

<script>
newwindow=window.open("popup.html","","top=200,lef t=200,width=350 ,height=200 ")
newwindow.creator=self</script>

aggiungi dopo <script>
codice:
function mypopup() {
e prima di </script>
codice:
 }
poi modifica il tag <body> aggiungendo
onLoad="mypopup()"

quindi <body onLoad="mypopup()">