What are average investors supposed to do when the market crashes, as it inevitably will, other than ride it out until the crisis passes?

How can you deal with stock market crashes?