Two phase transitions in the Ashkin-Teller model