	// Accepte une chaine de type 'int'
	var regExpInt=/^[0-9]{2}$/g;
	
	function matchRegularExpression(valeur, regularExpression)
	{
		var resultat = valeur.match(regularExpression);
		if(resultat!=null && resultat.length==1) return true;
		else return false;
	}
	
	
	function CheckAge(nom){
		if(document.getElementById(nom).value!="")
		{
			if(matchRegularExpression(document.getElementById(nom).value, regExpInt))
			{
				// alert('ok')
			}else{
				alert('Le champ age doit comporter 2 chiffres !')
				document.getElementById(nom).value = ''
				document.getElementById(nom).focus()
			}
		}
	}
	function CheckCP(nom){
		if(document.getElementById(nom).value!="")
		{
			if(matchRegularExpression(document.getElementById(nom).value, regExpInt))
			{
				// alert('ok')
			}else{
				alert('Le code postal doit comporter 2 chiffres !')
				document.getElementById(nom).value = ''
				document.getElementById(nom).focus()
			}
		}
	}

	function OuvreRech(){
		new Effect.BlindDown('Recherche', {duration:0.5, queue: 'parallel'});
	}
	function FermeRech(){
		new Effect.BlindUp('Recherche', {duration:0.5, queue: 'end'});
	}


