  function couleur(obj)
    {
    obj.style.backgroundColor = "#E7E7E7";
    }

  function checkfirst()
    {

  		var msg = "";
	   if (document.firstform.annee.value == "")
	      {
	  		msg += "\n- Veuillez renseigner l'année du bien.";
	  		document.firstform.annee.style.backgroundColor = "#0095CE";
	  		document.firstform.annee.style.color = "#000000";
	  		document.firstform.annee.focus();
	  	  }

	   if (document.firstform.vl.value == "")
	      {
	  		msg += "\n- Ce bien est-il destiné à la vente ou la location ?\n";
	  		document.firstform.vl.style.backgroundColor = "#0095CE";
	  		document.firstform.vl.style.color = "#000000";
	  		document.firstform.vl.focus();
	  	  }


	  	if (msg == "") return(true);
	  	else
	  	  {
	  		//alert(msg);
	  		return(false);
	  	  }

	}

  function checkexpress()
    {
	
  	var msg = "";
    ///////////////////vérification nom///////////////////
   if (document.firstform.nom.value == "")
      {
  		msg += "\nVeuillez nous indiquer votre nom\n";
  		document.firstform.nom.style.backgroundColor = "#0095CE";
  		document.firstform.nom.style.color = "#000000";
  		document.firstform.nom.focus();
  	  }
    ///////////////////vérification téléphone///////////////////
    if (document.firstform.tel.value != "")
      {
      var tmp = "";

      for(var i=0; i < document.firstform.tel.value.length; i++)
        {
        tmp = tmp + document.firstform.tel.value.charAt(i);
        if (document.firstform.tel.value.charAt(i) == " "){tmp = tmp.replace(" ","");}
        if (document.firstform.tel.value.charAt(i) == "/"){tmp = tmp.replace("/","");}
        if (document.firstform.tel.value.charAt(i) == "."){tmp = tmp.replace(".","");}
        if (document.firstform.tel.value.charAt(i) == "-"){tmp = tmp.replace("-","");}
        if (document.firstform.tel.value.charAt(i) == "("){tmp = tmp.replace("(","");}
        if (document.firstform.tel.value.charAt(i) == ")"){tmp = tmp.replace(")","");}
        if (document.firstform.tel.value.charAt(i) == ")"){tmp = tmp.replace("+","");}
        } 
        document.firstform.tel.value = tmp; 

      if (document.firstform.tel.value.length != 10)
        {
        msg += "\nLe numéro de téléphone doit avoir 10 chiffres\n";
        document.firstform.tel.style.backgroundColor = "#0095CE";
  		  document.firstform.tel.style.color = "#000000";
  		  document.firstform.tel.focus();
        }

      if (isNaN(document.firstform.tel.value))
        {
        msg += "\nLe numéro de téléphone ne peut contenir que des chiffres\n";
        document.firstform.tel.style.backgroundColor = "#0095CE";
  		  document.firstform.tel.style.color = "#000000";
  		  document.firstform.tel.focus();
  		  }
  	  }
    ///////////////////vérification téléphone vide///////////////////
    if (document.firstform.tel.value == "")
      {
      msg += "\nVeuillez saisir un numéro de téléphone\n";
  		document.firstform.tel.style.backgroundColor = "#0095CE";
  		document.firstform.tel.style.color = "#000000";
  		document.firstform.tel.focus();
  	  }
    ///////////////////vérification adresse mail///////////////////
    if (/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$/.exec(document.firstform.eml.value) == null) 
      { 
  		msg += "\nVotre adresse mail est invalide\n";
  		document.firstform.eml.style.backgroundColor = "#0095CE";
  		document.firstform.eml.style.color = "#000000";
  		document.firstform.eml.focus();
		  }
    ///////////////////vérification code postal///////////////////
    if (document.firstform.code.value != "")
      {
      if (document.firstform.code.value.length != 5)
        {
        msg += "\nLe code postal doit avoir 5 chiffres\n";
        document.firstform.code.style.backgroundColor = "#0095CE";
  	    document.firstform.code.style.color = "#000000";
  	    document.firstform.code.focus();
        }
      if (isNaN(document.firstform.code.value))
        {
        msg += "\nLe code postal ne peut contenir que des chiffres\n";
        document.firstform.code.style.backgroundColor = "#0095CE";
  	    document.firstform.code.style.color = "#000000";
  	    document.firstform.code.focus();
  	    }
  	  }
    if (document.firstform.code.value == "")
      {
      msg += "\nVeuillez saisir le code postal du lieu de l'expertise\n";
  		document.firstform.code.style.backgroundColor = "#0095CE";
  		document.firstform.code.style.color = "#000000";
  		document.firstform.code.focus();
  	  }

  	if (msg == "") return(true);
  	else
  	  {
  		//alert(msg);
  		return(false);
  	  }
    }