My local SPCA has a little card they encourage people to leave if you see a dog in a car and want to educate the owner along with tips of what to do, which of course specifically say do not open the car yourself.

http://www.spcawake.org/site/DocServer/SPCAWake_LoveYourPetLeaveThemHome.pdf?docID=2982