"
response.write "You have reached this page in error. Please return to the
WorkWORLD Main Download Page to continue"
response.write "
"
else
sCookieEmailValue = "NoCookie"
'determine if email cookie exists
for each sCookieName in request.cookies
if sCookieName = "email" then
sCookieEmailValue = request.cookies("email")
exit for
end if
next
sUpdateMode="Add"
'email cookie exists
if sCookieEmailValue <> "NoCookie" and request.querystring("Action") <> "GetUser" then
sSQL = "SELECT * FROM contact WHERE email = '" & replace(sCookieEmailValue,"'","''") & "'"
set objRS= server.createobject("ADODB.recordset")
objRS.CursorLocation= adUseClient
objRS.ActiveConnection = objConn
objRS.open sSQL,objConn,1,1
parseHTTP sPrevHTTP,false
'if not coming in the first time
if request.Cookies("AccessUserInfo") = "True" then
'if not downloading the exe
'modified by Dave 07/23/02 so only WW products go to user agreement
'if right(sProductValue,3) <> "exe" then
if left(sProductValue,2) <> "WW" then
'go directly to download the file
session("Product") = sProductValue
session("ContactID") = objRS("contact_id")
response.redirect "downloaddbFile.asp"
'if downloading exe, then goto user agreement
else
response.redirect "downloadUserAgreement.asp?contact=" & objRS("contact_id") & "&product=" & sProductValue
end if
else
'if user doesn't exist
if sUser = "disconfirmed" or objRS.RecordCount = 0 or objRS.RecordCount = -1 then
if sFormValidationError="TRUE" then
displayErroredForm sProductValue
else
displayBlankForm sProductValue, "You can either enter new user information by filling out the fields below and clicking submit, or you can search for your user information by " & ""
response.write "
USER INFORMATION
"
response.write sMsg
response.write "
"
response.write "
"
end function
function displayFullFillForm(byval sFormMsg, byval sProduct)
dim i, sAnchorURL
sAnchorURL = "DownloadMain.html#" & left(request.querystring("product"),len(request.querystring("product"))-4)
response.write ""
response.write "
User Information
"
'display session message...will store any validation errors.
response.write "
The following errors have occurred:" & "
"& session("msg")
session("msg")=""
response.write "
"
response.write "
"
response.write "
"
response.write "
"
end function
function displayBlankForm(byVal sProduct, byVal sFormMessage)
dim i, sAnchorURL
'response.write "blank fill form"
response.write ""
response.write "
User Information
"
response.write sFormMessage
response.write "
"
response.write "
Add User
"
response.write "
"
response.write "
"
response.write "
"
response.write "