What does the 1M resistor do in this circuit? (knock sensor)

Hearty thanks to everybody contributing to this discussion. For anybody still confused by the role of the parallel resistor in this circuit, I also found the following post very enlightening:

http://forum.arduino.cc/index.php/topic,144736.0.html