Thanks for this file, very usefull.
Made some changes to it:
- added maximum links in index (creates extra index pages)
- javascript redirect (only with browsers)
- link in middle of the page
- all text hidden (same foreground and background color)
<%
'### Topic Maker MOD File ###
%>
<!--#INCLUDE FILE="config.asp"-->
<!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#INCLUDE FILE="inc_header.asp" -->
<!--#INCLUDE FILE="inc_func_common.asp" -->
<!--#INCLUDE FILE="inc_func_secure.asp" -->
<!--#INCLUDE FILE="inc_func_member.asp" -->
<%
'=================================================================================
'=============== User Settings ===================================================
'=================================================================================
'### Relative server path to the "Topic" folder - *** include final '/' ***
'### --- --- --- This folder MUST have write permissions --- --- --- ***
strTopicPath = "/topics/"
'###
'### URL to the "Topic" folder - *** include final '/' ***
strTopicURL = "/topics/"
'###
'### Make HTML pages for archived topics - *** 1 = yes, 0 = no ***
strArchivedTopic = 1
'###
Dim strWrite, strWrite2, strBackColor, strTmForeColor, strTmClickColor
Dim lngTmIndexCounter, lngTmTopicCounter, lngMaxTmTopicCounter, booTmJavascript
lngTmIndexCounter = 0
lngTmTopicCounter = 0
strTmBackColor = "#FFFFFF"
strTmForeColor = "#FFFFFF"
strTmClickColor = "#000000"
'### Maximum topics per index page *** 0 = no maximum
lngMaxTmTopicCounter = 0
'###
'### Automatically link to original topic with Javascript ***
booTmJavascript = true
'###
'=================================================================================
'=================================================================================
if Session(strCookieURL & "Approval") <> "15916941253" then
scriptname = split(request.servervariables("SCRIPT_NAME"),"/")
Response.Redirect "admin_login.asp?target=" & scriptname(ubound(scriptname))
end if
strSql = "SELECT TOPIC_ID FROM " & strTablePrefix & "TOPICS ORDER BY TOPIC_ID DESC"
strSql = TopSQL(strSql,1)
set countrs = my_conn.execute(strSql)
if countrs.Bof and countrs.eof then
'# do nothing
else
strMaxTopics = countrs("TOPIC_ID")
set countrs = nothing
strSql = "SELECT TOPIC_ID FROM " & strTablePrefix & "TOPICS ORDER BY TOPIC_ID ASC"
strSql = TopSQL(strSql,1)
set countrs = my_conn.execute(strSql)
strMinTopics = countrs("TOPIC_ID")
set countrs = nothing
if strMinTopics < 1 then
strMinTopics = 1
end if
Response.Write " <table border=""0"" width=""100%"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td width=""33%"" align=""left"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" " & getCurrentIcon(strIconFolderOpen,"","") & " <a href=""default.asp"">All Forums</a><br />" & vbNewLine & _
" " & getCurrentIcon(strIconBar,"","") & getCurrentIcon(strIconFolderOpen,"","") & " <a href=""admin_home.asp"">Admin Section</a><br />" & vbNewLine & _
" " & getCurrentIcon(strIconBlank,"","") & getCurrentIcon(strIconBar,"","") & getCurrentIcon(strIconFolderOpenTopic,"","") & " Topic Maker<br /></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" <table border=""0"" align=""center"" width=""100%"" cellspacing=""0"" cellpadding=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strPopUpBorderColor & """>" & vbNewLine & _
" <table border=""0"" cellspacing=""1"" cellpadding=""1"" align=""center"" width=""100%"">" & vbNewLine
Call Tm_IndexBegin(false)
for write_this = strMinTopics to strMaxTopics
strSql = "SELECT FORUM_ID, CAT_ID, T_AUTHOR, T_SUBJECT, T_MESSAGE"
strSql = strSql & " FROM " & strTablePrefix & "TOPICS"
strSql = strSql & " WHERE TOPIC_ID = " & write_this
set rsWrite = my_Conn.Execute (strSql)
strStatus = ""
strWrite = ""
if rsWrite.Bof and rsWrite.eof then
strStatus = "No such topic found."
else
set rsGetForum = my_Conn.Execute ("SELECT F_SUBJECT, F_PRIVATEFORUMS FROM " & strTablePrefix & "FORUM WHERE FORUM_ID =" & rsWrite("FORUM_ID"))
if rsGetForum("F_PRIVATEFORUMS") = 0 then
forum_name = rsGetForum("F_SUBJECT")
themessage = rsWrite("T_MESSAGE")
themessage = Replace(themessage, """", "")
strWrite = strWrite & "<html>" & vbNewLine
strWrite = strWrite & "<head>" & vbNewLine
strWrite = strWrite & Tm_InsertJavaScript(strForumURL & "topic.asp?TOPIC_ID=" & write_this)
strWrite = strWrite & "<title>" & strForumTitle & " - " & rsWrite("T_SUBJECT") & "</title>" & vbNewLine
if NOT (booTmJavascript = true) then
strWrite = strWrite & "<meta http-equiv=""Refresh"" content=""5; URL=" & strForumURL & "topic.asp?TOPIC_ID=" & write_this & """>" & vbNewLine
end if
strWrite = strWrite & "<meta name=""keywords"" content=""" & Replace(rsWrite("T_SUBJECT"), " ", ", ") & ", " & Replace(Replace(themessage, Chr(13) & Chr(10), ""), " ", ", ") & """>" & vbNewLine
strWrite = strWrite & "<meta name=""description"" content=""" & strForumTitle & " - " & rsWrite("T_SUBJECT") & """>" & vbNewLine
strWrite = strWrite & "<meta name=""copyright"" content=""Copyright © " & strCopyright & """>" & vbNewLine
strWrite = strWrite & "<meta name=""author"" content=""" & strForumTitle & """>" & vbNewLine
strWrite = strWrite & "<meta name=""revisit-after"" content=""1 day"">" & vbNewLine
strWrite = strWrite & "<meta name=""robot"" content=""all"">" & vbNewLine
strWrite = strWrite & "</head>" & vbNewLine
strWrite = strWrite & "<body bgColor=""" & strTmBackColor & """ text=""" & strTmForeColor & """ link=""" & strTmForeColor & """ aLink=""" & strTmForeColor & """ vLink=""" & strTmForeColor & """>" & vbNewLine
strWrite = strWrite & "<p><br></p><p><br></p><p><br></p><p><br></p><p align=""center"">" & vbNewLine
strWrite = strWrite & "<font color=""" & strTmClickColor & """><a href=""" & strForumURL & "topic.asp?TOPIC_ID=" & write_this & """><font color=""" & strTmClickColor & """>Click here to view this topic.</font></a></font>" & vbNewLine
strWrite = strWrite & " <br" & vbNewLine
strWrite = strWrite & "<table border=""0"" align=""center"" width=""100%"" cellspacing=""0"" cellpadding=""2"">" & vbNewLine
strWrite = strWrite & " <tr>" & vbNewLine
strWrite = strWrite & " <td align=""center"" colspan=""2""><font color=""" & strTmForeColor & """>" & rsWrite("T_SUBJECT") & "</font></td>" & vbNewLine
strWrite = strWrite & " </tr>" & vbNewLine
strWrite = strWrite & " <tr>" & vbNewLine
strWrite = strWrite & " <td align=""center"" valign=""top""><font color=""" & strTmForeColor & """>" & getMemberName(rsWrite("T_AUTHOR")) & "</font></td>" & vbNewLine
strWrite = strWrite & " <td><font color=""" & strTmForeColor & """>" & themessage & "</font></td>" & vbNewLine
strWrite = strWrite & " </tr>" & vbNewLine
lngTmTopicCounter = lngTmTopicCounter + 1
if (lngMaxTmTopicCounter <> 0) and (lngTmTopicCounter > lngMaxTmTopicCounter) then
Call Tm_IndexEnd(true)
Call Tm_IndexBegin(true)
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Index.</font></td>" & _
"</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
strWrite2 = strWrite2 & " <tr>" & vbNewLine
strWrite2 = strWrite2 & " <td><a href=""" & strTopicURL & write_this & ".htm" & """>Topic #" & write_this & "</a> - " & rsWrite("T_SUBJECT") & "</td>" & vbNewLine
strWrite2 = strWrite2 & " </tr>" & vbNewLine
strSql2 = "SELECT R_AUTHOR, R_MESSAGE "
strSql2 = strSql2 & " FROM " & strTablePrefix & "REPLY "
strSql2 = strSql2 & " WHERE TOPIC_ID = " & write_this
set rsWriteReply = my_Conn.Execute (strSql2)
do until rsWriteReply.eof
strWrite = strWrite & " <tr>" & vbNewLine
strWrite = strWrite & " <td align=""center"" valign=""top""><font color=""" & strTmForeColor & """>" & getMemberName(rsWriteReply("R_AUTHOR")) & "</font></td>" & vbNewLine
strWrite = strWrite & " <td align=""center"" valign=""top""><font color=""" & strTmForeColor & """>" & rsWriteReply("R_MESSAGE") & "</font></td>" & vbNewLine
strWrite = strWrite & " </tr>" & vbNewLine
rsWriteReply.MoveNext
loop
strWrite = strWrite & "</table>" & vbNewLine
strWrite = strWrite & "</body>" & vbNewLine
strWrite = strWrite & "</html>" & vbNewLine
Set ObjTopicFile = Server.CreateObject("Scripting.FileSystemObject")
TopicFile = Server.MapPath (strTopicPath & write_this & ".htm")
Set WriteTopicFile = ObjTopicFile.CreateTextFile (TopicFile, True)
WriteTopicFile.WriteLine(strWrite)
WriteTopicFile.Close
Set WriteTopicFile = Nothing
Set ObjTopicFile = Nothing
strStatus = "Success." & lngTmTopicCounter
else
strStatus = "Private."
end if
end if
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Done processing topic number " & write_this & " - "& strStatus & "</font></td>" & _
"</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
next
if strArchivedTopic then
strSql = "SELECT TOPIC_ID FROM " & strTablePrefix & "A_TOPICS ORDER BY TOPIC_ID DESC"
strSql = TopSQL(strSql,1)
set countrs = my_conn.execute(strSql)
if countrs.Bof and countrs.eof then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>There are no archived topics to process.</font></td>" & _
"</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
else
strMaxTopics = countrs("TOPIC_ID")
set countrs = nothing
strSql = "SELECT TOPIC_ID FROM " & strTablePrefix & "A_TOPICS ORDER BY TOPIC_ID ASC"
strSql = TopSQL(strSql,1)
set countrs = my_conn.execute(strSql)
strMinTopics = countrs("TOPIC_ID")
set countrs = nothing
if strMinTopics < 1 then
strMinTopics = 1
end if
for write_this = strMinTopics to strMaxTopics
strSql = "SELECT FORUM_ID, CAT_ID, T_AUTHOR, T_SUBJECT, T_MESSAGE"
strSql = strSql & " FROM " & strTablePrefix & "A_TOPICS"
strSql = strSql & " WHERE TOPIC_ID = " & write_this
set rsWrite = my_Conn.Execute (strSql)
strStatus = ""
strWrite = ""
if rsWrite.Bof and rsWrite.eof then
strStatus = "No such archived topic found."
else
set rsGetForum = my_Conn.Execute ("SELECT F_SUBJECT, F_PRIVATEFORUMS FROM " & strTablePrefix & "FORUM WHERE FORUM_ID =" & rsWrite("FORUM_ID"))
if rsGetForum("F_PRIVATEFORUMS") = 0 then
forum_name = rsGetForum("F_SUBJECT")
themessage = rsWrite("T_MESSAGE")
themessage = Replace(themessage, """", "")
strWrite = strWrite & "<html>" & vbNewLine
strWrite = strWrite & "<head>" & vbNewLine
strWrite = strWrite & Tm_InsertJavaScript(strForumURL & "topic.asp?TOPIC_ID=" & write_this)
strWrite = strWrite & "<title>" & strForumTitle & " - " & rsWrite("T_SUBJECT") & "</title>" & vbNewLine
if NOT (booTmJavascript = true) then
strWrite = strWrite & "<meta http-equiv=""Refresh"" content=""5; URL=" & strForumURL & "topic.asp?TOPIC_ID=" & write_this & """>" & vbNewLine
end if
strWrite = strWrite & "<meta name=""keywords"" content=""" & Replace(rsWrite("T_SUBJECT"), " ", ", ") & ", " & Replace(Replace(themessage, Chr(13) & Chr(10), ""), " ", ", ") & """>" & vbNewLine
strWrite = strWrite & "<meta name=""description"" content=""" & strForumTitle & " - " & rsWrite("T_SUBJECT") & """>" & vbNewLine
strWrite = strWrite & "<meta name=""copyright"" content=""Copyright © " & strCopyright & """>" & vbNewLine
strWrite = strWrite & "<meta name=""author"" content=""" & strForumTitle & """>" & vbNewLine
strWrite = strWrite & "<meta name=""revisit-after"" content=""1 day"">" & vbNewLine
strWrite = strWrite & "<meta name=""robot"" content=""all"">" & vbNewLine
strWrite = strWrite & "</head>" & vbNewLine
strWrite = strWrite & "<body bgColor=""" & strTmBackColor & """ text=""" & strTmForeColor & """ link=""" & strTmForeColor & """ aLink=""" & strTmForeColor & """ vLink=""" & strTmForeColor & """>" & vbNewLine
strWrite = strWrite & "<p><br></p><p><br></p><p><br></p><p><br></p><p align=""center"">" & vbNewLine
strWrite = strWrite & "<font color=""" & strTmClickColor & """><a href=""" & strForumURL & "topic.asp?TOPIC_ID=" & write_this & """><font color=""" & strTmClickColor & """>Click here to view this topic.</font></a></font>" & vbNewLine
strWrite = strWrite & " <br" & vbNewLine
strWrite = strWrite & "<table border=""0"" align=""center"" width=""100%"" cellspacing=""0"" cellpadding=""2"">" & vbNewLine
strWrite = strWrite & " <tr>" & vbNewLine
strWrite = strWrite & " <td align=""center"" colspan=""2""><font color=""" & strTmForeColor & """>" & rsWrite("T_SUBJECT") & "</font></td>" & vbNewLine
strWrite = strWrite & " </tr>" & vbNewLine
strWrite = strWrite & " <tr>" & vbNewLine
strWrite = strWrite & " <td align=""center"" valign=""top""><font color=""" & strTmForeColor & """>" & getMemberName(rsWrite("T_AUTHOR")) & "</font></td>" & vbNewLine
strWrite = strWrite & " <td><font color=""" & strTmForeColor & """>" & themessage & "</font></td>" & vbNewLine
strWrite = strWrite & " </tr>" & vbNewLine
lngTmTopicCounter = lngTmTopicCounter + 1
if (lngMaxTmTopicCounter <> 0) and (lngTmTopicCounter > lngMaxTmTopicCounter) then
Call Tm_IndexEnd(true)
Call Tm_IndexBegin(true)
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Index.</font></td>" & _
"</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
strWrite2 = strWrite2 & " <tr>" & vbNewLine
strWrite2 = strWrite2 & " <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""" & strTopicURL & write_this & ".htm" & """>Topic #" & write_this & "</a> - " & rsWrite("T_SUBJECT") & "</font></td>" & vbNewLine
strWrite2 = strWrite2 & " </tr>" & vbNewLine
strSql2 = "SELECT R_AUTHOR, R_MESSAGE "
strSql2 = strSql2 & " FROM " & strTablePrefix & "A_REPLY "
strSql2 = strSql2 & " WHERE TOPIC_ID = " & write_this
set rsWriteReply = my_Conn.Execute (strSql2)
do until rsWriteReply.eof
strWrite = strWrite & " <tr>" & vbNewLine
strWrite = strWrite & " <td align=""center"" valign=""top""><font color=""" & strTmForeColor & """>" & getMemberName(rsWriteReply("R_AUTHOR")) & "</font></td>" & vbNewLine
strWrite = strWrite & " <td align=""center"" valign=""top""><font color=""" & strTmForeColor & """>" & rsWriteReply("R_MESSAGE") & "</font></td>" & vbNewLine
strWrite = strWrite & " </tr>" & vbNewLine
rsWriteReply.MoveNext
loop
strWrite = strWrite & "</table>" & vbNewLine
strWrite = strWrite & "</body>" & vbNewLine
strWrite = strWrite & "</html>" & vbNewLine
Set ObjTopicFile = Server.CreateObject("Scripting.FileSystemObject")
TopicFile = Server.MapPath (strTopicPath & write_this & ".htm")
Set WriteTopicFile = ObjTopicFile.CreateTextFile (TopicFile, True)
WriteTopicFile.WriteLine(strWrite)
WriteTopicFile.Close
Set WriteTopicFile = Nothing
Set ObjTopicFile = Nothing
strStatus = "Success."
else
strStatus = "Private."
end if
end if
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Done processing archived topic number " & write_this & " - "& strStatus & "</font></td>" & _
"</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
next
end if
end if
Call Tm_IndexEnd(false)
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & lngTmIndexCounter & " Index file(s).</font></td>" & _
"</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
Response.Write " </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><br /><a href=""admin_home.asp"">Admin Section</a></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" <br />" & vbNewLine
end if
WriteFooter
Sub Tm_IndexBegin(booPrepareForNext)
if (booPrepareForNext = true) then
lngTmTopicCounter = 1
end if
strWrite2 = ""
strWrite2 = strWrite2 & "<html>" & vbNewLine
strWrite2 = strWrite2 & "<head>" & vbNewLine
strWrite2 = strWrite2 & Tm_InsertJavaScript(strForumURL & "default.asp")
strWrite2 = strWrite2 & "<title>" & strForumTitle & " Topics</title>" & vbNewLine
if NOT (booTmJavascript = true) then
strWrite = strWrite & "<meta http-equiv=""Refresh"" content=""5; URL=" & strForumURL & "default.asp"">" & vbNewLine
end if
strWrite2 = strWrite2 & "<meta name=""copyright"" content=""Copyright © " & strCopyright & """>" & vbNewLine
strWrite2 = strWrite2 & "<meta name=""author"" content=""" & strForumTitle & lngTmIndexCounter & """>" & vbNewLine
strWrite2 = strWrite2 & "<meta name=""revisit-after"" content=""1 day"">" & vbNewLine
strWrite2 = strWrite2 & "<meta name=""robot"" content=""all"">" & vbNewLine
strWrite2 = strWrite2 & "</head>" & vbNewLine
strWrite2 = strWrite2 & "<body text=""" & strDefaultFontColor & """>" & vbNewLine
strWrite2 = strWrite2 & "<table border=""0"" align=""center"" width=""100%"" cellspacing=""0"" cellpadding=""2"">" & vbNewLine
strWrite2 = strWrite2 & " <tr>" & vbNewLine
strWrite2 = strWrite2 & " <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>" & strForumTitle & " Topics</b></font></td>" & vbNewLine
strWrite2 = strWrite2 & " </tr>" & vbNewLine
strWrite2 = strWrite2 & " <tr>" & vbNewLine
strWrite2 = strWrite2 & " <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """> </font></td>" & vbNewLine
strWrite2 = strWrite2 & " </tr>" & vbNewLine
End Sub
Sub Tm_IndexEnd(booPrepareForNext)
Dim strFileName, strNextFileName
if (lngTmIndexCounter = 0) then
strFileName = "default.htm"
else
strFileName = "nextpage" & lngTmIndexCounter & ".htm"
end if
if (booPrepareForNext = true) then
strNextFileName = "nextpage" & (lngTmIndexCounter + 1) & ".htm"
strWrite2 = strWrite2 & " <tr>" & vbNewLine
strWrite2 = strWrite2 & " <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""" & strNextFileName & """>Next Page..</a></font></td>" & vbNewLine
strWrite2 = strWrite2 & " </tr>" & vbNewLine
end if
strWrite2 = strWrite2 & "</table>" & vbNewLine
strWrite2 = strWrite2 & "</body>" & vbNewLine
strWrite2 = strWrite2 & "</html>" & vbNewLine
Set ObjTopicFile = Server.CreateObject("Scripting.FileSystemObject")
TopicFile = Server.MapPath (strTopicPath & strFileName)
Set WriteTopicFile = ObjTopicFile.CreateTextFile (TopicFile, True)
WriteTopicFile.WriteLine(strWrite2)
WriteTopicFile.Close
Set WriteTopicFile = Nothing
Set ObjTopicFile = Nothing
lngTmIndexCounter = lngTmIndexCounter + 1
End Sub
Function Tm_InsertJavaScript(strLink)
Tm_InsertJavaScript = ""
if (booTmJavascript = true) then
Tm_InsertJavaScript = "" & _
"<script language=""javascript""> " & vbNewLine & _
"<!-- " & vbNewLine & _
"var sRedirect = """ & strLink & """; " & vbNewLine & _
"var sAgent = navigator.userAgent; " & vbNewLine & _
"var oBC = new caps(); " & vbNewLine & _
"var sThisURL = unescape(window.location.href);" & vbNewLine & _
"var sNewURL = sThisURL.substring(sThisURL.indexOf('?')+1, sThisURL.length);" & vbNewLine & _
"var NS = (oBC.bNav && oBC.iMajorVer >= 3) " & vbNewLine & _
"var MSIE = (oBC.bIE && oBC.iMajorVer >= 4) " & vbNewLine & _
" " & vbNewLine & _
"// redirect " & vbNewLine & _
"if (NS || MSIE) { " & vbNewLine & _
" location.replace(sRedirect); " & vbNewLine & _
"} " & vbNewLine & _
" " & vbNewLine & _
"//build oBC object " & vbNewLine & _
"function caps(){ " & vbNewLine & _
" if (sAgent.indexOf('MSIE')!=-1) " & vbNewLine & _
" this.iMajorVer = sAgent.charAt(sAgent.indexOf('MSIE')+5)" & vbNewLine & _
" else " & vbNewLine & _
" this.iMajorVer = sAgent.charAt(8) " & vbNewLine & _
" " & vbNewLine & _
" if (sAgent.indexOf('MSIE') !=-1) " & vbNewLine & _
" this.bIE = true " & vbNewLine & _
" else " & vbNewLine & _
" if ((sAgent.indexOf('Mozilla')!=-1) && (sAgent.indexOf('compatible') == -1))" & vbNewLine & _
" this.bNav = true " & vbNewLine & _
"}" & vbNewLine & _
"//-->" & vbNewLine & _
"</script>" & vbNewLine
end if
End Function
%>