 					       ---->
 					       and stripGeogRanks(county)=stripGeogRanks('#thisCounty#')
                      </cfif>
+					<cfif len(thisDrainage) gt 0>
+						and stripGeogRanks(drainage)=stripGeogRanks('#thisDrainage#')
+					<cfelse>
+						and drainage is null
+					</cfif>
             </cfquery>
 
 			<cfif debug is "yes">

			ISLAND,
			ISLAND_GROUP,
			SEA,
			HIGHER_GEOG,
			STATUS
		from ds_temp_geog

		<li>ISLAND</li>
		<li>ISLAND_GROUP</li>
		<li>SEA</li>
		<li>DRAINAGE</li>
	</ul>
	<form name="atts" method="post" enctype="multipart/form-data" action="geog_lookup.cfm">
		<input type="hidden" name="Action" value="getFile">
