function verifier_date() {
	alert(document.arrival.value);
}
function disable(what)

{

	if(what=="a1") 

	{

		var b1=document.form_reservation.b1.value;

		var c1=document.form_reservation.c1.value;

		if(b1!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.b1.focus();

		}



		if(c1!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.c1.focus();

		}

	}

	

	if(what=="b1") 

	{

		var a1=document.form_reservation.a1.value;

		var c1=document.form_reservation.c1.value;

		if(a1!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.a1.focus();

		}



		if(c1!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.c1.focus();

		}

	}

	

	if(what=="c1") 

	{

		var b1=document.form_reservation.b1.value;

		var a1=document.form_reservation.a1.value;

		if(b1!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.b1.focus();

		}



		if(a1!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.a1.focus();

		}

	}

	

	if(what=="a2") 

	{

		var b2=document.form_reservation.b2.value;

		var c2=document.form_reservation.c2.value;

		if(b2!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.b2.focus();

		}



		if(c2!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.c2.focus();

		}

	}

	

	if(what=="b2") 

	{

		var a2=document.form_reservation.a2.value;

		var c2=document.form_reservation.c2.value;

		if(a2!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.a2.focus();

		}



		if(c2!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.c2.focus();

		}

	}





	if(what=="c2") 

	{

		var a2=document.form_reservation.a2.value;

		var b2=document.form_reservation.b2.value;

		if(a2!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.a2.focus();

		}



		if(b2!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.b2.focus();

		}

	}



	if(what=="a3") 

	{

		var b3=document.form_reservation.b3.value;

		var c3=document.form_reservation.c3.value;

		if(b3!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.b3.focus();

		}



		if(c3!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.c3.focus();

		}

	}

	

	if(what=="b3") 

	{

		var a3=document.form_reservation.a3.value;

		var c3=document.form_reservation.c3.value;

		if(a3!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.a3.focus();

		}



		if(c3!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.c3.focus();

		}

	}





	if(what=="c3") 

	{

		var a3=document.form_reservation.a3.value;

		var b3=document.form_reservation.b3.value;

		if(a3!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.a3.focus();

		}



		if(b3!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.b3.focus();

		}

	}



	if(what=="a4") 

	{

		var b4=document.form_reservation.b4.value;

		var c4=document.form_reservation.c4.value;

		if(b4!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.b4.focus();

		}



		if(c4!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.c4.focus();

		}

	}

	

	if(what=="b4") 

	{

		var a4=document.form_reservation.a4.value;

		var c4=document.form_reservation.c4.value;

		if(a4!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.a4.focus();

		}



		if(c4!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.c4.focus();

		}

	}





	if(what=="c4") 

	{

		var a4=document.form_reservation.a4.value;

		var b4=document.form_reservation.b4.value;

		if(a4!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.a4.focus();

		}



		if(b4!="") 

		{ 

			alert("Please select another room type or delete your choice related to the same room type.");

			document.form_reservation.b4.focus();

		}

	}

}



function valider_contact()

{

	

	nom=document.form_contact.nom.value;

	email=document.form_contact.email.value;

	sujet=document.form_contact.sujet.value;

	message=document.form_contact.message.value;

	var vide=0;

	var msg=0;

	

	if(nom.length<4) vide++;

	if(email.length<10) vide++;

	if(sujet.length<4) vide++;

	if(message.length<15) msg++;

	

	if(vide!=0) {

		alert('Please fill all required fields and correctly in order we can respond to your request.');

		return false;

	} else

	    	if(msg!=0) {

					alert('Your message must contain more than '+message.length+' characters !');

					return false;

			} else return true;

		

}



function valider_reservation()

{

	

	nom=document.form_reservation.nom.value;

	prenom=document.form_reservation.prenom.value;

	email=document.form_reservation.email.value;

	adultes=document.form_reservation.adultes.value;

	enfants=document.form_reservation.enfants.value;

	var vide=0;

	

	if(nom.length<3) vide++;

	if(prenom.length<3) vide++;

	if(adultes.length==0) vide++;

	if(email.length<10) vide++;

	

	if(vide!=0) {

		alert('Please fill all required fields and correctly in order we can respond to your request.');

		return false;

	} else return true;

		

}



function popit(image)

{

window.open ("images.php?im="+image, 'RoyalHotel', 'height=270, width=370, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');

}



function poprix()

{

window.open ("prices.php", 'RoyalHotel', 'height=200, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');

}