No person detained for examination under this Article on the basis of a petition alone may be held for more than 24 hours unless within that period a certificate is furnished to or by the mental health facility. If no certificate is furnished, the respondent shall be released forthwith.
405 ILCS 5/3-604