The resident judge when not disqualified in the original proceeding and the judge entering any order, judgment or decree shall have jurisdiction to hear and determine any proceeding for contempt arising out of such order, judgment or decree.
NMS § 34-1-5