Magnetic phase transitions of ErCu2