A copy of the JavaScript functions in the head element:
// sample-3-form-functions.js
// there is a form with a reset button.
// there is no onreset processing.
// the functions loaded() and changeInput() are the same as in previous samples.
// see the previous examples for the code for these two functions.