function ValidaReserva(){
	
					if (document.FormularioReserva.nombre.value=='')
						{
							alert('Debe rellenar el campo nombre');
							document.FormularioReserva.nombre.focus();
							return (false);						}	
							
												  
					if (document.FormularioReserva.telefono.value=='' & document.FormularioReserva.email.value=='' )
						{
							alert('Los campos Teléfono y Email están vacios, debe proporcionar al establecimiento algún dato de contacto rellenando almenos alguno de los dos campos.');
							document.FormularioReserva.telefono.focus();
							return (false);
						}		
						
						
  if (document.FormularioReserva.telefono.value.length > 1 ){  
  var checkOK= "0123456789";
  var checkStr = document.FormularioReserva.telefono.value; 
  var allValid = true; 
  var decPoints = 0; 
  var allNum = ""; 
  
  for (i = 0; i < checkStr.length; i++) { 
    ch = checkStr.charAt(i); 
    for (j = 0; j < checkOK.length; j++) 
      if (ch == checkOK.charAt(j))
        break; 
    if (j == checkOK.length) { 
      allValid = false; 
      break; 
    } 
    allNum += ch; 
  } 
  
  if (!allValid) { 
    alert('El campo Teléfono solo puede contener dígitos. No deje espacios entre los dígitos');
    document.FormularioReserva.telefono.focus(); 
    return (false); 
  }
  
  }  
					
					
								
					if(document.forms.FormularioReserva.email.value != ''){
					var email = document.forms.FormularioReserva.email.value;
					var pos = email.indexOf("@");
					if (pos == -1)
						{
							alert('Debe introducir un valor e-mail válido en el campo E-Mail.');
							document.FormularioReserva.email.focus();
							return (false);
						}
					if ((pos == 0) || (pos == email.lenght-1)) 
						{
							alert('Debe introducir un valor e-mail válido en el campo E-Mail.');
							document.FormularioReserva.email.focus();
							return (false);
						}
					var pos2 = email.indexOf(".");
					if (pos2 == -1 || pos2 == email.lenght-1)
						{
							alert('Debe introducir un valor e-mail válido en el campo E-Mail.');
							document.FormularioReserva.email.focus();
							return (false);
						}
					
					for (i=0;i<email.lenght;i++)
						{
							if (email.charAt(i) == '' )
								{
									alert('Debe introducir un valor e-mail correcto en el campo E-Mail.');
									document.FormularioReserva.email.focus();
									return (false);
								}

						}}
																			
						if (document.FormularioReserva.fechainicio.value=='')
						{
							alert('Debe rellenar el campo fecha inicial, para ello pulse el botón situado a la derecha del campo fecha inicial y le aparecerá un calendario para seleccionar la fecha que desee.');
							document.FormularioReserva.fechainicio.focus();
							return (false);						}	
							
							if (document.FormularioReserva.fechafinal.value=='')
						{
							alert('Debe rellenar el campo fecha final, para ello pulse el botón situado a la derecha del campo fecha final y le aparecerá un calendario para seleccionar la fecha que desee.');
							document.FormularioReserva.fechafinal.focus();
							return (false);	                    }
							
							
						var fechainicio=document.FormularioReserva.fechainicio.value;
            	        fechainicio=fechainicio.substr(3,2)+'/'+fechainicio.substr(0,2)+'/'+fechainicio.substr(6,4);
 					    var fechafinal=document.FormularioReserva.fechafinal.value;
            	        fechafinal=fechafinal.substr(3,2)+'/'+fechafinal.substr(0,2)+'/'+fechafinal.substr(6,4);
					    fechainicio=new Date(fechainicio);
                        fechafinal=new Date(fechafinal); 
						tiempodesdefechainicio=fechainicio.getTime();
						tiempodesdefechafinal=fechafinal.getTime();						
						
						   if(tiempodesdefechainicio>tiempodesdefechafinal)
					   {
						   alert('La fecha de entrada no puede ser mayor a la fecha de salida');
						   document.FormularioReserva.fechafinal.focus();
						   return (false);	                   }
						   
							
					return (true);	
}
					
					
