// JavaScript Document

	function calcula() {

		document.getElementById('tipo').value = document.reservas.servicio.options[document.reservas.servicio.selectedIndex].text

	}


	function enviaform(fo,n) {

		if (checkfechareservavalida(fo.fechainicial.value,n) == true) {
			if (checkcamposnovacios(fo) == true) {
			   if (checkcampoalfabetico(fo.nombre.value) == true && checkcamponumerico(fo.telefono.value) == true) {
		   		  if (checkemail(fo.email.value) == true) {
				       calcula()
					   document.reservas.submit()
			      } else {
				    alert ("EMAIL no válido")
				  }
			   } else {
			     alert ("En campo NOMBRE usa sólo letras y en TELEFONO sólo números")
			   }
			}   
		}
	}
