function FixJqText(str) { //str=encodeURIComponent(str); var tempstr = str.replace(/\+/g, "+"); //tempstr = tempstr.replace(/\&/g, "&"); return tempstr; } function ClearForm() { $("#order_name").val(""); $("#order_tel").val(""); $("#order_email").val(""); $("#order_title").val(""); $("#order_content").val(""); } function SendMsg() { var _name = $("#order_name").val(); var _tel = $("#order_tel").val().trim(); var _title = $("#order_title").val(); var _content = $("#order_content").val(); if (_name=="") { alert("请输入姓名"); return; } if (_tel=="") { alert("请输入电话"); return; } if (_title=="") { alert("请输入标题"); return; } if (_content=="") { alert("请输入内容"); return; } var vName= escape(FixJqText(_name)); var vTel = escape(FixJqText(_tel)); var vTitle = escape(FixJqText(_title)); var vContent = escape(FixJqText(_content)); //if(_content.length>1000){alert("写得有点多了吧");return;} // function (url, parameters, functionName) $(this).attr("disabled", "disabled"); $.ajax({ type: "POST", url: "/OutOpen/AddInquiry", data: { name: vName, company: '', siteLangId: vSiteLangId, ipAddress: vIpAddress, proId: $("#productID").val(), phone: vTel, //email: vEmail, title: vTitle, content: vContent, pageUrl: document.URL }, dataType: "json", error: function () { alert('发送成功'); ClearForm(); }, success: function (data) { $(this).removeAttr("disabled"); alert('发送成功'); ClearForm(); }, async: false }); return false; } /**********************************************/ document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
");