function isNum(str)
  {
    for(i=0;i<str.length;i++)
    {
     if(str.charAt(i)>="0" && str.charAt(i)<="9")
     {
     }
     else
     {
	return 0;
     }
    }
     return 1;
  }
function checkGbookForm()
 {
	if (document.form1.name.value=="")
	{
	  alert("不会是无名氏吧^_^~,还是请高提贵笔写一下吧。");
	  document.form1.name.focus();
	  return false;
	}
	if (document.form1.name.value.length>20)
	{
		alert("不会吧名字这么长啊~当前字数:"+document.form1.content.value.length)
		document.form1.name.focus();
		return false;
	}

	if (document.form1.mail.value.length>30)
	{
		alert("邮件地址太长了..")
		document.form1.mail.focus();
		return false;
	}
	if (document.form1.home.value.length>200)
	{
		alert("主页地址太长了..")
		document.form1.home.focus();
		return false;
	}
	if (document.form1.content.value=="")
	{
		alert("不是吧，内容都不写，那我们怎么知道你想说什么呢？")
		document.form1.content.focus();
		return false;
	}
	if (document.form1.content.value.length>1000)
	{
		alert("字数过多了.最大允许字数为1000个.请言简意赅些~当前字数:"+document.form1.content.value.length)
		document.form1.content.focus();
		return false;
	}
		if (document.form1.rndNum.value=="")
	{
		alert("对不起，验证码必须正确填写");
		document.form1.rndNum.focus();
		return false;
	}
	return true;
	 
 }