/* Each rules.push("...") statements "pushes" a new validation requirement into the rules list. 
 
 The push statements each contain a string (i.e. a bunch of characters bookcased with "..." characters. The push statements are all of the following form:
											
"[if:FIELDNAME=VALUE,]REQUIREMENT,fieldname[,fieldname2[,fieldname3,date_flag]],error message"

The square bracket [] notation indicates that the contents are optional. 

Note: you cannot include commas in the error messages. This will currently cause the alerted messages to be truncated.*/

var rules = new Array(); // stores the validation rules

rules.push("required,cm-name,Your name is required.");
rules.push("required,cm-jlkudu-jlkudu,Your email address is required.");
rules.push("valid_email,cm-jlkudu-jlkudu,Please enter a valid email address.");
rules.push("required,email2,Please re-enter your email address.");
rules.push("valid_email,email2,Please enter a valid email address.");
rules.push("same_as,email2,email,Your emails do not match.");
rules.push("required,Telephone,Your telephone number is required.");
