<%
index = 0
Do while index <= maxItems
if items(index,0) <> currentItem then
If items(index,0) <> openItem then _
Response.Write("<a href='outline.asp?open=" & _
Server.URLEncode( items(index,0) ) & "'>" )
Response.Write( "<LI>" & items(index,0) & "</a>" )
End If
currentItem = items(index,0)
If items(index,0) = openItem then
Response.Write("<UL>")
Do While index <= maxItems AND items(index,0) = openItem
Response.Write( "<LI>" & items(index,1) )
index = index + 1
Loop
Response.Write("</UL>")
End If
index = index + 1
Loop
%>
</UL>
</BODY>
</HTML>