Be it further enacted, that said commission shall have the power and authority to erect and maintain a city guard house, and to establish and provide regulations therefor, in which shall be confined for punishment, when necessary, persons sentenced by the police court for violating any of the laws or ordinances of the city, as well as for the safe detention until trial of all persons who have violated any of the laws or ordinances of the city, and also for the safe detention of all disorderly persons and persons committing or attempting to commit crime, and the city marshal or chief of police, or any policeman of the city shall have the right to take up all disorderly persons, and all persons committing or attempting to commit any crime or violation of the laws or ordinances of the city, and confine them in the guard house to await their trial. The city commission shall likewise have the right in emergencies to use the county jail of Ware County.