665. The defendant may also obtain his or her discharge at any time before judgment, by giving good and sufficient sureties who undertake to the satisfaction of the Court, or Judge, or Registrar, that he or she will surrender himself or herself into the hands of the Sheriff, when required to do so by an order of the Court or Judge, within one month from the service so such order upon him or her or upon his or her sureties, and that in default they will pay the amount of the judgment in principal, interest, and costs, or the amount fixed by the Judge in the case of article 642.