function loginform_onsubmit() {
  if(document.loginform.member_id.value=="")
  {
	  alert("请先填写会员ID！");
	  document.loginform.member_id.focus();
	  return false
  }
  if(isNaN(document.loginform.member_id.value))
  {
	  //alert("建议下次使用会员ID登录！");
	  //document.loginform.member_id.focus();
	  //document.loginform.member_id.select();
	  //return false
  }
  if(document.loginform.member_id.value.length<2)
  {
	  alert("会员昵称不能少于两个字符！");
	  document.loginform.member_id.focus();
	  return false
  }
  if(document.loginform.login_password.value=="")
  {
	  alert("请先填写登录密码！");
	  document.loginform.login_password.focus();
	  return false
  }
  if(document.loginform.login_password.value.length<4)
  {
	  alert("登录密码不正确！");
	  document.loginform.login_password.focus();
	  document.loginform.login_password.select();
	  return false
  }
  if(document.loginform.validate_number.value=="")
  {
	  alert("请先填写验证码！");
	  document.loginform.validate_number.focus();
	  return false
  }
}

document.write ('<table width="200" border="0" cellspacing="3" cellpadding="0" bgcolor="#ECECEC">');
document.write ('<form method="post" name="loginform" id="login_form" action="/login.asp" onsubmit="javascript:return loginform_onsubmit()">');
document.write ('  <tr height="5">');
document.write ('    <td width="35"></td>');
document.write ('    <td width="60"></td>');
document.write ('    <td width="105"></td>');
document.write ('  </tr>');
document.write ('  <tr>');
document.write ('    <td align="right"><img src="/images/user.gif" width="22" height="22" border="0"></td>');
document.write ('    <td>会员ID：</td>');
document.write ('    <td align="left"><input type="text" name="member_id" id="member_id" style="width:85px;"></td>');
document.write ('  </tr>');
document.write ('  <tr>');
document.write ('    <td align="right"><img src="/images/user.gif" width="22" height="22" border="0"></td>');
document.write ('    <td>密　码：</td>');
document.write ('    <td align="left"><input type="password" name="login_password" id="login_password" style="width:85px;"></td>');
document.write ('  </tr>');
document.write ('  <tr>');
document.write ('    <td align="right"><img src="/images/user.gif" width="22" height="22" border="0"></td>');
document.write ('    <td>验证码：</td>');
document.write ('    <td align="left"><input type="text" name="validate_number" id="validate_number" style="width:36px;">&nbsp;<img src="/public/validcode.asp" width="40" height="10"></td>');
document.write ('  </tr>');
document.write ('  <tr>');
document.write ('    <td colspan="3" height="50" valign="bottom"><input type="image" src="/images/login.gif" width="185" height="41" border="0" alt=""></td>');
document.write ('  </tr>');
document.write ('</form>');
document.write ('  <tr>');
document.write ('    <td colspan="3"><div class="login_line"></div></td>');
document.write ('  </tr>');
document.write ('  <tr height="26">');
document.write ('    <td colspan="3">');
document.write ('      <table width="100%" border="0" cellspacing="5" cellpadding="0">');
document.write ('        <tr>');
document.write ('          <td align="center"><div class="btn4" style="text-align:left;"><a href="/reg/" style="text-decoration:none;">免费注册</a></div></td>');
document.write ('          <td align="center"><div class="btn4" style="text-align:left;"><a disabled style="text-decoration:none;">忘记密码</a></div></td>');
document.write ('        </tr>');
document.write ('      </table>');
document.write ('    </td>');
document.write ('  </tr>');
document.write ('</table>');

