function Validate_OpinionForm(theForm,lang){
	if(lang=='pt'){
		error_1 = 'Erro:\nDeverá preencher o campo Nome.';
		error_2 = 'Erro:\nDeverá preencher o campo Opinião.';
	}else{
		error_1 = 'Error:\nYou must fill the Name field.';
		error_2 = 'Error:\nYou must fill the Opinion field.';
	}
	if(theForm.name.value==''){
		alert(error_1);
		theForm.name.focus();
		return false;
	}
	if(theForm.opinion.value==''){
		alert(error_2);
		theForm.opinion.focus();
		return false;
	}
	return true;
}
function Validate_BookingForm(theForm,lang){
	if(lang=='pt'){
		error_1 = 'Erro:\nDeverá preencher o campo Nome.';
		error_2 = 'Erro:\nDeverá preencher os campos Telefone ou Telemóvel.';
		error_3 = 'Erro:\nDeverá preencher o campo Email correctamente.';
		error_4 = 'Erro:\nAs datas de chegada e partida deverão estar preenchidas.';
	}else{
		error_1 = 'Error:\nYou must fill the Name field.';
		error_2 = 'Error:\nYou must fill the fields Telephone or Mobile.';
		error_3 = 'Error:\nYou must fill the Email field correctly.';
		error_4 = 'Error:\nThe arrival and departure dates must be filled.';
	}
	if(theForm.name.value==''){
		alert(error_1);
		theForm.name.focus();
		return false;
	}
	emailFilter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
	if (!emailFilter.test(theForm.email.value)) {
		alert(error_3);
		theForm.email.focus();
		return false;
	}
	if(theForm.mobile.value==''&&theForm.telephone.value==''){
		alert(error_2);
		theForm.mobile.focus();
		return false;
	}
	if(theForm.arrival_date.value==''||theForm.departure_date.value==''){
		alert(error_4);
		theForm.arrival_date.focus();
		return false;
	}
	return true;
}