How to tell separation anxiety from boredom and other problems, and what to do about it.