// =========================== Mailing-List e-mail address validation ================================== 
function isValidEmail(emailAddress)
{   
   var atIndex     = emailAddress.indexOf('@')
   var dotIndex    = emailAddress.indexOf('.',atIndex)

         // check 0 < atIndex < dotindex < length
   if( (0 < atIndex) && (atIndex < dotIndex) && (dotIndex < emailAddress.length-1) )
   { 
           // first character is a letter and all other are not whitespace
      var firstChar = emailAddress.charAt(0)
      
      if( (firstChar>='a' && firstChar<='z') ||  
          (firstChar>='A' && firstChar<='Z') ||
          (firstChar>='0' && firstChar<='9') )
      { 
         for(var i=1;i<emailAddress.length;++i){
            if(emailAddress.charCodeAt(i) <= 0x20){
               if(emailAddress.charAt(i) == ' ')
                  alert("Votre adresse e-mail ne doit pas contenir d'espaces.")
               else 
                  alert("Votre adresse e-mail ne doit pas contenir les caractères \"" + emailAddress.charAt(i))
               return false;
            }    
         }
         return true;
          
      }
      alert("Le caractère \"" + firstChar + "\" de votre adresse e-mail est incorrect.")
   }
   alert("Veuillez inscrire votre adresse e-mail dans sa totalité.")
   return false;
}
//-->
// =============================== champs validation ==========================================
function isFillField(champsvaleur)
{
	if(champsvaleur!="")
		return true;
	else
	{
		alert("informations obligatoires à saisir");
		return false;
	}
}