*376.* _Reformatories, Object, Liberty._—During the past few years
juvenile courts have been created for the purpose of committing children
to reformatories. The proceedings are not criminal actions, but of an
equitable nature.(670) However, as the object is to deprive the child of
its liberty, the statute must be strictly construed and followed.(671) An
infant can not waive a right.(672) If a child has been wrongfully
committed or is wrongfully detained, the proper remedy for his discharge
is a writ of _habeas corpus_.(673)