<!--
 function setImage(champ, state)
  {
    var n = "i" + champ.name;
    if(state)
    {
      document[n].src = "../img/gif/im1.gif";
    }
	else
    {
      document[n].src = "../img/gif/im0.gif";
    }
  }

  function isEmpty(champ)
  {
    setImage(champ, false);
    var v = champ.value;
    var lng = v.length;
    if(lng==0)
    {
      window.alert("Le champ '" + champ.name + "' est vide");
      champ.focus();
	  setImage(champ, true);
      return true;
    }
    return false;
  }

  function badEmail(champ)
  {
    setImage(champ, false);
    var v = champ.value;
    if(v.indexOf("@")<0)
    {
      window.alert("L'email est invalide");
      champ.focus();
	  setImage(champ, true);
      return true;
    }
    return false;
  }

 function test()
  { 

	if( isEmpty(document.contact.nom) ) return false;	
    if( isEmpty(document.contact.contact) ) return false;    
    if( badEmail(document.contact.contact) ) return false;
   

    return true;
  } 
//-->