Whenever any judge of any court of quarter sessions shall make an order for the detention of any minor, as provided for in said act, or shall order the discharge of said minor, such judge may direct whether all the costs of such proceedings be paid by the proper county or by the complainant, or by both in such proportion as to such judge shall seem equitable.
11 P.S. § 34