leg cramps

what should i do to lessen or avoid leg cramps, i experience it usually in the middle of the night