Any person prosecuted for an offense may plead that he is not guilty by reason of insanity or mental derangement. If such a plea is accepted by the state's counsel, such counsel shall certify the same to the court.
RSA 651:8-a
1975, 243:1, eff. Aug. 3, 1975.