Project 4 JavaScript

The first file Project4
A page that reacts to onClick in three ways.
    1. Click a div to toggle the text between two options
    2. Click a link to show a random number in an alert popup
    3. Click an image to toggle between two src images

The second file Project4_part2
A form validation page containing the fields username, first name, last
name, phone number, password. You must validate the form using
javascript. For any fields that have problems, you must show the
problems in three ways, an error message, focus on the first control
with a problem, and an asterisk next to all controls with problems.

All fields are required. Phone number must be a US phone number
(ddd-ddd-dddd). Username must be only uppercase and lowercase
characters. Password must be at least 8 characters long and contain at
least one digit.

You must use regular expressions to validate phone, username, and
password.