Getting many popup ads on my computer.

I keep getting this warning on my computer that a virus is active and I have no any idea on how to get rid of it. I am getting many popup ads on my computer whether or not I am connected to internet. My computer is now so slow. Can anyone help me out?