1. Break the damned window, I say (and have done)!
If I see a person leave the animal in the car, I will chase them down. If I see a dog in a car, cannot know how long the poor animal has been in there but is panting, I alert store security if I can, then call 911, then wait a few minutes. Then its smash time.