上面是乱码,我的问题在这里(代码比较长,我分页写如,几页加起来就是这段完整的代码了:
这是一段注册的填写和验证代码,严整代码是JAVAScript写的,请高手指点问题出在哪
<script language="javascritp">
function VeruflInput()
  username=document.myform.username.value;
  if (username=="")
  {
      alert("请填写你的用户名")
          document.myform.username.focus();
          return false;
   }
   password=document.myform.password.value;
   if (password=="")
   {
      alert("请填写你的密码");
          document.myform.password.focus();
      return false;
        }
        password2=document.myform.password2.value;
        if (password2=="")
        {
           alert("请填写你的确认密码");
           document.myform.password2.focus();
           return false;
         }
         if (password2==password)
         {
         }
         else
         {
            alert("你两次输入的密码不相同");
                document.myform.password2.focus();
                return false; 
          }
          nickname=document.myform.nickname.value;
          if (nickname=="")
          {
             alert("请填写你的昵称");
                 document.myform.nickname.focus();
             return false;
          }
          truename=document.myform.truename.value;
          if (truename=="")
          {
             alert("请填写你的真实姓名");
                 document.myform.truename.focus();
                 return false;
           }
           email=document.myform.email.value;
           if (email=="")
           {
              alert("请填写你的email地址");
                  document.myform.emali.focus();
                  return false;
           }
           if (document.myform.email.value.length!=0)
             {
                 if (document.myform.email.value.charAt(0)=="."
                 || document.myform.email.value.charAt(0)=="@"||
                 document.myform.email.value.indexOf('@',0)==-1
                 || document.myform.email.value.indexOf('.',0)==-1
                 || document.myform.email.value.lastIndexOf("@")==document.myform.email.value.lenthg-1
                 || document.myform.email.value.lastIndexOf(".")==document.myform.emali.value.lenthg-1)
                  {
                     alert("请填写正确的email!");
                         document.myform.email.focus();
                         return false;
                   }
                   else
                   {
                     alert("email的不能为空");
                         document.myform.email.focus();
                         return false;
                        }
                        }
</script>