Javascript: Close after window loses focus

Hey all,

I need to have a popup window close after it loses focus. How can I accomplish that? Here’s the example:

[color=#003366]http://www.wirelessinteractive.com/24_ant_indoor.php[/color]
[color=#003366][/color]
[color=#003366]Click on the “Consider the Total Solution” button and observe the popup. I need that popup to close itself if someone follows the link inside of it. Any ideas?[/color]
[color=#003366][/color]
[color=#003366]Thanks in advance![/color]
[color=#003366]Kirupa forums ROCK![/color]