Nonzero prime ideals are maximal in a PID

Let D be a principal ideal domain. Prove that every proper nonzero prime ideal is maximal.