JavaScript Programming/Forms and Security/Example Code