﻿
//双击自动滚屏代码结束
function CheckForm()
{
		if(document.Form1.Name.value=="")
		{
			alert("姓名不能为空！")
			document.Form1.Name.focus()
			return(false)
	 	 }
	   if(!document.Form1.Name.value.match(/^[a-zA-Z0-9_\u4e00-\u9fa5]+$/)) 
	   { 
		   document.Form1.Name.focus(); 
		   alert("笔名必须是字母、数字、下划线或者汉字！"); 
		   return (false); 
	   }

	   if(document.Form1.content.value=="")
	   {
		alert("内容不为空！")
		document.Form1.content.focus()
		  return(false)
		}
		if(document.Form1.content.value.length>600)
		{ 
			document.Form1.content.focus(); 
			alert("评论内容字数超过600！"); 
			return false;
		}
}
function doZoom(size)
{
 		document.getElementById('zoom').style.fontSize=size+'px'
}
