First you should run Spybot S&D
or some other spyware removal tool. Popups that come up when you are not browsing are probably caused by spyware.
For browsing Popup Stopper from panicware is great, it stops everything. However, I think Panicware is charging for it now.
I have also been using the Google toolbar lately, It works pretty well to.