Try removeing the comment at the top of the file. Move everything else up to the top. I have a feeling the problem is because you are outputting to the buffer (even if it is an html comment) before declaring your language and option explicit.
As a second portion of this answer, you could be lazy and forego declaring the language. ASP defaults to VB so you could simply:
Code:
<% Option Explicit %>
<%
DIM sLang
sLang = Request.Cookies("lang")
If ( sLang = "" ) Then
Response.Redirect("../index.asp")
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
...
If this is an include file than you don't want to put the option explicit in it. When the file is included, you can think of it as if it is creating one big long file with all of the include statements replaced by the contents of your include files. Than the script processes, so if you have an option explicit in your include files it throws an error because it is not at the top of the script.
Final result: Now that I have seen you are including this everywhere, delete the option explicit. As long as it is in the file including this one, it will evaluate this one the same way.
-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
With enough resources, time, and coffee, anything is possible.