the code:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
tells the IIS server to use the javascript processing engine for ASP code, the default is to use the VBScript Engine.
when using ASP Javascript, you need to include that code at line of your pages to tell the IIS server which processing engine to use.