<CFIF IsDefined("Form.FilmID")>
   <!--- FilmID is specified --->
   <CFSET TheCriteria = "CF_CUSTOM1 <MATCHES> #Form.FilmID#">
<CFELSEIF (Form.Criteria NEQ "")>
   <!--- Film and keywords were specified --->
   <CFSET TheCriteria = "#Form.Criteria#">
<CFELSE>
   <!--- Neither keywords nor FilmID were specified --->
   <CFABORT SHOWERROR="Please enter your criteria">
</CFIF>

<CFSEARCH
   COLLECTION="Merchandise"
   NAME="GetResults"
   CRITERIA="#TheCriteria#"
>
<HTML>

<HEAD>
<TITLE>Search Results</TITLE>
</HEAD>

<BODY>

<H2><CFOUTPUT>#GetResults.RecordCount# merchandise item(s) found.</CFOUTPUT></H2>

<P ALIGN="RIGHT">
<CFOUTPUT>Actual Criteria Used:#HTMLEditFormat(TheCriteria)#
</CFOUTPUT>
</P>

<DL>
<CFOUTPUT QUERY="GetResults">
  <DT><I>#NumberFormat(Round(Score * 100))#%</I>
      <B>#Title#</B>
  <DD><FONT SIZE="-1"><I>FilmID #Custom1#.</I> #Summary#</FONT>
</CFOUTPUT>
</DL>

</BODY>

</HTML> 
