/**
 *	ログイン
 */
function member_login() {
	document.member_form.action = "login.php";
	document.member_form.com.value = "login";
}

/**
 *	新規会員登録開始
 */
function intro() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "intro";

	document.member_form.submit();
}

/**
 *	規約に同意しない
 */
function agree_no() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "notagree";

	document.member_form.submit();

}

/**
 *	規約に同意する
 */
function agree_yes() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "form";

	document.member_form.submit();
}

/**
 *	郵便番号検索
 */
function zip_search() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "zipsearch";
}


/**
 *	確認する
 */
function confirm_form() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "confirm";
}

/**
 *	修正する
 */
function back_form() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "back_form";
}

/**
 *	登録する
 */
function regist() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "regist";
}

/**
 *	購入履歴一覧に戻る
 */
function back_history() {
	document.member_form.action = "history.php";
	document.member_form.com.value = "";
}

/**
 *	同じものをカゴに入れる
 */
function copy_shopping( shopingid ) {
	document.member_form.action = "shoping.php";
	document.member_form.com.value = "copy";

	document.member_form.shopingid.value = shopingid;
}

/**
 *	ログイン画面に戻る
 */
function back_login() {
	document.member_form.action = "password.php";
	document.member_form.com.value = "back_login";
}

/**
 *	パスワード送信
 */
function send_pass() {
	document.member_form.action = "password.php";
	document.member_form.com.value = "send_pass";
}

/**
 *
 */
function user_input() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "form";
}

/**
 *
 */
function login_form() {
	document.member_form.action = "login.php";
	document.member_form.com.value = "";

	document.member_form.submit();
}

/**
 *
 */
function user_confirm() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "confirm";
}

/**
 *
 */
function user_regist() {
	document.member_form.action = "regist.php";
	document.member_form.com.value = "regist";
}

/**
 *
 */
function chkinput(event) {
	if( event.type == "mousedown" ) {
		if( event.button != 1 ) {
			return( false );
		}
	}
	else if( event.type == "keydown" ) {
		if( event.ctrlKey && event.keyCode == 86 ) {
			return( false );
		}
	}

	return( true );
}
