thanx everyone. I figured out what was wrong. When my pc bogged down, I looked in the task manager and found that one of my P2P programs was eating up all my memory. i closed the program and the problem was fixed instantaneously.
Thanx to Lone Wolf whose suggestion led to the solution to my problem. And thanx to everyone for your help.