Each board of health of a city or general health district may provide for the free treatment of cases of gonorrhea, syphilis, and chancroid. It may establish and maintain one or more clinics for such purpose and may provide for the necessary medical and nursing service therefor. The board may provide for the quarantine of such carriers of gonorrhea, syphilis, or chancroid, as the director of health orders to be quarantined. It shall use due diligence in the prevention of such venereal diseases and shall carry out all orders and regulations of the department of health in connection therewith.