function showSS(id){
	document.getElementById(id).style.display = "block";
}

function hideSS(id){
	document.getElementById(id).style.display = "none";
}

function verif_nombre(champ)
      {
    	var chiffres = new RegExp("[0-9]");
    	var verif;
    	var points = 0;
     
    	for(x = 0; x < champ.value.length; x++)
    	{
                verif = chiffres.test(champ.value.charAt(x));
    	    if(champ.value.charAt(x) == "."){points++;}
                if(points > 1){verif = false; points = 1;}
      	    if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
    	}
      }
      
      function verif_lettre(champ)
      {
    	var chiffres = new RegExp("[^0-9]");
    	var verif;
    	var points = 0;
     
    	for(x = 0; x < champ.value.length; x++)
    	{
                verif = chiffres.test(champ.value.charAt(x));
    	    if(champ.value.charAt(x) == "."){points++;}
                if(points > 1){verif = false; points = 1;}
      	    if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
    	}
      }
      
      function couleur(obj) {
      obj.style.backgroundColor = "#FFFFFF";
      }
      
      function check() {
      	var msg = "";
      
      		if (document.formulaire.email.value != "")	{
      		indexAroba = document.formulaire.email.value.indexOf('@');
      		indexPoint = document.formulaire.email.value.indexOf('.');
      		if ((indexAroba < 0) || (indexPoint < 0))		{
      		document.formulaire.email.style.backgroundColor = "#EF5858";
      			msg += "Le mail est incorrect\n";
      		}
      	}
      	else	{
      		document.formulaire.email.style.backgroundColor = "#EF5858";
      		msg += "Veuillez saisir votre mail.\n";
      	}
      
      if (document.formulaire.nom.value == "")	{
      		msg += "Veuillez saisir votre nom\n";
      		document.formulaire.nom.style.backgroundColor = "#EF5858";
      	}
      
      if (document.formulaire.prenom.value == "")	{
      		msg += "Veuillez saisir votre prenom\n";
      		document.formulaire.prenom.style.backgroundColor = "#EF5858";
      	}
      
      if (document.formulaire.message.value == "")	{
      		msg += "Veuillez saisir un message\n";
      		document.formulaire.message.style.backgroundColor = "#EF5858";
      	}
      	
      if (document.formulaire.tel.value == "")	{
      		msg += "Veuillez saisir votre téléphone\n";
      		document.formulaire.tel.style.backgroundColor = "#EF5858";
      	}
      
      	if (msg == "") return(true);
      	else	{
      		alert(msg);
      		return(false);
      	}
      }

