$(function(){ /** * 確認画面へ */ $("#go_confirm").click(function(){ var data_item = $("#contact_form").serialize(); $.post("contact.php", data_item, function(text){ if (text == "error") { location.href = "index.php"; } else { location.href = "confirm.php"; } }); }); /** * リセット */ $("#go_reset").click(function(){ $.post("contact.php", { mode: "go_cancel" },function(){ location.href = "index.php?job_number=" + $("#job_number").val(); }); }); /** * 戻る */ $("#go_back").click(function(){ location.href = "index.php"; }); /** * 送信&完了ページ表示 */ $("#go_thanks").click(function(){ $.post("contact.php", { mode: "go_thanks" }, function(text){ if (text != "") { alert("このメッセージが表示された場合は、内容をお知らせください\n" + text); return; } location.href = "thanks.php"; }); }); }); function get_email() { var emailriddlerarray=[105,110,102,111,64,97,115,97,104,105,115,116,97,102,102,46,99,111,109] var encryptedemail_id29='' for (var i=0; i < emailriddlerarray.length; i++) encryptedemail_id29+=String.fromCharCode(emailriddlerarray[i]) return encryptedemail_id29; }