 	<cfset x=x & chr(10) & '      <cfset oper="like"><cfset schTerm=ucase(#attrvar#)>'>
 	<cfset x=x & chr(10) & '    </cfif>'>
 	<cfset x=x & chr(10) & '    <cfif oper is "!"><cfset oper="!="></cfif>'>
-	<cfset x=x & chr(10) & '    <cfset temp=trim(rereplace(schTerm,"[0-9]","","all"))>'>    
-	<cfset x=x & chr(10) & '    <cfif len(temp) gt 0 and listfindnocase(#asrchlst#,temp) and isnumeric(replace(schTerm,temp,""))>'>  
-	<cfset x=x & chr(10) & '      <cfset schTerm=replace(schTerm,temp,"")><cfset schunits=temp>'>  
+	<cfset x=x & chr(10) & '    <cfset temp=trim(rereplace(schTerm,"[0-9]","","all"))>'>
+	<cfset x=x & chr(10) & '    <cfif len(temp) gt 0 and listfindnocase(#asrchlst#,temp) and isnumeric(replace(schTerm,temp,""))>'>
+	<cfset x=x & chr(10) & '      <cfset schTerm=replace(schTerm,temp,"")><cfset schunits=temp>'>
 	<cfset x=x & chr(10) & '    <cfelseif left(temp,1) eq "-" and listfindnocase(attrTimeUnits,trim(replace(temp,"-","")))>'>
 	<cfset x=x & chr(10) & '      <cfset schunits=trim(replace(temp,"-",""))>'>
 	<cfset x=x & chr(10) & '      <cfset low=trim(listgetat(numeric_age,1,"-"))>'>
 	<cfset x=x & chr(10) & '      <cfset high=trim(replacenocase(replace(replace(numeric_age,low,"","first"),"-",""),schunits,""))>'>
 	<cfset x=x & chr(10) & '      <cfset schTerm=trim(replace(replace(replace(numeric_age,schunits,""),low,""),high,""))>'>
 	<cfset x=x & chr(10) & '      <cfif len(low) gt 0 and len(high) gt 0 and len(schunits) gt 0><cfset oper="between"></cfif>'>
-	<cfset x=x & chr(10) & '    </cfif>'>	
+	<cfset x=x & chr(10) & '    </cfif>'>
 	<cfif asrchlst is "attrLengthUnits">
-		<cfset x=x & chr(10) & '    <cfif oper is "between">'>     
+		<cfset x=x & chr(10) & '    <cfif oper is "between">'>
 		<cfset x=x & chr(10) & '      <cfset basQual = " ##basQual## AND to_days(tbl_#attrvar#.attribute_value,tbl_#attrvar#.attribute_units) ##oper## to_days(##low##,''##schunits##'') and to_days(##high##,''##schunits##'')">'>
 		<cfset x=x & chr(10) & '    <cfelseif len(schunits) gt 0>'>
 		<cfset x=x & chr(10) & '      <cfset basQual = " ##basQual## AND to_meters(tbl_#attrvar#.attribute_value,tbl_#attrvar#.attribute_units) ##oper## to_meters(##schTerm##,''##schunits##'')">'>

		<cfset x=x & chr(10) & '      <cfset basQual = " ##basQual## AND tbl_#attrvar#.attribute_value ##oper## ''##schTerm##''">'>
		<cfset x=x & chr(10) & '    </cfif>'>
	<cfelseif asrchlst is "attrTimeUnits">
		<cfset x=x & chr(10) & '    <cfif oper is "between">'>     
		<cfset x=x & chr(10) & '      <cfset basQual = " ##basQual## AND to_days(tbl_#attrvar#.attribute_value,tbl_#attrvar#.attribute_units) ##oper## to_days(##low##,''##schunits##'') and to_days(##high##,''##schunits##'')">'>
		<cfset x=x & chr(10) & '    <cfelseif len(schunits) gt 0>'>
		<cfset x=x & chr(10) & '      <cfset basQual = " ##basQual## AND to_days(tbl_#attrvar#.attribute_value,tbl_#attrvar#.attribute_units) ##oper## to_days(##schTerm##,''##schunits##'')">'>

		<cfset attrTimeUnits=valuelist(cttu.time_units)>
		<cfset attrTimeUnits=listappend(attrTimeUnits,canconvert)>


		<cfset x=x&'<cfset attrLengthUnits="#attrLengthUnits#">'>
		<cfset x=x&'<cfset attrWeightUnits="#attrWeightUnits#">'>
		<cfset x=x&'<cfset attrTimeUnits="#attrTimeUnits#">'>
