/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function selecciona(pag)
{
    document.form.action= pag
    document.form.submit()
}

function validardatos()
{
	var error='';

    if (document.form.nombre.value.length==0){
       error += "Por favor demos su nombre \n";
    }
	if (document.form.email.value.length==0){
       error += "El email es un campo requerido \n";
    }
	if (document.form.telefono.value.length==0){
       error += "El telefono es un campo requerido \n";
    }
	if (document.form.personas.value.length==0){
       error += "El numero de personas es requerido \n";
    }
	if (document.form.hora.value.length==0){
       error += "Por favor indique una hora aproximada de llegada \n";
    }
	if(error==''){
    	document.form.action="enviar_confirmacion.php";
    	document.form.submit();
	}
	else {
	 alert(error);
	 document.form.focus()
	 return;
	}
}

$(document).ready(function(){
	$("#slideshow").easySlider({
		auto:true,
		continuous:true
	});	
});


