<%@ Language=VBScript %>
<!--#include virtual="/inc/FreeHost-AG-Function.asp"-->
<%
If Request.Form ("username")="" or RegExpTest("[^A-Za-z0-9]",Request.Form ("username")) Then
	ef=True
	ec="用户名没填或非法！"
elseIf Request.Form ("password")="" Then
	ef=True
	ec="密码没填！"
'ElseIf (Request.Form ("Vcode")<>session("Vcode") or session("Vcode")="") and Request.Cookies("usernamecook")<>request.Form ("username") Then
'	ef=True
'	ec="验证码不正确！"
End If

If not ef Then
session("APIOPcookie")=""
session("username")=""
session("agentusername")=""
session.Timeout =25
APIret=POSTOP("/agent/agentlogin.asp",Request.form)
end If

if ef then
Response.Redirect "e.asp?e="&ec
end if%>