Magnetic Fields in Star-Forming Molecular Clouds