	
	/**
     * [関数名] chkComment
     * [機　能] MT/PCからのコメント入力チェック
     * [説　明] 
     * [引　数]
     * [返り値]
     * @return true/false
    */
	function chkComment ( frm ){
	
	//コメント入力内容の確認
		var chk = 0;

		var author = frm.elements[ 'author' ];
		var text = frm.elements[ 'text' ];
		var author_bakecookie = frm.elements[ 'bakecookie' ];		
		
		var author_out = trim(author.value);
		var text_out = trim(text.value);
		
		if ( author_out == "" ){
			alert ( "投稿者名を入れてくださいね");
			chk++;
		}else{
			
			if ( text_out == "" ){
				alert ( "コメントを入れてくださいね");
				chk++;
			}else{
				if ( chkBetweenLength_Han( text, 10 , 2048 , 'コメント' ) == false ){
					chk++;
				}
			}			
		}
			
		if ( chk == 0 ){
			//エラーなし
			if ( confirm ("投稿者名:" + author_out + "\n\n" + "コメント:\n"+ text_out + "\n\n\n\nこのコメントを投稿しますか？\n（※適切ではないと判断されたコメントはシステムにより自動的に削除される場合がございます。）") ){
				
				//alert ( author_bakecookie.checked );
					if ( author_bakecookie.checked == true ){
						var now = new Date();
						fixDate(now);
						now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
						//now = now.toGMTString();
						//alert(now);						
						setCookie( "telblogcommentauthor", author_out ,now );
						
					}else{
						//alert( 'cookieを消去します' );						
						deleteCookie( "telblogcommentauthor" );
					}
				document.getElementById("loadingimage").innerHTML = '<div align="center">コメントを登録しています・・・<br><IMG src="http://telblog.k-station.tv/_common_telblog/images/indicator.gif"></div>';
				
				frm.elements[ 'author' ].value = author_out + " ";
				frm.elements[ 'text' ].value = text_out + " ";
				
				return true;
				
			}else{				
				return false;
			}
		}else{
			//エラーあり
			return false;
		}
	}
	
	

	