The county commissioners of each county having a population of more than one hundred thirty thousand (130,000) and less than one hundred eighty-five thousand (185,000) inhabitants in this state may provide parental, detention or juvenile homes or schools or youth centers for the purpose of caring for children under eighteen (18) years of age in the custody or under the jurisdiction of the district court.
K.S.A. 38-536