Magnetic phase transitions of cobaltchloride