 			</cfloop>
 		</cfif>
 		<cfif len(PART_LOT_COUNT_n) gt 0>
-			<cfloop from="1" to="10" index="i">
+			<cfloop from="1" to="#numberOfParts#" index="i">
 				<cfquery name="uppc" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
 					update
 						pre_bulkloader

		</p>

		<p>
			This form will NOT deal with multi-agent strings ("collector=you and me"). Split them out (there are agent tools) and load them
			as collector_agent_1=you,collector_agent_2=me, then use this form to download, standardize, and repatriate.
		</p>

				<cfset dfltnls.HIGHER_GEOG="no higher geography recorded">
				<cfset dfltnls.SPEC_LOCALITY="no specific locality recorded">
				<cfset dfltnls.VERBATIM_LOCALITY="no verbatim locality recorded">
				<cfset dfltnls.GUID_PREFIX="">
				<cfset dfltnls.ENTEREDBY="">

				Set defaults. ONLY when the following values are NULL, update them to...
				<br>(Clear the suggestion to do nothing.)
				<br>UPDATE pre_bulkloader SET
				<form name="dflt" method="post" action="pre_bulkloader.cfm">
					<!---
						coldfusion is stupid and doesn't put fields which end with
						_date in form.FIELDNAMES so....
					---->
					<cfset fldlist="">
					<cfloop collection = #dfltnls# item = "fld">
						<cfset fldlist=listappend(fldlist,fld)>
					</cfloop>
					<input type="hidden" name="fldlist" value="#fldlist#">
					<input type="hidden" name="action" value="setNullDefaults">
					<cfloop collection = #dfltnls# item = "fld">
						<label for="#fld#">#fld#=</label>
