Temperature dependence of the magnetic phase transitions of CoCl2·2H2O