(a) The county courthouse shall be kept open for court and related business Monday through Friday from 8:30 a.m. each of said weekdays until 5:00 p.m. of each of said weekdays except during holidays. (b) Unless otherwise approved by a superior court judge or the chairperson of the county board of commissioners, during all hours exclusively of those stated above, the county courthouse shall be closed to the public and the outside doors thereof kept locked. (c) Unless given permission by the chairperson of the board of commissioners of the county or the sheriff of the county, no person except a worker in an office located in the said courthouse may be present in said courthouse except during the aforesaid mentioned permitted times. The aforesaid courthouse employees may only be permitted to be in said courthouse during the aforesaid prohibited times if they have been given permission by their supervisor. (d) Any person, firm, or corporation violating any provision of this chapter shall be guilty of a misdemeanor and, upon conviction thereof, shall be punished according to the general penalty described in section 1-9. Each time such violation is committed shall be deemed a separate offense.