document.writeln("<script LANGUAGE=\"JavaScript\">");
document.writeln("function ChecklogForm()");
document.writeln("{");
document.writeln("       if (document.logForm.username.value == \"\")");
document.writeln("        {");
document.writeln("        alert(\"请填写您的帐号！\");");
document.writeln("		document.logForm.username.focus();");
document.writeln("        return (false);");
document.writeln("        }");
document.writeln("");
document.writeln("        var filter=\/^\\s*[.A-Za-z0-9_-]{5,15}\\s*$\/;");
document.writeln("        if (!filter.test(document.logForm.username.value)) { ");
document.writeln("                alert(\"用户名填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9 _ - .)长度不小于5个字符，不超过15个字符，注意不要使用空格。\"); ");
document.writeln("                document.logForm.username.focus();");
document.writeln("                document.logForm.username.select();");
document.writeln("                return (false); ");
document.writeln("                } ");
document.writeln("        ");
document.writeln("         if (document.logForm.password.value ==\"\") ");
document.writeln("         {");
document.writeln("         alert(\"请填写您的密码！\");");
document.writeln("         document.logForm.password.focus();");
document.writeln("         return (false); ");
document.writeln("         }");
document.writeln("		");
document.writeln("        var filter=\/^\\s*[.A-Za-z0-9_-]{5,15}\\s*$\/;");
document.writeln("        if (!filter.test(document.logForm.password.value)) { ");
document.writeln("                alert(\"密码填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9 _ - .)长度不小于5个字符，不超过15个字符，注意不要使用空格。\"); ");
document.writeln("                document.logForm.password.focus();");
document.writeln("                document.logForm.password.select();");
document.writeln("                return (false); ");
document.writeln("                } ");
document.writeln("                           ");
document.writeln("    document.logForm.submit()");
document.writeln("}");
document.writeln("<\/script>");

