%
Dim sFileName
Dim iPos
dim cnConnection
dim cmHash
dim rsHash
Dim bolHashExists
Dim strPreviousPage
Dim strIncidentID
Dim rs
Dim strHexIncidentID
Dim strEventName
Dim strNotes
Dim strComments
Dim strPrevLoadedFiles
Dim bolHighExists
Dim sPrevFileName
bolHighExists = false
Call CVerifyEntry
Call CSetPreviousPage
Call CCreateObjects
sFileName = unescape(Request.Cookies("ocaFileName"))
iPos = Instr(1, sFileName, ",")
if iPos <> 0 then
sFileName = Left(sFileName, iPos - 1)
end if
If oPassMgrObj.IsAuthenticated(TimeWindow, ForceLogin) = false then
Response.Redirect("http://" & Request.ServerVariables("SERVER_NAME") & "/welcome.asp")
Response.End
end if
Call CCreateConnection
bolHashExists = false
if Request.Cookies("Misc")("unassoc") = "false" then
if Request.Cookies("Misc")("auto") <> "True" then
Call CGetHash
Call CCheckValidate
'Response.Write "
" & bolHashExists
if bolHashExists = false then
if Request.Cookies("Misc")("txtIncidentID") = "" or (Len(Request.Cookies("Misc")("txtIncidentID")) = 4 and Request.Cookies("Misc")("txtIncidentID") = "~|~|") then
Call CGetIncidentID
if strIncidentID = "" or len(strIncidentID) = 0 then
Call CGetIncidentID
if strIncidentID = "" or len(trim(strIncidentID)) = 0 then
Response.Write "
" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "
" Response.Write "" & L_COMMENTS_DATABASE_FAILED_TEXT & "
" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "
" Response.Write "" & L_COMMENTS_DATABASE_FAILED_TEXT & "
" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "
" Response.Write "" & L_COMMENTS_CONNECTION_FAILED_TEXT & "