For the future immunity to spyware and virus try this.http://www.sandboxie.com/
A sandboxed web browser can install nothing and can write nothing to the registry.
Every once in a while clean out the sandbox. Then IE or firefox will be back to the way it was at the point you started using Sandboxie.
If you really want to download/install software and setting from the Internet, there will be the Icon to run your web browser outside the sandbox.
This works. 3 years for my 16 year old without having to debug/rebuild his computer.
Spybot S&D is an excellent program for removing lots of problems.http://www.safer-networking.org/
The best thing to do when stuck in a spyware/virus installation cycle is to press the power button on your computer. Then do a system restore to at least a week ago even if you don't think the installation of the malware was successful. In most cases this will fix your machine.