<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Dim agency__MMColParam agency__MMColParam = "1" If (Request("MM_EmptyValue") <> "") Then agency__MMColParam = Request("MM_EmptyValue") End If %> <% Dim agency__MMColParam2 agency__MMColParam2 = "%" If (Session("state") <> "") Then agency__MMColParam2 = Session("state") End If %> <% Dim agency Dim agency_numRows Set agency = Server.CreateObject("ADODB.Recordset") agency.ActiveConnection = MM_golf_STRING agency.Source = "SELECT * FROM dbo.agency WHERE AccessGroup = " + Replace(agency__MMColParam, "'", "''") + " and agencystate LIKE '" + Replace(agency__MMColParam2, "'", "''") + "'" agency.CursorType = 0 agency.CursorLocation = 2 agency.LockType = 1 agency.Open() agency_numRows = 0 %> <% Dim agency2 Dim agency2_numRows Set agency2 = Server.CreateObject("ADODB.Recordset") agency2.ActiveConnection = MM_golf_STRING agency2.Source = "SELECT DISTINCT agencycountry FROM dbo.agency" agency2.CursorType = 0 agency2.CursorLocation = 2 agency2.LockType = 1 agency2.Open() agency2_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 agency_numRows = agency_numRows + Repeat1__numRows %> <% Dim MM_paramName %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters Dim MM_keepNone Dim MM_keepURL Dim MM_keepForm Dim MM_keepBoth Dim MM_removeList Dim MM_item Dim MM_nextItem ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" End If MM_keepURL="" MM_keepForm="" MM_keepBoth="" MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each MM_item In Request.QueryString MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item)) End If Next ' add the Form variables to the MM_keepForm string For Each MM_item In Request.Form MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm If (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) End If If (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) End If If (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) End If ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> Office Directory Golf & Villas
 Choose another location: 
<% If Not agency.EOF Or Not agency.BOF Then %>
Please choose from the list below for our Agencies in <%= Session("state") %>, <%= Session("country") %>.
<% End If ' end Not agency.EOF Or NOT agency.BOF %>
<% If agency.EOF And agency.BOF Then %>
There is no agency listed for this area. Please click here to contact Golf & Villas directly.
<% End If ' end agency.EOF And agency.BOF %>
 
<% If Not agency.EOF Or Not agency.BOF Then %>
<% While ((Repeat1__numRows <> 0) AND (NOT agency.EOF)) %>
   
Agency Name: <%=(agency.Fields.Item("agencyfname").Value)%>, <%=(agency.Fields.Item("agencyname").Value)%>
City: <%=(agency.Fields.Item("agencycity").Value)%>
  ">
   
<% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 agency.MoveNext() Wend %>
<% End If ' end Not agency.EOF Or NOT agency.BOF %>
<% If (Session("country")) = ("France") Then 'script %> <% End If ' end If (Session("country")) = ("France") script %>
<% If (Session("country")) = ("France") Then 'script %> <% End If ' end If (Session("country")) = ("France") script %>
<% agency.Close() Set agency = Nothing %> <% agency2.Close() Set agency2 = Nothing %>