1 2function submitContactCircuitos(){ 3 $("#contactForm").hide(); 4 $("#formuEnviando").fadeIn('slow'); 5 $.post('contactarCircuitos.php',{ 6 contact_subject: $('#contact_subject').val(), 7 contact_name: $('#contact_name').val(), 8 contact_telefono: $('#contact_telefono').val(), 9 contact_email: $('#contact_email').val(), 10 contact_fecha: $('#contact_fecha').val(), 11 contact_pax: $('#contact_pax').val(), 12 contact_texto: $('#contact_texto').val() 13 },function(data){ 14 if(typeof(data)=='object'){ 15 setTimeout(function(){ 16 $("#formuEnviando").hide(); 17 $("#contactForm").fadeIn('slow'); 18 cadenaE="Hay errores en el formulario:\n\n"; 19 $(data).find('error').each(function(){ 20 key=$(this).attr('key'); 21 val=$(this).text() 22 cadenaE += val + "\n"; 23 }); 24 alert(cadenaE); 25 },1000); 26 }else{ 27 if(data!='ok') 28 alert(data); 29 setTimeout(function(){ 30 $("#formuEnviando").hide(); 31 redirect2(); 32 $("#formuEnviado").fadeIn('slow'); 33 },1000); 34 } 35 }) 36 37 38} 39 40 41 42function submitContactGeneralForm(){ 43 if($('#confirmar').attr('checked')==true){ 44 // ponemos los avisos de error a cero 45 seguir=0; 46 // reviso que algún checbox esté marcado 47 if($('#general').attr('checked')){ 48 seguir=1; 49 } 50 if($('#paquetes').attr('checked')){ 51 seguir=1; 52 } 53 if($('#actividades').attr('checked')){ 54 seguir=1; 55 } 56 if($('#alojamientos').attr('checked')){ 57 seguir=1; 58 } 59 if($('#alquiler').attr('checked')){ 60 seguir=1; 61 } 62 63 if(seguir==1){ 64 65 $("#contactForm").hide(); 66 $("#formuEnviando").fadeIn('slow'); 67 68 $.post('contactar.php', 69 { 70 general: $('#general').attr('checked'), 71 paquetes: $('#paquetes').attr('checked'), 72 actividades: $('#actividades').attr('checked'), 73 alojamientos: $('#alojamientos').attr('checked'), 74 alquiler: $('#alquiler').attr('checked'), 75 contact_name: $('#contact_name').val(), 76 contact_telefono: $('#contact_telefono').val(), 77 contact_email: $('#contact_email').val(), 78 contact_fecha: $('#contact_fecha').val(), 79 contact_pax: $('#contact_pax').val(), 80 contact_paquetes: $('#contact_paquetes').val(), 81 contact_actividades: $('#contact_actividades').val(), 82 contact_alojamientos: $('#contact_alojamientos').val(), 83 contact_texto: $('#contact_texto').val() 84 },function(data){ 85 if(typeof(data)=='object'){ 86 setTimeout(function(){ 87 $("#formuEnviando").hide(); 88 $("#contactForm").fadeIn('slow'); 89 cadenaE="Hay errores en el formulario:\n\n"; 90 $(data).find('error').each(function(){ 91 key=$(this).attr('key'); 92 val=$(this).text() 93 cadenaE += val + "\n"; 94 }); 95 alert(cadenaE); 96 },1000); 97 }else{ 98 if(data!='ok') 99 alert(data); 100 setTimeout(function(){ 101 $("#formuEnviando").hide(); 102 redirect(); 103 $("#formuEnviado").fadeIn('slow'); 104 },1000); 105 } 106 }) 107 }else{ 108 alert('Debe indicar el motivo de su consulta'); 109 } 110 111 }else{ 112 alert('Debes aceptar la política de privacidad'); 113 } 114 115} 116function redirect(){ 117 action="location.href='contacto.php'"; 118 setTimeout(action,5000); 119} 120function redirect2(){ 121 action="location.href=''"; 122 setTimeout(action,5000); 123}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.