var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); jQuery(document).ready(function ($) { // wait until the document is ready $('#send').on('click', function(){ // when the button is clicked the code executes $('.error').fadeOut('slow'); // reset the error messages (hides them) var error = false; // we will set this true if the form isn't valid var name = $('input#name').val(); // get the value of the input field if(name == "" || name == " ") { $('#err-name').fadeIn('slow'); // show the error message error = true; // change the error state to true } var email_compare = /^([a-z0-9_.-]+)@([da-z.-]+).([a-z.]{2,6})$/; // Syntax to compare against input var email = $('input#email').val(); // get the value of the input field if (email == "" || email == " ") { // check if the field is empty $('#err-email').fadeIn('slow'); // error - empty error = true; }else if (!email_compare.test(email)) { // if it's not empty check the format against our email_compare variable $('#err-emailvld').fadeIn('slow'); // error - not right format error = true; } if(error == true) { $('#err-form').slideDown('slow'); return false; } var data_string = $('#ajax-form').serialize(); // Collect data from form $.ajax({ type: "POST", url: $('#ajax-form').attr('action'), data: data_string, timeout: 6000, error: function(request,error) { if (error == "timeout") { $('#err-timedout').slideDown('slow'); } else { $('#err-state').slideDown('slow'); $("#err-state").html('An error occurred: ' + error + ''); } }, success: function() { $('#ajax-form').slideUp('slow'); $('#ajaxsuccess').slideDown('slow'); } }); return false; // stops user browser being directed to the php file }); // end click function }); } /* FILE ARCHIVED ON 10:16:49 Feb 11, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:49:06 Jul 11, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 1.684 load_resource: 236.463 PetaboxLoader3.resolve: 115.555 PetaboxLoader3.datanode: 115.342 (2) loaddict: 43.159 */