<!--
// Fonction pour valider un email-----------------------------------------------
function check_email(e) {
ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

for(i=0; i < e.length ;i++){
if(ok.indexOf(e.charAt(i))<0){ 
return (false);
		}	
	  } 

if (document.images) {
re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
if (!e.match(re) && e.match(re_two)) {
return (-1);		
		} 
	  }
	}
// End--------------------------------------------------------------------------


// Fonction pour valider un formContactulaire--------------------------------------------
function VerifContact(){     

var Courriel = document.formContact.Email.value
var emailFilter=/^.+@.+\..{2,3}$/;
var illegalChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
var strError = "";
var strCountError = 0;

		if (Courriel == ""){          
		strError = "Please enter your Email<BR>"  
		strCountError = strCountError + 1;    
	}

		if (document.formContact.Commentaire.value == ""){       
		strError = ""+ strError +"Please enter your Question<BR>" 
		strCountError = strCountError + 1;              
	}

// ? la boite de texte Email contient un @ et un . ------------------------------------------------------------

		// Verification plus simple
		if ((!check_email(Courriel)) && (document.formContact.Email.value != "")) {      
		strError = ""+ strError +"Please enter your Email without space or illegal caracteres<BR>" 
		strCountError = strCountError + 1;             
	}    

// formContactulaire valide -----------------------------------------------------------------------------------------
	if (strError != "" )  {
	document.formContact.Email.focus();  
	ErrorMessage(strError,strCountError);
	return false; 
	}
	else
	document.formContact.btnContact.value = "true"
	document.formContact.btn.disabled = true
	return true;   
}

// End----------------------------------------------------------------------------------------------------------------
// --> 
