%
if request("typID") <> "" AND isnumeric(request("typID")) then typID = clng(request("typID")) else typID = 0
if request("fpID") <> "" AND isnumeric(request("fpID")) then fpID = clng(request("fpID")) else fpID = 0
if fpID > 0 then
set getRecord = dbConn.execute("SELECT * FROM PC_Floorplans WHERE fpID = " & fpID & "")
if NOT getRecord.EOF then
typID = getRecord("fpTypeID")
fpName = getRecord("fpName")
end if
set getRecord = nothing
end if
if typID > 0 then
set getRecord = dbConn.execute("SELECT * FROM PC_Types WHERE typID = " & typID & "")
if NOT getRecord.EOF then
typName = getRecord("typName")
end if
set getRecord = nothing
end if
%>