Assignment 2 for ECMM6010 Fall 2005, due Tuesday, October 7 to tt@cs.dal.ca before class

Write a web page with javaScript that has a form with a password field, submit button and radio button.

Clear Hidden

The password field has the purpose of entering a new password. The rules for valid passwords are as follows

1. The length of the password has to be at least 7 characters

2. The first character has to be a non-alphanumeric character

3. The rest of the characters has to include at least one letter and one number

On submit you should verify if the submitted password following the above rules. You should also prompt the user to retype the password and check if this retyped version matches the one submitted in the form (the prompted version can be in clear form). Finally, you should submit the form to http://www.cs.dal.ca/~tt/ECMM601005/password.php. The server will then acknowledge the password and print the password either in clear form or with asterisks as chosen by the radio button.

(5 points)