
function getAge(){
	return DifferenceJours(Maintenant(),
				new Date(document.getElementById('anneeDeReception').value,
								  document.getElementById('moisDeReception').value-1,
									document.getElementById('jourDeReception').value));
}


function isDateReceptionValide(){
	age = getAge();
	return (age > 0 && age < 8 && document.getElementById('jourDeReception').value > 0 && document.getElementById('moisDeReception').value > 0);
}

function verifDateReception(){
	verif('dateReception','La date n\'est pas valide',isDateReceptionValide());
}



function verifForm3(){
	if(isToutValide()){
		//document.getElementById('form3').submit();
	}else{
		afficheErreur();
	}
}

function isToutValide(){
	bool = isDateReceptionValide();
	return bool;
}


function afficheErreur(){
	verifDateReception();
}
