 				<cfset number_of_labels=0>
 			</cfif>
 		</cfif>
+		<cfset mapurl="#mapurl#&number_of_labels=#number_of_labels#">
+		
 		<cfloop from="1" to="#number_of_relations#" index="n">
 			<cftry>
 		        <cfset thisRelationship = #evaluate("relationship__" & n)#>

				<cfset number_of_relations=1>
			</cfif>
		</cfif>
		
		<cfif not isdefined("number_of_labels")>
		    <cfif (isdefined("label") and len(label) gt 0) or (isdefined("label__1") and len(label__1) gt 0)>
				<cfset number_of_labels=1>
				<cfif isdefined("label") and len(label) gt 0>

	        </cftry>		
	        <cfif len(#thisLabel#) gt 0>
				<cfset srch="#srch# AND upper(media_labels) like '#ucase(thisLabel)#'">
				<cfset mapurl="#mapurl#&label__#n#=#thisLabel#">
			</cfif>
			<cfif len(#thisLabelValue#) gt 0>
				<cfset srch="#srch# AND upper(label_values) like '%#ucase(thisLabelValue)#%'">
				<cfset mapurl="#mapurl#&label_value__#n#=#thisLabelValue#">
			</cfif>
		</cfloop>
		<cfif len(srch) is 0>
			<div class="error">You must enter search criteria.</div>
			<cfabort> 
		</cfif>
		

