If you search something in google or yahoo or another search engine and everytime you click any result you will redirected to a random page. You have an spyware.
I fixed the redirected problem in IE using Kaspersky and superantispyware program, but they not fixed the problem in firefox. After searching in different pages I found you can fix the problem using

Malwarebytes' Anti-Malware
http://www.malwarebytes.org/mbam.php
Use the free edition. You dont neet to buy a license. It will work for this problem

This program fixed the problem in firefox and really sure it will fix the problem in IE if you antivirus can't remove the spyware.

My recommendation is:
1) run your antivirus (for me the best antivirus are: NOD32 and kaspersky)

2) run superantispyware is really good to remove weird spyware

3) if you continue with the problem in firefox use: Malwarebytes' Anti-Malware

Remember if you have that virus/spyware in your machine, the virus copy files in ALL your drives and then boot with your windows. So you must to check your drives (including external, ipod too if you have it connected) and look for a folder like this: resiycled.

Any question please write a comment.