$(function()
{
	/* 入力フォーム  */
	$("#btn_send").click(function()
	{
		phpsus_post('#frmReq','check',function(res)
		{
			if (!confirm("ご入力いただいた内容でお申し込みいたします。\nよろしいですか？")) return false;
			phpsus_post('#frmReq','send',function(res)
			{
				location.href = './thanks.html';
			});
		});
		return false;
	});
	/* フォームのアクションはとめる */
	$("#frmReq").submit(function(){	return false; });

	/* 内覧希望のフォームのみ */
	$("#txt_day1").calendar(calconfig);
	$("#txt_day2").calendar(calconfig);
	$("#txt_day3").calendar(calconfig);
});
