<!--#INCLUDE FILE="../OnlineCSR/OLCSR/i_lib.asp" -->
<SCRIPT LANGUAGE='VBScript' RUNAT='Server'>

'You can add special event handlers in this file that will get run automatically when
'special Active Server Pages events occur. To create these handlers, just create a
'subroutine with a name from the list below that corresponds to the event you want to
'use. For example, to create an event handler for Session_OnStart, you would put the
'following code into this file (without the comments):

Sub Session_OnStart
Session.Timeout = 30
Session("Itinerary_ID") = Null
Redim tmpArray(10,0)
Session("Itinerary_Items") = tmpArray
Session("Nights") = Null
Session("ArrivalDate") = Null
Session("Adults") = Null
Session("Children") = Null
Session("User_ID") = Null

	Set Conn = Server.CreateObject("ADODB.Connection")
	Conn.Open "DRIVER={SQL Server};SERVER=WEBSRV01;UID=web;PWD=w3bs1t3;DATABASE=AVANTE"
	
End Sub

'EventName              Description
'Session_OnStart        Runs the first time a user runs any page in your application
'Session_OnEnd          Runs when a user's session times out or quits your application
'Application_OnStart    Runs once when the first page of your application is run for the first time by any user
'Application_OnEnd      Runs once when the web server shuts down

</SCRIPT>
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
	gvDefaultConnectionString = "DRIVER=SQL Server;SERVER=208.44.76.80;UID=web;PWD=w3bs1t3;DATABASE=OLCSR;User Id=web;PASSWORD=w3bs1t3;"
	On Error Resume Next 
	Call OLCSR_Application_Parameter_Load(gvDefaultConnectionString)
	On Error Goto 0

	Application("conn_string") = "DRIVER={SQL Server};SERVER=WEBSRV01;UID=web;PWD=w3bs1t3;DATABASE=AVANTE"
End Sub
</SCRIPT>
