Dipolar collisions of ultracold polar molecules in a microwave field