Growing numbers are drawing up a contract declaring who gets custody of their animal if they part ways - saving heartache (and money) in the long run. A leading expert explains how it works ...