The goal of this homework is to perform form validation, which is considered
to be one of the most important missions of JavaScript.
Specifically, you are going to design JavaScript code to check the validity
of each input field in the following form.
Note that:
Be sure to trim all leading and trailing white spaces
(both English and big-5) at onBlur events.
You can use string manipulation functions in JavaScript to accomplish the
task. You can also use regular expressions if you prefer to do so.
Regular expressions are highly recommended since they will save you
a lot of troubles.
You can safely assume that the clients are using IE5.