37.(1) Where in any suit or other proceeding it is necessary for a Civil Court to decide any question regarding succession, inheritance, marriage or caste, or any religious usage or institution, the 115[Muslim] law in cases where the parties are 116[Muslim], and the Hindu law in cases where the parties are Hindus, shall form the rule of decision except in so far as such law has, by legislative enactment, been altered or abolished.
(2) In cases not provided for by sub-section (1) or by any other law for the time being in force, the Court shall act according to justice, equity and good conscience.