// JavaScript Document
function do_logout(){

	if (window.confirm("ログアウトしても宜しいですか？") == true){
		window.document.form1.logout.value = 1;
		window.document.form1.action = "logout.php";
		window.document.form1.target = "_self";
		window.document.form1.method = "POST";
		window.document.form1.submit();
	}
}

function do_login(){
	window.document.form1.k.value = '';
	window.document.form1.action = "login.php";
	window.document.form1.target = "_self";
	window.document.form1.method = "GET";
	window.document.form1.submit();
}
function do_super_search(){
	if (window.document.form1.k.value == '') {
		window.alert("ショップ名が未入力です。"); 	
	
	}
	else {
		window.document.form1.action = "super_search.php";
		window.document.form1.target = "_self";
		window.document.form1.method = "GET";
		window.document.form1.submit();
	}
}

function do_super_search_chk(event){
	if (event.keyCode == 13){
		do_super_search();
		return false;
	}
}

function do_super_all_search(){
	window.document.form1.action = "super_search.php";
	window.document.form1.k.value = '';
	window.document.form1.target = "_self";
	window.document.form1.method = "GET";
	window.document.form1.submit();
}

function do_ms_delete(as_code){
	if (window.confirm("このショップを削除してもよろしいですか？") == true){
		window.document.form1.action = "my_super.php";
		window.document.form1.s_code.value = as_code;
		window.document.form1.act.value = 3;
		window.document.form1.target = "_self";
		window.document.form1.method = "POST";
		window.document.form1.submit();
	}
}

function do_fs_update(ay,am,ad){
	if (window.confirm("家族の予定を更新しますか？") == true){
		window.document.form1.action = "family.php?y=" + ay + "&m=" + am + "&d=" + ad;
		window.document.form1.act.value = 1;
		window.document.form1.target = "_self";
		window.document.form1.method = "POST";
		window.document.form1.submit();
	}
}

