Try this. I haven't tested it so be sure to make a back-up first .
if strAuthType = "db" then %>
<% =fLangN(strLangInc_Header00200, "<b>" & profileLink(ChkString(strDBNTUserName, "display"),MemberID) & "</b>") %>
<% Response.Write "</font></td>" & vbNewLine & _
" <td> "
strSqL = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strMemberTablePrefix & "MEMBERS.M_AVATAR_URL"
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS"
strSql = strSql & " Where " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'"
set rs = my_Conn.Execute (strSql)
if strGfxButtons = "1" and chkString(rs("M_AVATAR_URL"),"sqlString") <> "noavatar.gif" then
Response.Write "<input src=""" & chkString(rs("M_AVATAR_URL"),"display") & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ type=""image"" border=""0"" value=""Logout"" id=""submit1"" name=""Logout"" tabindex=""-1""><br />" & vbNewLine & _
"<font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strFooterFontSize & """>log-out</font><br />"
elseif strGfxButtons = "1" and chkString(rs("M_AVATAR_URL"),"sqlString") = "noavatar.gif" then
Response.Write "<input src=" & strImageUrl & "Lang" & strLangLCID & "button_logout.gif type=""image"" border=""0"" value=""Logout"" id=""submit1"" name=""Logout"" tabindex=""-1"">"
else
Response.Write "<input class=bouton type=""submit"" value=""" & fLang(strLangInc_Header00210) & """ id=""submit1"" name=""submit1"" tabindex=""-1"">"
end if
end if