Coordinates

A vector \vec{B} has three angles with the axes, \alpha,\beta,\gamma.
Prove that :
cos^2\alpha+cos^2\beta+cos^2\gamma=1.