							// Only script specific to this form goes here.
							// General-purpose routines are in a separate file.
							  function validateOnSubmit() {
								var elem;
								var errs=0;
								// execute all element validations in reverse order, so focus gets
								// set to the first one in error.
								if (!validateAgreement(document.forms.frmContact.iAgreement,  'infAgreement')) errs += 1; 
								if (!validatePresent  (document.forms.frmContact.gDescription,'infDescription')) errs += 1; 
								if (!validatePhone  (document.forms.frmContact.cPhone3,     'infPhone',4, true)) errs += 1; 
								if (!validatePhone  (document.forms.frmContact.cPhone2,     'infPhone',3, true)) errs += 1; 
								if (!validatePhone    (document.forms.frmContact.cPhone1,     'infPhone',3, true)) errs += 1; 
								if (!validateEmail    (document.forms.frmContact.bEmail,      'infEmail', true)) errs += 1; 
								if (!validatePresent  (document.forms.frmContact.aName,       'infName'))        errs += 1; 
							
								if (errs>1)  alert('There are fields which need correction before sending');
								if (errs==1) alert('There is a field which needs correction before sending');
							
								return (errs==0);
							  };
