According to Mercola article:  
http://www.mercola.com/2004/aug/7/miracle_magnesium.htm

Current research on the paleolithic or caveman diet shows that the ratio of 
calcium to magnesium in the diet that our bodies evolved to eat is 1-to-1. 18 
In order to offset the deficiency magnesium induced by excess calcium and to 
treat the above 22 conditions, people may find it necessary to ingest one part 
magnesium to one part calcium in supplement form for a period of months to a 
year. Stabilization on a healthy diet including green drinks may be possible 
after that time. 
The most commons sources of magnesium are oxide, citrate, glycinate, and 
malate. People use oxide and citrate if they suffer from constipation to take 
advantage of magnesium's laxative effect. Glycinate seems to cause little 
diarrhea and is the best choice for people who already have loose stools. 
Magnesium malate has been promoted for people with fibromyalgia to help break 
up lactic acid that seems to be part of the fibromyalgia picture.