Whenever the commissioners of any two or more adjoining counties decide and agree to construct a joint detention facility, they shall acquire a suitable site for the facility. The site may be selected from suitable lands already held by any county of the district for county purposes from lands donated for such purposes or any quantity of land within the respective districts. In the selection of a site, there shall be taken into consideration the objects and purposes of the joint detention center. Title to the land shall be approved by the county solicitor of the county in which the land is located, or such other title guarantee corporation or attorney as may be designated by the commissioners of the counties, and shall be taken in the name of the county or counties comprising the district. The site, before purchase, shall be approved by the department.