1175. A party may be examined under oath in like manner as a witness, or upon interrogatories.
1176. The Court may of its own motion at any time before judgment examine either party or any person as a witness, or order the production of any document.