Contact Us - Technical Support & Product Inquiry
Inquiry
Thank you for your interest in FEITIAN’s products and services. If you would like to learn more, or have questions and wish to speak to a representative, please take a moment to complete our form and we will contact you shortly.
");}
},});}
$("#Inquiry_Submit").on("click",function(){var First_Name=$("#First_Name").val();if(First_Name =='') {alert('Please input your first name.');$("#First_Name").focus();return false;}
var Last_Name=$("#Last_Name").val();if(Last_Name =='') {alert('Please input your last name.');$("#Last_Name").focus();return false;}
var Company=$("#Company").val();if(Company =='') {alert('Please input your company name.');$("#Company").focus();return false;}
var Country=$("#Country").val();if(Country =='') {alert('Please input your country/region.');$("#Country").focus();return false;}
var email =$("#Email").val();if (email ==""){alert("Please input your email address.");$("#Email").focus();return false;}
var pattern =/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,20}$/;var chkFlag =pattern.test(email);if(!chkFlag){alert("Please input your correct email address.");$("#Email").focus();return false;}
var Source =$("#Source").val();if (Source ==""){alert("Please choose the way to know Feitian.");$("#Source").focus();return false;}
var Other_box_display =$("#Other_box").css("display");if(Other_box_display =='block'){var Other =$("#Other").val();if (Other ==""){alert("Please specify how you learned about FEITIAN.");$("#Other").focus();return false;}
}
var Message =$("#Message").val();if (Message ==""){alert("Please input your message.");$("#Message").focus();return false;}
var Optin =$("input:checkbox[name='Optin']:checked");if (Optin.length ==0){alert("You must agree to this before we can take your information.");$("#Optin").focus();return false;}
var InquiryAuthCode =$("#InquiryAuthCode").val();if (InquiryAuthCode ==""){alert("Please input your verification Code.");$("#InquiryAuthCode").focus();return false;}
var AuthCode_Check =new RegExp(/^[a-zA-Z2-9]{4}$/);var AuthCodeFlag =AuthCode_Check.test(InquiryAuthCode);if(!AuthCodeFlag){alert("Verification code format error.");$("#InquiryAuthCode").focus();return false;}
$('#Inquiry_Form').find("input, textarea, option:selected").each(function(e){var fieldData =$(this).val();var fieldID =$(this).attr('id');if($(this).is(':checkbox:checked')){fieldData =$(this).val();fieldID =$(this).attr('id');}else if($(this).is(':radio:checked')){fieldData =$(this).val();fieldID =$(this).attr('id');}else if($(this).is('option:selected')){fieldID =$(this).parent().attr('id');}
formData[fieldID] =fieldData;});console.log(formData);AjaxPost(formData);});