/*function CheckLand(theForm)       
{       
	if (theForm.UName.value == "")       
  {       
    alert("会员登录名还没填呢：）");       
    theForm.UName.focus();       
    return (false);       
  }
	if (theForm.Pwd.value == "")       
  {       
    alert("密码还没填呢：）");       
    theForm.Pwd.focus();       
    return (false);       
  }
	return (true);
} */   


function LeftIAgree(theValve)
{
   window.location=theValve;
}

function IAgree(theValve)
{
   window.location=theValve;
}



function CheckReg(theForm)       
{       
  if (theForm.UName.value == "")       
  {       
    alert("会员登录名还没填呢：）");       
    theForm.UName.focus();       
    return (false);       
  }       
  if (theForm.UName.value.length < 4)       
  {       
    alert("会员登录名太短会被别人盗用的：（");       
    theForm.UName.focus();       
    return (false);       
  }       
  var checkOK = "abcdefghijklmnopqrstuvwxyz0123456789_";       
  var checkStr = theForm.UName.value;       
  var allValid = true;       
  var decPoints = 0;       
  var allNum = "";       
  for (i = 0;  i < checkStr.length;  i++)       
  {       
    ch = checkStr.charAt(i);       
    for (j = 0;  j < checkOK.length;  j++)       
      if (ch == checkOK.charAt(j))       
        break;       
    if (j == checkOK.length)       
    {       
      allValid = false;       
      break;       
    }       
    if (ch != ",")       
      allNum += ch;       
  }       
  if (!allValid)       
  {       
    alert("会员登录名包含非法字符！!");       
    theForm.UName.focus();       
    return (false);       
  }       
  if (theForm.Pwd.value == "")       
  {       
    alert("没有密码是不成的：）");       
    theForm.Pwd.focus();       
    return (false);       
  }

  if (theForm.Pwd.value.length < 4)       
  {       
    alert("密码太短会被别人盗用的：（");       
    theForm.Pwd.focus();       
    return (false);       
  }
  if (theForm.Pwd.value != theForm.RePwd.value)       
  {       
    alert("两次输入的密码怎么会不一样呢？");       
    theForm.Pwd.focus();       
    return (false);       
  }
  if (theForm.Question.value == "")
  {
    alert("自设问题很有用的，比如说找回密码");
    theForm.Question.focus();
    return (false);
  }
  if (theForm.Answer.value == "")
  {
    alert("自设答案很有用的，比如说找回密码");
    theForm.Answer.focus();
    return (false);
  }
  if (theForm.Email.value == "")
  {
    alert("电子邮件不填，找回的密码给谁呢");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Email.value.length < 8)
  {
    alert("您的电子邮件写错了吧！");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Email.value.indexOf("@") < 2)
  {
    alert("您的电子邮件写错了吧！");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Email.value.lastIndexOf(".") < 5)
  {
    alert("您的电子邮件写错了吧！");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.RName.value == "")
  {
    alert("真实姓名 忘了写啦：）");
    theForm.RName.focus();
    return (false);
  }
 if (theForm.Company.value == "")
  {
    alert("为了更好的为您服务，您必需填上您的公司名称！！");
    theForm.Company.focus();
    return (false);
  }
	if (theForm.City.value == "")
  {
    alert("请填写你的所在城市！！");
    theForm.City.focus();
    return (false);
  }
	if (theForm.Tel.value == "")
  {
    alert("请填写你的电话！！");
    theForm.Tel.focus();
    return (false);
  }
  return (true);       
}     

function checkUser()
{
   //alert(RegForm.UName.value)
	 if (RegForm.UName.value=="")
	 {
	    alert("你还没有填写会员登录名，请填写！")
	 }
	 else
	 {
	     window.open("CheckReg.asp?UName="+RegForm.UName.value,"" ,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=50,left=120,width=250,height=150");
	 }
  
	 //"showProduct.asp","" ,"dialogWidth:640px;dialogHeight:480px;help:no;status:no"
}
