function loginform(mode){
document.write("<form action=\"login.asp\" method=\"POST\">");
document.write("<input type=\"hidden\" value=\"default_bbshxaf.asp\" name=\"url\">");
document.write("<table cellspacing=\"1\" cellpadding=\"0\" width=\"100%\" align=\"center\" border=\"0\" class=\"a2\">");
document.write("<tr class=\"a1\"><td colspan=\"3\" height=25>　<b>用户登录<\/b><\/td><\/tr>");
document.write("<tr>");
document.write("<td class=\"a3\" align=\"left\" valign=\"top\">　&nbsp");
document.write("帐号:<input name=\"UserName\" type=\"text\" maxlength=\"64\" id=\"username\" size=\"20\">&nbsp;");
document.write("密码:<input name=\"UserPass\" type=\"password\" maxlength=\"64\" id=\"userpass\" size=\"16\">&nbsp;");
if (mode==1){
document.write("验证码:<input name=\"VerifyCode\" type=\"text\" maxlength=\"64\" id=\"VerifyCode\" size=\"8\">&nbsp;");
document.write("<img src=\"verifycode.asp\" alt=\"验证码,看不清楚?请点击刷新验证码\" style=cursor:pointer onclick=\"this.src='verifycode.asp'\">");
}
document.write("　　<select name=\"CookieDate\" id=\"CookieDate\"><option value=\"0\">不保存<\/option><option value=\"1\">保存一天<\/option><option selected value=\"2\">保存一月<\/option><option value=\"3\">保存一年<\/option><\/select>");
document.write("<input type=\"submit\" name=\"submit1\" value=\"登录\" class=a3>");
document.write("　　　　<a href=\"usercreate.asp\">注册新用户<\/a>&nbsp;<a href=\"recoverpassword.asp\">忘记密码<\/a>");
document.write("<\/td>");
document.write("<\/tr>");
document.write("<\/table>");
document.write("<\/form>");
}


