%'*** Begin Right Portal Bar
If (advArray(26) OR scr_Name = "default.asp") AND Instr(scr_Name, "admin") = 0 AND _
NOT scr_Name = "update.asp" AND _
NOT scr_Name = "post_new2.asp" AND _
NOT scr_Name = "process.asp" Then
%>
<%
If advArray(28) then
%>
<%
End If
%>
<%
End If
If not sTarget = Empty then Application("Cat_List" & strUnique) = Empty
buildOptionList
Function buildOptionList()
Select Case Application("Cat_List" & strUnique)
Case Empty
set rscat = objConn.Execute("SELECT " & tablPfx & "Cat.catName, " & tablPfx & "Cat.catID FROM " & tablPfx & "Cat;")
optCatList = ""
If not rscat.EOF then
Do While Not rscat.EOF
catName = rscat(0)
catID = rscat(1)
If CStr(sTarget) = CStr(catID) then
build = true
optCatList = optCatList & ""
Else: optCatList = optCatList & ""
End If
rscat.MoveNext
Loop
End If
If not build then Application("Cat_List" & strUnique) = optCatList
rscat.close
set rscat = Nothing
Case Else
optCatList = Application("Cat_List" & strUnique)
End Select
End Function
%>