function submitContactForm(){return""==$('[name="name"]').val()?($("#modal-title").text("Incomplete Form"),$("#error-text").text("Please enter your name"),void $("#error-modal").modal("show")):""==$('[name="phone"]').val()&&""==$('[name="email"]').val()?($("#modal-title").text("Incomplete Form"),$("#error-text").text("Please enter either a phone number or e-mail address"),void $("#error-modal").modal("show")):($("#submit-spinner").removeClass("d-none"),$("#submit-span").addClass("d-none"),$("#submit-contact").prop("disabled",!0),void $.post("api/SubmitContact",$("#form-data").serialize()).fail((function(e){$("#modal-title").text("Error"),$("#error-text").text("We're so sorry but an error occurred.\r\nPlease call us at (757) 302-8754 to discuss your auction\r\n"+e.status+" "+e.statusText),$("#submit-spinner").addClass("d-none"),$("#submit-span").removeClass("d-none"),$("#verify-button").prop("disabled",!1),$("#error-modal").modal("show")})).done((function(e,o,t){$("#modal-title").text("Contact Info Received"),$("#error-text").text("Thanks for your interest! We'll be in touch soon."),$("#form-data").addClass("d-none"),$("#error-modal").modal("show")})))}$(document).ready((function(){$("#error-modal").modal({show:!1}),$('[name="phone"]').mask("(000) 000-0000")}));