Gravitational Instability of a Magnetic Rotating Disk with Ohmic Dissipation and Ambipolar Diffusion