No, they had no right to take it. And how are you going to walk into a police dept and tell them you just stole someone's dog? If the person was able to get the dog out of the car that probably means the windows were rolled down for the dog. They could have given the dog some water or waited for the people to get back or called the police.