Any time a building or other structure used for residential purposes, or a portion of a building containing residential units, is rendered uninhabitable by virtue of a casualty such as fire or flood, the owner of the property is allowed to park, temporarily, mobile and manufactured home, or homes, as the need may be, elsewhere upon the land, for use and occupancy of the former occupants for a period of up to 12 months, or until the building or structure is rehabilitated and otherwise made fit for occupancy. The property owner, or a properly designated agent of the owner, is only allowed to cause the mobile and manufactured home, or homes, to remain temporarily upon the land by making timely application to the local building official for the purposes of obtaining the necessary permits to repair or rebuild the structure.