function verifyForm(theForm) {
  var nameRE = new RegExp(
    "^\\s*[\\w]+(\\s+[\\w]+)*\\s*$",
    "i");
  var emailRE = new RegExp(
    "^\\s*[\\d\\w\\.]+@[\\d\\w\\.]+\\.[\\w]+\\s*$",
    "i");
  if (theForm) {
    if (theForm["nom"]
    && ! nameRE.test(theForm["nom"].value)) {
      theForm["nom"].focus();
      alert("Veuillez entrer votre nom");
      return false;
    }
    if (theForm["email"]
    && ! emailRE.test(theForm["email"].value)) {
      theForm["email"].focus();
      alert("Veuillez entrer votre email");
      return false;
    }
	if (theForm["telephone"]
    && ! nameRE.test(theForm["telephone"].value)) {
      theForm["telephone"].focus();
      alert("Veuillez entrer votre numéro de telephone");
      return false;
    }
  }
  return true;
}