// 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 (!validatePresent(document.forms.contact.present,  'inf_present')) errs += 1; 
    if (!validateCountry(document.forms.contact.country, 'inf_country'))  errs += 1; 
    if (!validateEmail(document.forms.contact.email, 'inf_email', true))  errs += 1;
	if (!validateAboutUs(document.forms.contact.comments,  'inf_comments')) errs += 1;
	if (!validateAboutUs(document.forms.contact.aboutus,  'inf_aboutus')) 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);
  };



