(a) The court may assess the accruing costs of the case against the party or parties against whom judgment is given. Such costs shall consist of the expenses of voluntary witnesses for which either party may be responsible and the fees of jurors in those cases where a jury trial is had, and any further incidental expenses connected with the procedure before the court as the court may direct.
(b) In all civil suits the complainant may be required to deposit with the clerk of the court a fee or other security in a reasonable amount to cover costs and disbursements in the case.