(a) Generally. Except as otherwise provided in subdivision (c) of this section, every complaint, counterclaim, cross-claim, interpleader complaint, and third-party complaint shall contain a demand for the relief to which the pleader deems himself entitled. Relief in the alternative or of several different types may be demanded. Except as provided in section 3215, the court may grant any type of relief within its jurisdiction appropriate to the proof whether or not demanded, imposing such terms as