You seem to be missing a closing curly tag }.
After line 289 in your file, add this: "}" & vbNewLine & _
The resulting code should look like this: "// ConquerChat" & vbNewLine & _
"function openChat() {" & _
"var MainWindow = window.open (""chat/default.asp?UserName=" & strDBNTUserName & "&login=login&mode=userLogin""," & _
"'ChatWindow','scrollbars=yes,width=800,height=550,top=0,left=0,resizable=yes');" & vbNewLine & _
"}" & vbNewLine & _
"// done hiding -->" & vbNewLine & _
"</script>" & vbNewLine & _
"<style type=""text/css"">" & vbNewLine & _