Magnetic phase transitions in (Nd, Dy)Co2 and (Pr, Dy)Co2 compounds