function validation(){
	x = document.getElementById('txt-intresse');
	if(isEmpty(x.value)){
		alert('Veuillez entrer votre nom et votre téléphone!');
		x.focus();
		return;
	}
	if(x.value == "Inscrivez votre nom et téléphone"){
		alert('Veuillez entrer votre nom et votre téléphone!');
		x.focus();
		return;
	}
	document.forms['form-accueil'].submit();
}

function validation1(){
	x = document.getElementById('txt-nom');
	if(isEmpty(x.value)){
		alert('Veuillez entrer votre nom!');
		x.focus();
		return;
	}
	x = document.getElementById('txt-tel');
	if(isEmpty(x.value)){
		alert('Veuillez entrer votre téléphone!');
		x.focus();
		return;
	}
	x = document.getElementById('txt-message');
	if(isEmpty(x.value)){
		alert('Veuillez entrer un message!');
		x.focus();
		return;
	}

	document.forms['frm-contact'].submit();
}

function isEmpty(str){
	if(str == ""){
		return true;
	}
	else{
		return false;
	}
}

function isPhoneNum(str){
	if(x.value.length != 10 || isNaN(x.value) == true){
		return true;
	}
	else{
		return false;
	}
}

function isEmail(str){
	var arobas = str.indexOf("@",1);
	var point = str.indexOf(".",arobas+3);
	if(arobas > -1 && point > 1 && point+2 < str.length){
		return true;
	}
	else{
		return false;
	}
}

function isNumeric(str){
	if(!isNaN(str)){
		return true;
	}
	else{
		return false;
	}
}

