 			<option <cfif hK is 1> selected="selected" </cfif>value="1">yes</option>
 			<option <cfif hK is 0> selected="selected" </cfif>value="0">no</option>
 		</select>
+		<cfparam name="hEvt" default="1">
+		<label for="hEvt">Include collecting event?</label>
+		<select name="hEvt" id="hKhEvt">
+			<option <cfif hEvt is 1> selected="selected" </cfif>value="1">yes</option>
+			<option <cfif hEvt is 0> selected="selected" </cfif>value="0">no</option>
+		</select>
+
 		<br>
 		<input type="submit" value="get template">
 	</form>

		</cfif>
		<cfset header=listappend(header,"media_related_term_#i#")>
	</cfloop>
	<cffile action = "write"
    file = "#Application.webDirectory#/download/BulkMedia.csv"
    output = "#header#"
    addNewLine = "no">
	<cflocation url="/download.cfm?file=BulkMedia.csv" addtoken="false">
</cfif>
<!------------------------------------------------------->
<cfif action is "nothing">
	<cfoutput>
	<cfparam name="nL" default="#numLabels#">
	<cfparam name="nR" default="#numRelns#">
	<cfparam name="hK" default="1">
	<ul>
		<li>Binary objects to be created as Media (and preview) must exist in a web-accessible location and return a 200 statuscode in the HTML header</li>
		<li>Objects to which Media will be related - such as collecting events and cataloged items - must exist</li>

		<br><input type="submit" value="go">
	</form>
<hr>
	<cfparam name="nL" default="#numLabels#">
	<cfparam name="nR" default="#numRelns#">
	<cfparam name="hK" default="1">
	Download CSV template:
	<form name="temp" method="post" action="BulkloadMedia.cfm">
		<input type="hidden" name="action" value="makeTemplate">
