in reply to Pop-Up Ads

Here's a ready-made app which will do the job for u (not sure if its freeware or shareware)
Pop-Up Killer