The nature and duration of a court-ordered commitment was constitutionally bounded, that both needed to bear some reasonable relationship to the reason the individual was being committed.