function mensaje_alerta (campo)
{
	alert("Escriba un valor correcto para este Campo. Todos los campos marcados con (*) son obligatorios");
	campo.focus();
	return (false);
}

function validar_form (Form)
{
	if ( Form.institucion.value == "" )
	{
		return mensaje_alerta(Form.institucion);
	}
	
	if ( Form.nombre.value == "" )
	{
		return mensaje_alerta(Form.nombre);
	}

	if ( Form.telefono.value == "" )
	{
		return mensaje_alerta(Form.telefono);
	}

	if (( Form.num_personas.value == "" ) || ( isNaN(Form.num_personas.value) ))
	{
		return mensaje_alerta(Form.num_personas);
	}
	
	if ( Form.fecha_llegada.value == "" )
	{
		return mensaje_alerta(Form.fecha_llegada);
	}
	
	if ( Form.fecha_salida.value == "" )
	{
		return mensaje_alerta(Form.fecha_salida);
	}
	return (true);
}

function confirmar( page )
{
	if (confirm('¿Esta seguro de realizar esta acción?'))
	{
		document.location=page;
	}
}

function confirmar_eliminar( page )
{
	if (confirm('¿Esta seguro que desea ELIMINAR definitivamente este evento?'))
	{
		document.location=page;
	}
}