<!--#include file="conn.asp"-->
var checkp=0;
<%
u=DelStr(request("u"))
if u="" then
%>
document.getElementById("checkprint").innerHTML='<span class="checkprintn"><font style="font-size:11px">Χ</font> Please enter correct username!</span>';
<%elseif len(u)<3 or len(u)>15 then%>
document.getElementById("checkprint").innerHTML='<span class="checkprintn"><font style="font-size:11px">Χ</font> Please enter correct username (3-15 words)!</span>';
<%else
	set rsf=server.CreateObject("adodb.recordset")
	rsf.open "select * from WrzcNethtml_user where username='"&u&"'",conn,1,1
	if not rsf.eof then%>
	document.getElementById("checkprint").innerHTML='<span class="checkprintn"><font style="font-size:11px">Χ</font>   Username Existed!</span>';
	<%else%>
	document.getElementById("checkprint").innerHTML='<span class="checkprinty"><font style="font-size:11px">√</font> Available!</span>';
	<%
	end if
	rsf.close
	set rsf=nothing
end if
%>