Suppose that P and Q are points on the sides AB and AC respectively of triangle ABC. The perpendicular to the sides AB and AC at P and Q respectively meet at D, an interior point of triangle ABC. If M is the midpoint of BC, prove that PM=QM if and only if angle(BDP)=angle(CDQ).