var rules = new Array();
rules.push("required,firstname,Please enter your first name.");
rules.push("required,lastname,Please enter your last name.");
rules.push("required,emailaddress,Please enter your email address.");
rules.push("valid_email,emailaddress,Please enter a valid email address eg. email@email.com");
rules.push("required,contactnumber,Please enter your prefered contact number in the following format 0893000663");
rules.push("digits_only,contactnumber,Please enter your prefered contact number in the following format 0893000663");
rules.push("length=10,contactnumber,Please enter your prefered contact number in the following format 0893000663");
rules.push("required,voucherto,Please enter the name of the voucher recipient");
rules.push("required,voucherfrom,Please enter who the voucher is from");
rules.push("required,vouchermessage,Please enter the message for the voucher recipient");
rules.push("required,addressedto,Please enter the name of the delivery recipient");
rules.push("required,address1,Please enter the adddress of the delivery recipient");
rules.push("required,towncity,Please enter the town/city of the delivery recipient");
rules.push("required,state,Please select the state of the recipient");
rules.push("reg_exp,state,^\s*(act|nsw|nt|qld|sa|tas|vic|wa)\s*$,i,Please select the state of the recipient)");
rules.push("required,postcode,Please enter the post code of the delivery recipient");
rules.push("digits_only,postcode,Please enter the post code of the delivery recipient");
rules.push("digits_only,contact2,Please enter the contact number of the delivery recipient in the following format 0893000663");
rules.push("length=10,contact2,Please enter the contact number of the delivery recipient in the following format 0893000663");