function show_email(name,domain) {
   document.write('<a class=lienvert href="mailto:' + name + '@' + domain + '">');
   document.write(name + '@' + domain + '</a>');
}

function validate_it(contact) {
   var error = 0;
   var error_message = 'Veuillez remplir tous les champs obligatoires';
   if ( contact.prenom.value == '') {
      error = 1;
      contact.prenom.style.background='#ffd';
   }
   else {
      contact.prenom.style.background='#fff';
   }
   if ( contact.nom.value == '') {
      error = 1;
      contact.nom.style.background='#ffd';
   }
   else {
      contact.nom.style.background='#fff';
   }

   if ( contact.societe.value == '') {
      error = 1;
      contact.societe.style.background='#ffd';
   }
   else {
      contact.societe.style.background='#fff';
   }

   var email = contact.email.value;
   if ( email == '') {
      error = 1;
      contact.email.style.background='#ffd';
   }
   else if ( !email.match(/^[a-z0-9_\-\.]+@[a-z0-9_\-\.]+$/i) ){
      error = 1;
      contact.email.style.background='#ffd';
      contact.email.value = '';
   }
   else {
      contact.email.style.background='#fff';
   }

   if ( contact.fonction.value == '') {
      error = 1;
      contact.fonction.style.background='#ffd';
   }
   else {
      contact.fonction.style.background='#fff';
   }

   if ( contact.message.value == '') {
      error = 1;
      contact.message.style.background='#ffd';
   }
   else {
      contact.message.style.background='#fff';
   }


   if (error) { 
      alert(error_message);
      return false;
   }
   else {
      return true;
   }
}
