% browserLevel = Request.ServerVariables("HTTP_USER_AGENT") if (instr(1,browserLevel,"MSIE 4") > 0) or (instr(1,browserLevel,"MSIE 5") > 0) or (instr(1,browserLevel,"MSIE 6") > 0) then useDivs = true else useDivs = false end if Private Function iif(boolTest, ifTrue, ifFalse) If booltest Then iif = ifTrue Else iif = ifFalse End If End Function Private Function StringExists(theString) If IsNull(Trim(theString)) or (Trim(theString) = "") or IsEmpty(Trim(theString)) Then StringExists = False Else StringExists = True End If End Function Private Function WriteCell(myBoolean, formField, dataField, fieldSize) If myBoolean Then fieldLength = Len(Trim(RSSites(dataField))) if IsNull(fieldLength) Then fieldLength = fieldSize end if 'WriteCell = "" Select Case formField Case "PID" If StringExists(RSSites(dataField)) Then outputString = "" & RSSites(dataField) & "" Else outputString = "" End If Case "ContactEMail" If StringExists(RSSites(dataField)) Then outputString = "" & RSSites(dataField) & "" Else outputString = "" End If Case Else If StringExists(RSSites(dataField)) Then outputString = RSSites(dataField) Else outputString = "N/A" End If End Select WriteCell = "" & iif(StringExists(outputString), outputString, "N/A") & "" Else If StringExists(Request(formField)) Then WriteCell = "" Else WriteCell = "" End If End If End Function Private Function WriteRadio(myBoolean, formField, dataField) StringYesChecked = "
<% Else If RecCount = 0 Then ' ... Header for failed query page %>You may use this page to find an available commercial site which meets your criteria. Click on the following link to open a new window containing the rules this query page follows:
Instructions Page
No Results Were Found For Your Query
<% GetOut Response.End Else If Request("Action") = "Retrieve" Then ' ... Header for when a property is chosen from a list %>No Available Commercial Sites were found which match the criteria you used for your search. Please click the following link to return to the search page you just submitted, where you can change the parameters you used:
Return to the Search PageAlternatively, you may use one of the links below to load a fresh search page, where you may start over with a blank form:
This Property is Currently Available
<% Else ' ... Header for when only one property was found %>The property described below matches the criteria you used for your search. If you would like to review another matching property, then please click the following link to return to your list of matches:
Return to List of PropertiesAlternatively, you may use one of the links below to load a fresh search page, where you may start over with a blank form:
One Property Found.
<% End If End If End If ' ... Query table with optional query results or existing query parameters If isQueryResult And (RecCount > 0) Then haveData = True Else haveData = False End If %> <% Else ' ... Make a list of matching records If Request("Format") = "ListAll" Then %>The property described below is the only property we currently have on record which matches the criteria you used for your search. If you would like to see more properties, please click the following link to return to the search page you just submitted; where you can change the parameters you used:
Return to the Search PageAlternatively, you may use one of the links below to load a fresh search page, where you may start over with a blank form:
List of All Available Commercial Properties On Record
<% Else %>The table below lists all the properties we currently have on record which are currently available for lease and/or purchase. You may view the details we have on file for any of these properties by clicking on the building name in the table below.
Alternatively, you may use one of the links below to load a search page, where you may use a set of known criteria to find a property which will meet your needs:
These properties matched your query parameters.
<% End If %>The properties described below are the properties we currently have on record which match the criteria you used for your search. You may view the details we have on file for any of these properties by clicking on the building name in the table below.
If you are dissatisfied with these results, or would like to try a different set of search parameters, please click the following link to return to the search page you just submitted; where you can change the values you used for your search: Return to the Search Page
Alternatively, you may use one of the links below to load a fresh search page, where you may start over with a blank form:
| Building Name | Location |
| "> <%= RSSites("Building Name") %> | <% ansString = "" If StringExists(RSSites("Address")) Then ansString = Trim(RSSites("Address")) End If If StringExists(RSSites("City")) Then If Len(ansString) > 0 Then ansString = ansString & ", " & Trim(RSSites("City")) Else ansString = Trim(RSSites("City")) End If End If If StringExists(RSSites("State")) Then If Len(ansString) > 0 Then ansString = ansString & ", " & Trim(RSSites("State")) Else ansString = Trim(RSSites("State")) End If End If If StringExists(RSSites("ZIP")) Then If Len(ansString) > 0 Then ansString = ansString & ", " & Trim(RSSites("ZIP")) Else ansString = Trim(RSSites("Zip")) End If End If Response.Write ansString %> |