How to validate a form with JavaScript?

See also: