$(function(){ /** * 確認画面へ */ $("#go_confirm_u,#go_confirm_d").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_u,#go_reset_d").click(function(){ $.post("contact.php", { mode: "go_cancel" },function(){ location.href = "index.php"; }); }); /** * 戻る */ $("#go_back_u,#go_back_d").click(function(){ location.href = "index.php"; }); /** * 送信&完了ページ表示 */ $("#go_thanks_u,#go_thanks_d").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; }