// 送信確認
function funcConfirm(){
	strConfirm="";
	intclassification = document.mailpost.classification[1].checked;
	strName = document.mailpost.name.value;
	strMail = document.mailpost.mail.value;
	strContents = document.mailpost.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) && (intclassification == true)) ){
		// メールアドレスチックじゃない
		strConfirm=strConfirm + "メールアドレスを正しく入力して下さい。\n";
		blnConfirm = true;
	}
	if(intContents > 5000){
		// 5000文字以上
		strConfirm=strConfirm + intContents +"文字入力しています。5000文字以内で入力して下さい。\n";
		blnConfirm = true;
	}else if(intContents <= 1){
		strConfirm = strConfirm + "メールの本文がありません。\n";
		blnConfirm = true;
	}
	if( blnConfirm == true ){
		// メッセージを出す
		confirm(strConfirm);
		return 16;
	}
	document.mailpost.submit();
	return 1;
}

//消す
function textclear(){
	if( document.mailpost.contents.value=="ここに入力して下さい。"){
		document.mailpost.contents.value="";
	}
}

