Such sanitary district may acquire by purchase, condemnation or otherwise, any and all real and personal property, rights of way and privileges, either within or without its corporate limits, required for its corporate purposes: Provided, all moneys for the purchase or condemnation of any property, shall be paid before possession is taken, or any work done on the premises damaged by the construction of any levee, outlet or other work, and in case of an appeal by either party from any judgment whereby the amount of damages is not finally determined, the amount of the judgment appealed from shall be deposited with the county treasurer of said county, subject to the payment of such damages, on orders signed by the judge of such court, whenever the amount of damages is finally determined, and when no longer required for such purposes, to sell, convey, or otherwise dispose of any of said properties.
70 ILCS 2205/15