%
Dim isPostedBack, regFormAction, regFormMethod
if request.form("firstLogin") = "" then isPostedBack = false else isPostedBack = true
if isPostedBack then
if request.form("jsenabled")="false" then
response.redirect (forumdir&"first.asp")
response.end
end if
end if
if isPostedBack then regFormAction = "regpro.asp" else regFormAction = "register.asp"
Dim regType, objRS, body, regText, arrBody
regType = Application(dbName&"regtype")
Dim objRegister
Set objRegister = new PGDCustomReg
%>
<%= Application(dbName&"forumtitle") %>
<%= OutputCSS() %>
>
<% call headerHTML() %>
<%
SELECT CASE regType
Case 0
regText = regNoRestrictDesc
Case 1
regText = regEmailReqDesc
Case 2
regText = regAdminReqDesc
Case 3
set objRS = server.createobject("adodb.recordset")
With objRS
.open dbOwnerPrefix&"spGetRegMsg(3)", datastore, , , adCmdStoredProc
if not (.eof and .bof) then arrBody = .getrows
.close
End With
set objRS = nothing
if isArray(arrBody) then body = ""&arrBody(0,0) else body = ""
body = replace(body,"#forumtitle#",Application(dbName&"ForumTitle"))
body = replace(body,VBCRLF,"
")
%>
<% call footerHTML() %>
<%
response.end
END SELECT
%>
<% call footerHTML() %>