Thanks to RIT for making some improvements to the code. We've added it to the Open Source distributed on this site.
Here's a message from Jon Jiras explaining more:
"Our web master Patrick Haney (firstname.lastname@example.org) rewrote the utils.js file
the Univeristy of Minnesota uses for date validation on the assignment
calculator. I think he improved it considerably. Feel free to use it
and/or incorporate it into the general distrubution of the assignement
Instead of complaining to the user that they entered a month or date
with a leading zero, Patrick's script simply removes the leading zero
and continues normally. It allows users to enter leading zeros (or not)
-- whichever they prefer -- without poping up an error message. In
addition, it still does not allow the user to enter invalid months,
dates greater then the number of days in the specified month, or alpha
characters. And it gives much more descriptive error messages whenever
one of these events happens.
Thanks for a great program! It's getting rave reviews here. We'll
probably add the email features soon.
Library Software Specialist
Rochester Institute of Technology
Rochester, NY 14623