Until December 31, 1979, a jail may be used for the detention of a child who is alleged to be delinquent but only if the detention is necessary for the safety of the public and if the jail has been approved for the detention of the child by the Department of Public Welfare in good faith and the detention has been ordered by the court pursuant to Chapter 63 of Title 42 of the Pennsylvania Consolidated Statutes (relating to juvenile matters). The Department of Public Welfare shall approve for use for purposes of and in accordance with the provisions of this section any jail which it finds maintains, for the detention of the child, an appropriate room under adequate supervision: Provided, That the Department of Public Welfare shall have, no later than October 2, 1977, by regulation promulgated standards governing the operations of such portions of such jails as are used for the detention of children pursuant to this section and shall cause the jails to be inspected by the Department of Public Welfare at least once every six months until this confinement is terminated in accordance with provisions in this act.
62 P.S. § 2076