// JavaScript Document
// JavaScript Document
// VERIFICATION FORMULAIRE de CONTACT
function verification_Contact()
{
if(document.formContact.Nom.value == ""){
  alert("Saisissez votre nom svp. Your name please .");
  document.formContact.Nom.focus();
  return false;
 }
 
if(document.formContact.email.value == ""){
  alert("Entrer une adresse mail ! Your email address please !");
  document.formContact.email.focus();
  return false;
  }
   
if(document.formContact.email.value != ""){ 
	var ctl = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;  
  	if(document.formContact.email.value.search(ctl) == -1){
       alert("adresse mail Incorrecte. Invalid mail address");
	   document.formContact.email.focus();
	   return false }}
 
if(document.formContact.tel.value != ""){ 
  var ctl = /^(0[12345689])[ \.\-]?[0-9]{2}[ \.\-]?[0-9]{2}[ \.\-]?[0-9]{2}[ \.\-]?[0-9]{2}$/;
  if(document.formContact.tel.value.search(ctl) == -1){ 
  	var ctlInt =  /^(\+[0-9]{2})[ \.\-]?[0-9][ \.\-]?[0-9]{2}[ \.\-]?[0-9]{2}[ \.\-]?[0-9]{2}[ \.\-]?[0-9]{2}$/;
	if(document.formContact.tel.value.search(ctlInt) == -1){
       alert("N° de Téléphone invalide!\n Phone number invalid. !\nSaisissez:\n04 12 34 56 78 ou +33 1 23 45 67 89");
	   document.formContact.tel.focus();
	   return false }}}
else  {return true;} 
}


function envoi(){
 		 if(verification_Saisie()){
			 submit();}
		}
		
// redimmensionnement taille texte
function fontSize (size) {
	switch (size) {
		case '-':
			document.body.style.fontSize = parseInt(document.body.style.fontSize) - 2 + "px";
			break;
		case '+':
			document.body.style.fontSize = parseInt(document.body.style.fontSize) + 2 + "px";
			break;
		default:
			document.body.style.fontSize = "12px";
			break;
	}
}