Change the following code
' ################ Poll Mod ###################
if (strUserPolls = "1") or (AdminAllowed = 1) then %>
<a href="JavaScript:openWindow('pop_send_to_friend.asp?url=<% = strForumURL & "link.asp?TOPIC_ID=" & Topic_ID %>')"><img border="0" src="icon_send_topic.gif" height=15 width=15 border=0></a> <a href="JavaScript:openWindow('pop_send_to_friend.asp?url=<% = strForumURL & "link.asp?TOPIC_ID=" & Topic_ID %>')">Send Topic to a Friend</a>
<% else
' ############################################ %>
to this (line 1032 - Add a "<%" to the beginning of the line, since the previous line end with the closing tag for ASP code):
<% ' ################ Poll Mod ###################
if (strUserPolls = "1") or (AdminAllowed = 1) then %>
<a href="JavaScript:openWindow('pop_send_to_friend.asp?url=<% = strForumURL & "link.asp?TOPIC_ID=" & Topic_ID %>')"><img border="0" src="icon_send_topic.gif" height=15 width=15 border=0></a> <a href="JavaScript:openWindow('pop_send_to_friend.asp?url=<% = strForumURL & "link.asp?TOPIC_ID=" & Topic_ID %>')">Send Topic to a Friend</a>
<% else
' ############################################ %>
**TANSTAAFL**