5 s!"); return false; } ttt = 1; var timer1 = setTimeout("timerli()", 5000); try { var url = window.location.pathname; $.ajax({ type: "POST", url: "/js/AjaxData.ashx", data: "Action=AddBook1&Type=NewBook&Subject=" + encodeURIComponent(strSubject) + "&Company=" + encodeURIComponent(strCompany) + "&Email=" + encodeURIComponent(strEmail) + "&Name=" + encodeURIComponent(strName) + "&Url=" + encodeURIComponent(url) + "&Tel=" + encodeURIComponent(strTel) + "&Message=" + encodeURIComponent(strMessage) + "&Code=" + encodeURIComponent(strCode), success: function (ret) { if (ret == "200") { window.location.href = "/thank.html"; } else { alert(ret); } } }); } catch (ex) { alert("Erro" + ex); } } function timerli() { ttt = 0; } //重置时间