Theoretical study of the two-electron interaction in alkaline-earth atoms.