ASP page is not a language but a form of program that is executed on the server an returning HTML to the client. In an ASP page you can use either VBScript or Java script.
The microsoft web site
www.microsoft.com/scripting has the documentation for all the VBScript and JScript function.
You could place the function before the head tag.