<% userPageRights="{sj}" %>
<!--#include file="check.asp"-->
<!--#include file="../include/HasString.asp"-->
<% if trim(request.QueryString("checkacc")) = "" then
   wronginfo = "非法请求！<br>请不要黑我们的网站！"
   else if len(trim(request.QueryString("checkacc"))) < 3 or len(trim(request.QueryString("checkacc"))) > 18 then
   wronginfo = "用户名长度为<strong>3～18</strong>个字符！"
   else if HasString(trim(request.QueryString("checkacc")), "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.-_") = false then
   wronginfo = "用户名由<strong>a～z</strong>的英文字母(不区分大小写)、<strong>0～9</strong>的数字、<strong>点</strong>、<strong>减号</strong>或<strong>下划线</strong>组成！"
   else
   sql = "select username from CityCard_League where username = '" & trim(request.QueryString("checkacc")) & "'"
   set account_check = Server.CreateObject("ADODB.Recordset")
   account_check.open sql,conn,1,1
   if not account_check.bof and not account_check.eof then
   wronginfo = "对不起，用户名 <span class=" & chr(34) & "red" & chr(34) & ">" & trim(request.QueryString("checkacc")) & "</span> 已经存在了！<br>请重新选择试试吧：）"
   else
   wronginfo = "恭喜恭喜！用户名 <span class=" & chr(34) & "red" & chr(34) & ">" & trim(request.QueryString("checkacc")) & "</span> 未被使用：）"
   end if
   account_check.close
   set account_check = nothing
   end if
   end if
   end if %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>检查黄冈信息港商家用户名</title>
<link href="../css/login.css" rel="stylesheet" type="text/css">
</head>

<body class="accounts_body">
<table width="320" height="160" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><font size="2"><%=wronginfo%></font><br><br>
<input type="button" value="关闭窗口" onClick="window.close()"></td>
  </tr>
</table>
</body>
</html>
<% conn.close
   set conn = nothing %>