Maggie,
You will need to speak with your physician about this one but I had muscle twitches in my eye for nearly two weeks and I had leg cramps as well. This was also around the time that I had severe heart palpitations. Anways, I spoke with my doctor and I began taking magnesium supplements and haven't had a problem with any of that since. Another thing, once when I started a beta blocker for my blood pressure,it actually caused leg cramps until my body adjusted to it so if you've started any meds recently it could be due to that so you could check with the pharmasist or physician on that one too. Hope this helps or gives you some ideas. I know what a pain in the a%$ muscle cramps can be. Take care and good luck with that.
~Isabella~