function Form_Validator(theForm)
{

  if (theForm.sur.value == "")
     {
        alert("Please enter a Family name / Surname.");
        theForm.sur.focus();
        return (false);
   	}

  if (theForm.giv.value == "")
     {
        alert("Please enter a First name and middle initial.");
        theForm.giv.focus();
        return (false);
    }
 if (theForm.tle.selectedIndex == 0)
     {
    alert("Please select a Title from the list.");
    theForm.tle.focus();
    return (false);
    }


 if (theForm.add1.value == "")
     {
        alert("Please enter an Address.");
        theForm.add1.focus();
        return (false);
    }

 if (theForm.suburb.value == "")
     {
        alert("Please enter a City.");
        theForm.suburb.focus();
        return (false);
    }

 if (theForm.pcode.value == "")
     {
        alert("Please enter a Postal code.");
        theForm.pcode.focus();
        return (false);
    }
 
 
 if (theForm.country.selectedIndex == 0)
     {
        alert("Please select a Country from the list.");
        theForm.country.focus();
        return (false);
    }

  if (theForm.wphone.value == "")
     {
        alert("Please enter a Telephone number.");
        theForm.wphone.focus();
        return (false);
    }

  if (theForm.e_mail.value == "")
     {
        alert("Please enter an E-mail address.");
        theForm.e_mail.focus();
        return (false);
    }

  var pattern = (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/);
  if (theForm.e_mail.value.search(pattern) == -1)
    {
        alert("Please enter a valid E-mail address.");
        theForm.e_mail.focus();
        return (false);
	}
	
  if (theForm.query.value == "")
    {
   		alert("There has to be at least one Query / Question.");
   		theForm.query.focus();
  		return (false);
    }
	
}

 
