// 送信確認
function funcConfirm(){
	strConfirm="";

	strName = document.reviewpost.yourname.value;
	strMail = document.reviewpost.mailAddress.value;
	strFwname = document.reviewpost.fwname.value;
	intPrefectures = document.reviewpost.prefectures.value;
	strContents = document.reviewpost.contents.value;
	intContents = strContents.length;
	objMatch = new RegExp("^[0-9a-zA-Z\-\_\.]+@[0-9a-zA-Z]+\.[0-9a-zA-Z\-\_\.]+$","i");
	blnConfirm = false;
	if( strName == ""){
		// 名前が空白
		strConfirm=strConfirm + "ペンネームを正しく入力して下さい。\n";
		blnConfirm = true;
	}
	if( ((strMail.search(objMatch)==-1) && (strMail != "")) || strMail.search(objMatch)==-1) {
		// メールアドレスチックじゃない
		strConfirm=strConfirm + "連絡先メールアドレスを正しく入力して下さい。\n";
		blnConfirm = true;
	}
	if( strFwname == ""){
		// 観覧車名が空白
		strConfirm=strConfirm + "観覧者名を正しく入力して下さい。\n";
		blnConfirm = true;
	}
	if( intPrefectures == ""){
		// 所在地が未選択
		strConfirm=strConfirm + "所在地を選択して下さい。\n";
		blnConfirm = true;
	}
	if(intContents > 5000){
		// 5000文字以上
		strConfirm=strConfirm + intContents +"文字入力しています。5000文字以内で入力して下さい。\n";
		blnConfirm = true;
	}else if(intContents <= 1 || strContents == "ここに入力して下さい。"){
		strConfirm = strConfirm + "レビュー内容がありません。\n";
		blnConfirm = true;
	}
	if( blnConfirm == true ){
		// メッセージを出す
		confirm(strConfirm);
		return 16;
	}
	textclear();
	document.reviewpost.submit();
	return 1;
}

//消す
function textclear(){
	if( document.reviewpost.contents.value=="ここに入力して下さい。"){
		document.reviewpost.contents.value="";
	}
}

//戻る
function back(){
	document.reviewpost.act.value="";
	document.reviewpost.submit();
}



