Whenever the courthouse or other building of the county is located upon a public square or common in the city, borough or town then being the county seat, and a new building is authorized and required to be erected, in place of such courthouse or other building, the commissioners may erect such new building upon any other of the public squares or commons of said city, borough or town, or upon any part thereof.
16 P.S. § 2316