On filing the action or proceeding the court shall assess and, when funds exist, collect as a partial payment of any court costs required by law a first time payment of 50% of the average monthly balance of the prisoner's trust fund account for the past 6 months. Thereafter 50% of all deposits into the prisoner's individual account under Sections 3-4-3 and 3-12-5 of the Unified Code of Corrections administered by the Illinois Department of Corrections shall be withheld until the actual court costs are collected in full. The Department of Corrections shall forward any moneys withheld to the court of jurisdiction. If a prisoner is released before the full costs are collected, the Department of Corrections shall forward the amount of costs collected through the date of release. The court of jurisdiction is responsible for sending the Department of Corrections a copy of the order mandating the amount of court fees to be paid. Nothing in this Section prohibits an applicant from filing an action or proceeding if the applicant is unable to pay the court costs.
735 ILCS 5/22-105