Code of Criminal Procedure Act, 1973
11.Courts of Judicial Magistrates.-
(1) In every district (not being a metropolitan area), there shall be established as many Courts of Judicial Magistrates of the first class and of the second class, and at such places, as the State Government may, after consultation with the High Court, by notification, specify.
(2) The presiding officers of such Courts shall be appointed by the High Court.
(3) The High Court may, whenever it appears to it to be expedient or necessary, confer the powers of a Judicial Magistrate of the first class or of the second class on any member of the Judicial Service of the State, functioning as a Judge in a Civil Court .