(a) The offices and the clerks of the magistrate courts and the circuit courts shall, on or before the tenth day of each month, transmit all fees and costs received for the Court Security Fund in accordance with the provisions of sections one and two, article three, chapter fifty of this code and section eleven, article one, chapter fifty-nine of this code for deposit in the state Treasury to the credit of a special revenue fund to be known as the Court Security Fund, which is hereby created under the Department of Military Affairs and Public Safety. The Court Security Fund may receive any gifts, grants, contributions or other money from any source which is specifically designated for deposit in the fund. All moneys collected and received and paid into the state Treasury and credited to the Court Security Fund shall be expended by the board exclusively to implement the improvement measures agreed upon in accordance with the security plans submitted pursuant to section sixteen of this article and in accordance with an appropriation by the Legislature and to pay expenses of the Department of Military Affairs and Public Safety in administering this fund, which expenses may not in any fiscal year exceed the lesser of three percent of the funds deposited into the court security fund or $30,000. Amounts collected which are found from time to time to exceed the funds needed for the purposes set forth in this article may be transferred to other accounts or funds and redesignated for other purposes upon appropriation by the Legislature.
(b) Notwithstanding any provision of this code to the contrary, after June 30, 2000, the court security board shall transfer such amounts from the Court Security Fund as may, from time to time, be directed by the Legislature in an appropriation act to the Domestic Violence Legal Services Fund created in section four-c, article two-c, chapter forty-eight of this code. Any moneys transferred to the Domestic Violence Legal Services Fund pursuant to the provisions of this section shall be expended for the purposes specified in said section.