
function check_contact(form_name) {  

  error = false;
  form = form_name;
  error_message = "Merci de remplir ou corriger les champs suivants.\n\n";

  
  check_input("nom", '1', "Nom\n", true);
  check_input("prenom", '1', "Prenom\n", true);
  check_input("telephone", '1', "Telephone\n", true);
 
  check_input("captcha", '1', "Captcha\n", true);
 
  check_input_email("email", "Email\n", true);
  
  check_input("message", '1', "Message\n", true);
 
  if (error == true) {
    //alert(error_message);
	document.getElementById('alert').style.display = 'block';
	
    return false;
  } else {
	document.getElementById('alert').style.display = 'none';
    submitted = true;
    return true;
  }
}
