MAIL = new String(".-_@0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
NUMALPHA = new String("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");

//------------------------------------
// お問い合わせチェック
//------------------------------------
function checkContact()
{
	// 名前
	if(document.FUNC.userName.value == ""){
		window.alert("お名前を入力してください");
		return false;
	}

	// メールアドレス
	if(document.FUNC.email.value == ""){
		window.alert("メールアドレスを入力してください");
		return false;
	}
	inputLetters = new String(document.FUNC.email.value);
	for(i = 0; i < inputLetters.length; i++){
		if(MAIL.indexOf(inputLetters.charAt(i), 0) == -1){
			window.alert("メールアドレスは半角英数字で入力してください");
			return false;
		}
	}
	if((inputLetters.indexOf("@") == -1) || (inputLetters.indexOf(".") == -1)){
		window.alert("メールアドレスは正しく入力してください");
		return false;
	}

	// 内容
	if(document.FUNC.comment.value == ""){
		window.alert("お問い合わせ内容を入力してください");
		return false;
	}

	return true;
}

//------------------------------------
// お問い合わせチェック
//------------------------------------
function checkConsult()
{
	// 名前
	if(document.FUNC.userName.value == ""){
		window.alert("お名前を入力してください");
		return false;
	}

	// メールアドレス
	if(document.FUNC.email.value == ""){
		window.alert("メールアドレスを入力してください");
		return false;
	}
	inputLetters = new String(document.FUNC.email.value);
	for(i = 0; i < inputLetters.length; i++){
		if(MAIL.indexOf(inputLetters.charAt(i), 0) == -1){
			window.alert("メールアドレスは半角英数字で入力してください");
			return false;
		}
	}
	if((inputLetters.indexOf("@") == -1) || (inputLetters.indexOf(".") == -1)){
		window.alert("メールアドレスは正しく入力してください");
		return false;
	}

	//住所
	if(document.FUNC.prefecture.options[0].selected == true){
		window.alert("都道府県を選択してください");
		return false;
	}


}



