Read up on HOW TO KEEP YOUR MALE DOG CALM WHEN A NEARBY FEMALE DOG IS IN HEAT:

Paws, Claws & Tails