// JavaScript Document
function isEmail(email)
{
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	return (filter.test(email))
}
function checkTelephone(text, Fixe)
{
	text = text.replace(" ","")
	if (text == ""){return(true)}
	if (text.length != 10){return(false)}
	if (isNaN(text)){return(false)}
	if(text.substr(0,1) != "0"){return(false)}
	if (Fixe == true)
	{
		if(text.substr(0,1) != "0"){return(false)}
	}
	else
	{
		if(text.substr(0,2) != "06"){return(false)}
	}
	return(true)
}
function estVide(text)
{
	text = text.replace(" ","")
	if (text == ""){return(true)}
	return(false)
}

