If money is deposited, as provided in the last two (2) sections, bail may be given and may justify upon notice, at any time before judgment; and on the filing of the undertaking and justification with the clerk, the money deposited must be refunded to the person who made the deposit.
Idaho Code § 8-122