<?xml version='1.0' encoding='utf-8'?>
<section article="gcj" article_name="Courts and Judicial Proceedings" number="3-704" title_number="3" title_name="Courts of General Jurisdiction -- Jurisdiction/special Causes of Action" subtitle_number="7" subtitle_name="Habeas Corpus">
  <level label="a">
    <text>On return of a writ of habeas corpus and production of a person and cause of his detention before a judge, the judge shall immediately inquire into the legality and propriety of the confinement or detention.</text>
  </level>
  <level label="b">
    <text>If it appears to the judge that the person is detained without legal warrant or authority, he shall release or discharge the person immediately.</text>
  </level>
  <level label="c">
    <text>If the judge considers the detention lawful and proper, the person shall be:</text>
    <level label="1">
      <text>Remanded to custody; or</text>
    </level>
    <level label="2">
      <text>Admitted to bail.</text>
    </level>
  </level>
  <level label="d">
    <text>If the person is admitted to bail, the judge shall take a recognizance for his appearance in court and transmit it to a court having jurisdiction over the offense charged.</text>
  </level>
</section>
