We need more information, like a screenshot of the pop-up window you talk of.
It could be adware, browser hijack, rogue anti-spyware (saying your system is infected and inviting you to download a program or visit a web site), but without in formation we are guessing.