The likelihood of a match between two people can be rated good, fair, or poor depending on the disparity between personality (Saint, Normal, Neurotic, and Creepy), income, looks (Hot, OK, So-So, and Goblin), and age.
E Match Maker is a simple form that computes an overall score for the user and his or her mate, then uses the score to rate the potential match up.
Design the following form:
For extra credit add a javascript that declares a function called validateAge(). This function should be called when the query is submitted. It reads
a1 = document.match.age1.value;
a2 = document.match.age2.value;
and pops up a dialog box if the ages are out of the range 0 to 100:
alert('invalid age');
For additional credit, declare a function called rateMatch() that rates the match and pops up a dialog box with the analysis: good, fair, poor.