Proper hydration is a big key to preventing a lot of problems, only one of which is altitude sickness.
Here is an excellent writeup on altitude illness from NOLS Wilderness First Aid.
_________________________
May your trails be crooked, winding, lonesome, dangerous, leading to the most amazing view--E. Abbey