function hf_fold(num) 
{	
		if (document.getElementById("hf").style.display == 'none')
		{	document.getElementById("hf").style.display = 'block';
			document.getElementById("comment_btn").innerHTML = "隐藏评论框";
			document.myform.remarkContent.focus();
		}
		else 
		{	document.getElementById("hf").style.display = 'none';
			document.getElementById("comment_btn").innerHTML = "我要发表评论";			
		}
}

function other_comment_fold(num) 
{	
		if (document.getElementById("other_comment").style.display == 'none')
		{	document.getElementById("other_comment").style.display = 'block';
			document.getElementById("all_comment").innerHTML = "显示最新的三条评论";
		}
		else 
		{	document.getElementById("other_comment").style.display = 'none';
			document.getElementById("all_comment").innerHTML = "阅读所有评论";
		}
}
function CheckForm() {
if (document.myform.remarkName.value=="")
{
  alert("请填写您的姓名")
  document.myform.remarkName.focus()
  return false
 }
if (document.myform.remarkContent.value=="")
{
  alert("请填写您的评论")
  document.myform.remarkContent.focus()
  return false
 }
}

function checkLength(which) 
{ 
	var maxChars = 500; 
	if (which.value.length > maxChars) 
		which.value = which.value.substring(0,maxChars); 
	var curr = maxChars - which.value.length; 
	document.getElementById("chLeft").innerHTML = curr.toString(); 
} 
