}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/; if (!myreg.test(strEmail)) { alert("E-Mail-Formatfehler"); $("input#Email").focus(); return false; } } if (strName == "") { if (true) { alert("Bitte geben Sie Ihre ein Name"); $("input#name").focus(); return false; } } if (strTel == "") { if (false) { alert("Bitte geben Sie Ihre ein Tel"); $("input#tel").focus(); return false; } } if (strMessage == "") { if (true) { alert("Bitte geben Sie Ihre ein Nachricht"); $("#content").focus(); return false; } } if (strCode == "") { $("#code").focus(); return false; } if (ttt == 1) { alert("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; }

Verwandte Produkte

8 Sitze MPV8 Sitze MPV

EX80 MPVEX80 MPV