function controler_contact(f)
	{
		if (f.message.value=="") {alert("Entrez un message");return(false);}
		if (f.nom.value=="") {alert("Entrez votre nom");return(false);}
		//if (f.prenom.value=="") {alert("Entrez votre prénom");return(false);}
		//if (f.tel.value=="") {alert("Entrez votre téléphone");return(false);}
		var adresse2 = f.email.value;
		var place = adresse2.indexOf("@",1);
		var point = adresse2.indexOf(".",place+1);
		if ((place == -1)||(adresse2.length < 7)||(point == -1))
			{
				alert("Entrez une adresse email valide");return(false);
			}
		return (true);
	}
	
function controler_newsletter(f)
	{
        var adresse2 = f.email_nl.value;
		var place = adresse2.indexOf("@",1);
		var point = adresse2.indexOf(".",place+1);
		if ((place == -1)||(adresse2.length < 7)||(point == -1))
			{
				alert("Entrez une adresse email valide");return(false);
			}
		return (true);
	}
function controler_recherche(f)
	{
		if ((f.mot_cle.value=="") || (f.mot_cle.value=="Rechercher")) {alert("Entrez un mot-clé");return(false);}
		return (true);
	}
function FocusText(BoxName)
{
	if (BoxName.value == BoxName.defaultValue)
	{
	BoxName.value = '';
	}
}
function BlurText(BoxName)
{
	if (BoxName.value == '')
	{
	BoxName.value = BoxName.defaultValue;
	}
}

function confsuppr(url)
{
	if(confirm('etes-vous sur de vouloir supprimer cette donnée ?'))
     	window.location=(url+"&ref="+escape(document.location.href))
}
function confsuppr_form()
{
	if(confirm('etes-vous sur de vouloir supprimer cette donnée ?'))
     	return (true);
     else
     	return (false);
}
function arbo_click (prefixe, srcId) // ex; arbo_click("menu",2)
{ 	
	var menus = document.getElementsByName(prefixe)
	if (menus==undefined) {alert(prefixe + " non trouve");return}
    for (var x=1; x<=menus.length; x++)
    {
          if (x == srcId)
          {
               menus[x-1].style.display = ""
              // menus[x-1].focus()
          }
          else
          {
               menus[x-1].style.display = "none"
          }
     }
}
//MENU
function menuOver(this_){
  this_.style.backgroundColor='#FCD000';
  this_.style.color='#FFFFFF';
}
function menuOut(this_){
  this_.style.backgroundColor='#FFFAE3';
  this_.style.color='#3B4D81';
}

	
