1$(document).ready(function(){ 2 $("input[name=sendEnquiry1]").bind("click", function(){ 3 var error1 = true; 4 var error2 = true; 5 var error3 = true; 6 7 8 if ($("input[name=propertyinquiry_name]").val() == ""){ 9 $("#errorRequestFormName").show("fast"); 10 error1 = false; 11 }else{ 12 $("#errorRequestFormName").hide("fast"); 13 error1 = true; 14 } 15 16 var pattern = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])*([a-zA-Z])/; 17 if (pattern.test($("input[name=propertyinquiry_email]").val())){ 18 $("#errorRequestFormEmail").hide("fast"); 19 error2 = true; 20 }else{ 21 $("#errorRequestFormEmail").show("fast"); 22 error2 = false; 23 } 24 if ($("input[name=propertyinquiry_contact_phone]").val() == ""){ 25 $("#errorRequestFormPhone").show("fast"); 26 error3 = false; 27 }else{ 28 $("#errorRequestFormPhone").hide("fast"); 29 error3 = true; 30 } 31 32 var imageCodeRequest = $("input[name=image_codeRequest]").val(); 33 34 $.ajax({ 35 type: "GET", 36 url: "/checkSecurityCodeRequest1.php?code="+imageCodeRequest, 37 dataType: "html", 38 success: function(html){ 39 40 if(error1 && error2 && error3){ 41 if (html == "1"){ 42 document.forms['requestForm1'].submit(); 43 }else{ 44 $("#errorImageCodeRequest").empty(); 45 $("#errorImageCodeRequest").append(html); 46 $("#errorImageCodeRequest").fadeIn("fast"); 47 } 48 } 49 } 50 }); 51 }); 52}); 53
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.