function chgtxt(s) {
	with (document.getElementById("thecharact").style) {
		if (""+fontSize == "") fontSize = "16px";
		if (s == "middle") fontSize = "16px";
		if (s == "small") {
			if ( parseInt(fontSize, 10) <= 12 )
				fontSize = (parseInt(fontSize, 10) - 1) +"px";
			else
				fontSize = "12px";
		}
		if (s == "big") {
			if ( parseInt(fontSize, 10) >= 18 )
				fontSize = (parseInt(fontSize, 10) + 2) +"px";
			else
				fontSize = "18px";
		}
		lineHeight = "170%";
	}

}
function checkComment() {
	if (document.formComment.cc_content.value == "")
	{
		alert ("不能发送空的评论内容");
		document.formComment.cc_content.focus();
		return false;

	}	
	else {
		if (document.formComment.cc_content.value.length > 500) {
			alert("评论内容包含" + formComment.cc_content.value.length + "个汉字或字母，请修改至500个以内！");
			formComment.cc_content.focus();
			return false;
		}
	}

	var len = document.formComment.cc_content.value.length;
	var str =  document.formComment.cc_content.value;
	var k = 0; 
	for(i=0; i<len;i++){
		 if(str.charAt(i)==" "||str.charAt(i)=="　"){
			k++;	
		}
    }
     if(len==k){
		alert ("不能发送空的评论内容");
		document.formComment.cc_content.focus();
		return false;

	}	
	if (document.formComment.cc_us_name.value == "")
	{
		document.formComment.cc_us_name.value = "网站浏览者";
	}
	wait();
	document.formComment.submit();

}
function wait(){
  try{
    document.all.function_buttons.innerHTML = "<p align='left'></br><b>系统正在</br>处理中，</br>请稍侯...</b></p>";  
  }catch(e){
  
  }
}