Nitrogen deficiency makes the whole leaf turn yellow, starting from the outermost point and spreading in towards the stalk. Magnesium deficiency causes yellow blotches in between main leaf veins, eventually the whole leaf turns yellow with green veins. Check out the Plant Problems forum, there is a sticky with a link to a visual guide to plant problems.