function check()
{
  if (trim(document.frm1.name.value)=="")
  {
        alert("请输入姓名！");
	document.frm1.name.focus();
	return false;
  }
  if (trim(document.frm1.company.value)=="")
  {
    alert("请输入公司名称！");
	document.frm1.company.focus();
	return false;
  }
  if (trim(document.frm1.email.value)=="")
  {
    alert("请输入E-mail！");
	document.frm1.email.focus();
	return false;
  }
  return true;  
}

function checkinput()
{
  if (trim(document.form1.username.value)=="")
    {
     alert("请输入用户名!");
     document.form1.username.focus();
     return(false);
    }
  if (trim(document.form1.password.value)=="")
    {
     alert("请输入登陆密码!");
     document.form1.password.focus();
     return(false);
    }
  return(true);
}
