I know! It went from getting all kinds of porno sites popping up, to not staying on for more than a minute before it would restart itself, to all kinds of other mess.
My husband asked me why I had all these shortcuts on my desktop to porn sites!!
Now you will need to guard against future malware infections. If you have Windows XP or later, always keep System Restore on. Also, download a program called HijackThis (
http://free.antivirus.com/hijackthis/) and place the HijackThis.exe on your desktop, then rename it to iexplore.exe (you will need it to be able to run the program if you ever get infected with Ransomware; fake anti-virus software that locks you out of your system unless you pay them money).
Also, download Spybot Search And Destroy (
http://www.safer-networking.org/en/home/index.html) and allow it to backup your registry and keep TeaTimer on. TeaTimer is a program that has a blacklist of known malware processes and prevents them from activating. Be sure to update Spybot frequently though.
I also highly recommend Avast Antivirus (
http://www.avast.com/index). The program is good at stopping malware as well.