message to order our products







	$(“.brinyte-message-bottom input”).focus(function () {
		$(this).parent().siblings(“div”).addClass(“cur”);
	}).blur(function () {
		$(“.icon-1”).removeClass(“cur”);
	});
	$(‘.message-submit’).click(function() {
		var emailyz = /^([A-Za-z0-9_-.u4e00-u9fa5])+@([A-Za-z0-9_-.])+.([A-Za-z]{2,8})$/;
		var mname=$(“#mname”).val();
		var mphone=$(“#mphone”).val();
		var memail=$(“#memail”).val();
		var mcompany=$(“#mcompany”).val();
		var maddress=$(“#maddress”).val();
		var mcountry=$(“#mcountry”).val();
		var mmessage=$(“#mmessage”).val();
		var productname=$(“.brinyte-product-introduce .title-1”).html();
		var sncode = $(“#sncode”).val();
		var siteid = $(“.brinyte-message-from”).attr(“data”);
		if(!mname){alert(“Please enter your name”);$(“#mname”).focus();return false;}
		if(!mphone){alert(“Please enter your tel”);$(“#mphone”).focus();return false;}
		if(!memail){alert(“Please enter your E-mail”);$(“#memail”).focus();return false;}
		if(!(emailyz.test(memail))){alert(“Incorrect email format”);$(“#memail”).focus();return false;}
		if(!mmessage){alert(“Service inquiry message”);$(“#mmessage”).focus();return false;}
		if(!sncode){alert(“Please enter verification code”);$(“#sncode”).focus();return false;}
		if ($(“#mcheckbox”).get(0).checked) {}else{alert(“Please check a checkbox”);return false;}
		$(‘.send-mark’).removeClass(“cur”);
		$.ajax({
			url: “/mdata.php”,
			type: ‘post’,
			dataType:’json’,
			data:{“firstname”:mname,”phone”:mphone,”email”:memail,”company”:mcompany,”jobtitle”:maddress,”country”:mcountry,”message”:mmessage,”businesstype”:productname,”sncode”:sncode,”siteid”:siteid},
			success: function (res) {
				var code=res[‘code’];
				if(code==200){
					alert(“Successfully submitted!”);location.reload();$(‘.send-mark’).addClass(“cur”);
				}else if(code==400){
					alert(“Incorrect verification code”); $(‘.send-mark’).addClass(“cur”);clickcode();
				}else{
					alert(“Submission failed!”);$(‘.send-mark’).addClass(“cur”);
				}
			}
		});
	});
 
				 
				
 
				 
						 
						 
					
 
		 
		 
		 
		 
		 
		