Hello Frank,
second problem: you can call an external JS file between the head-tags like this:
Code:
<head>
<script language="Javascript" src="script/popup.js" type="text/javascript"></script>
</head>
first problem:
give your pop up code a variable and make it blur.
Code:
banner=window.open("http://www.lottowahn.de/p/p/?pid=26085&id=264","Lottowahn","width=250,height=300,back,resizable=no,locationbar
=no,status=no,menubar=no")
banner.blur();
You can make it show up again by banner.focus();
greets
Joerg