Leg pain.

I have been working out for several months. Recently I have been getting really bad pain in the back of my legs. The pain is right behind the knees. It goes away if I stop working out for about a week. But, comes back when I start again. Any ideas on what this might be?