// JavaScript Document

function checklogindata(theform)
{
if (theform.username.value == "")
{
alert("用户名称不能为空!");
theform.username.focus();
return false;
}
  var filter=/^\s*[.A-Za-z0-9_-]{5,15}\s*$/;
        if (!filter.test(theform.username.value)) { 
                alert("用户名填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9 _ - .) \n 长度不小于5个字符，不超过15个字符，注意不要使用空格。"); 
                theform.username.focus();
                theform.username.select();
                return (false); 
                } 
if (theform.password.value <6)
{
alert("用户密码不能为空或少于6位!");
theform.password.focus();
theform.password.select();
return false;
}

else
{
theform.Submit.disabled = true;
}
}
