function montre(id) {

	var d = document.getElementById(id);
		for (var i = 1; i<=6; i++) {
			if (document.getElementById('ss_menu_'+i)) {document.getElementById('ss_menu_'+i).style.display='none';}
		}
		
	if (d) 
	{
		d.style.display='block';
		return true;
	}
	
}

function cache(id) {
	var d = document.getElementById(id);
	if (d) 
	{
		d.style.display='none';
		//document.getElementById('menu1').className = '';
		return true;
	}
}

function checkform(){
	
	if( document.frm_contact.email.value == "")
	{
		alert('Le champ Email est obligatoire !');
		return false;
	}
	
	if(!verifiermail(document.frm_contact.email.value)){
		return false;
	}
	
	return true;
}

function verifiermail(mail) 
{
	//mail = ""+mail+"";
      if (!(mail.indexOf("@")>=0) )
	  {
         alert("Merci de saisir une adresse email valide !");
         return false
      }
	  
	  if(!(mail.lastIndexOf(".")<mail.length -2) || !(mail.lastIndexOf(".")>=mail.length -4)) 
	  {
         alert("Mail invalide !");
		 return false
      }
	  return true;
}