I use Seachem Mangesium and Borate Alkalinity to test magnesium. I use http://www.bulkreefsupply.com/">http://www.bulkreefsupply.com/</a> for Magnisum chloride. You'll save a lot buying it that way.
Your next question is, 'Okay, so how much do I dose?'. I gotcha covered there, too:
[IMG]http://jdieck1.home.comcast.net/~jdieck1/chemcalc.html">http://jdieck1.home.comcast.net/~jdieck1/chemcalc.html</a>
As far as how fast should you raise magnesium- It's always best to take it slow, especially if you're new to this, but I've raised it 600ppm in 30min before for a specific reason. However, I did significant water testing before doing this and have a good working knowledge of reef chemistry backed by 8 years of marine and 14 years of freshwater experience. Try to not raise it more than 100ppm a day.