
function showhideTextDiv(id)
{
	if (document.getElementById(id).style.display == 'none')
	{
		document.getElementById(id).style.display = 'block';
		return;
	}
	else
	{
		document.getElementById(id).style.display = 'none';
		return;
	}
}

function showhideMenu(id)
{
	if (document.getElementById(id))
	{
		if (document.getElementById(id).style.display == 'none')
		{
			document.getElementById(id).style.display = 'block';
			return;
		}
		else
		{
			document.getElementById(id).style.display = 'none';
			return;
		}
	}
}

function testvalidContact() {
	var f=document.formulaire;

	if(f.nom.value==""){
		alert("Veuillez indiquer votre nom !");
		f.nom.focus();
		return false;
	}
	
	if(f.mail.value==""){
		alert("Veuillez indiquer votre email !");
		f.mail.focus();
		return false;
	}

	adresse = f.mail.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
	{
	}
	else
	{
		alert('Entrez une adresse e-mail valide !');
		f.mail.focus();
		return(false);
	}

	if(f.demande.value==""){
		alert("Veuillez indiquer votre message !");
		f.demande.focus();
		return false;
	}

	f.submit();
	return true;
}

function faireDesEnfants(){
	var f=document.reservation;
	var i= 1;
	
	document.getElementById('agesenfants').innerHTML = '';
	
	for(f.nbchilds.value;i<=f.nbchilds.value;i++){
		document.getElementById('agesenfants').innerHTML = document.getElementById('agesenfants').innerHTML + '<label for="ages'+i+'">&Acirc;ge de l\'enfant '+i+' :</label><select id="ages'+i+'" name="ages'+i+'"><option value="1"> &lt; 1 </option>     <option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option></select>';
		
		
		// <input type="hidden" name="ages'+i+'" value="10" />';
	}
	
	
	return true;
}

