Before the boards of county commissioners shall provide a detention home or juvenile farm as authorized by K.S.A. 38-528, said boards shall enter into an agreement for joint or co-operative action pursuant to the provisions of this act. Appropriate action by resolution by each of such boards of county commissioners shall be necessary before any such agreement may enter into force. Such agreement shall specify the following:
In the event that the agreement does not establish a separate legal entity to conduct the joint undertaking, the agreement shall, in addition to items (a), (c), (d), (e) and (f) listed above, contain the following:
Every agreement made hereunder shall, prior to and as a condition precedent to its entry into force, be submitted to the attorney general who shall determine whether the agreement is in proper form and compatible with the laws of this state. The attorney general shall approve any agreement submitted to him hereunder unless he shall find that it does not meet the conditions set forth herein and shall detail in writing addressed to the boards of county commissioners concerned the specific respects in which the proposed agreement fails to meet the requirements of law. Failure of the attorney general to disapprove an agreement submitted hereunder within ninety (90) days of its submission shall constitute approval thereof.
K.S.A. 38-529