 					<cfset i=i+1>
 				</cfloop>
 			</table>
-
-			<table border>
-
-				<tr bgcolor="##00CC00">
-					<td colspan="10" align="center">
-						<input type="button" value="Save All Changes" class="savBtn"
-						   onclick="parts.action.value='saveEdits';submit();">
-				   </td>
-				</tr>
-				<cfset numberOfParts= #i# - 1>
+			<div style="text-align:center;">
+				<input type="button" value="Save All Changes" class="savBtn" onclick="parts.action.value='saveEdits';submit();">
+			</div>
+				<cfset numberOfParts= i-1>
 				<input type="hidden" name="NumberOfParts" value="#orderedparts.recordcount#">
 				<input type="hidden" name="partID">
 			</table>
 		</form>
-
-<!----
-
-
-
-		<!--- just parts ---->
-		<cfquery name="partsOnly" dbtype="query">
-			select
-				partID,
-				part_name,
-				coll_obj_disposition,
-				condition,
-				sampled_from_obj_id,
-				lot_count,
-				barcode,
-				label,
-				parentContainerId,
-				partContainerId,
-				coll_object_remarks
-			from
-				raw
-			where
-				partID is not null and
-				sampled_from_obj_id is null
-			group by
-				partID,
-				part_name,
-				coll_obj_disposition,
-				condition,
-				sampled_from_obj_id,
-				lot_count,
-				barcode,
-				label,
-				parentContainerId,
-				partContainerId,
-				coll_object_remarks
-			order by
-				part_name
-		</cfquery>
-		<!--- just the object, no data ---->
-		<cfquery name="getParts" dbtype="query">
-			select
-				'' as ordr,
-				partID,
-				part_name,
-				coll_obj_disposition,
-				condition,
-				sampled_from_obj_id,
-				lot_count,
-				barcode,
-				label,
-				parentContainerId,
-				partContainerId,
-				coll_object_remarks
-			from raw
-			where
-			1=2
-		</cfquery>
-		<cfset rnum=1>
-		<cfloop query="partsOnly">
-			<cfset queryAddRow(getParts)>
-			<cfset querySetCell(getParts,"ordr",rnum,rnum)>
-			<cfset querySetCell(getParts,"partID",partID,rnum)>
-			<cfset querySetCell(getParts,"part_name",part_name,rnum)>
-			<cfset querySetCell(getParts,"coll_obj_disposition",coll_obj_disposition,rnum)>
-			<cfset querySetCell(getParts,"condition",condition,rnum)>
-			<cfset querySetCell(getParts,"sampled_from_obj_id",sampled_from_obj_id,rnum)>
-			<cfset querySetCell(getParts,"lot_count",lot_count,rnum)>
-			<cfset querySetCell(getParts,"barcode",barcode,rnum)>
-			<cfset querySetCell(getParts,"label",label,rnum)>
-			<cfset querySetCell(getParts,"parentContainerId",parentContainerId,rnum)>
-			<cfset querySetCell(getParts,"partContainerId",partContainerId,rnum)>
-			<cfset querySetCell(getParts,"coll_object_remarks",coll_object_remarks,rnum)>
-			<cfset rnum=rnum+1>
-			<cfquery name="thisSS" dbtype="query">
-				select
-					partID,
-					part_name,
-					coll_obj_disposition,
-					condition,
-					sampled_from_obj_id,
-					lot_count,
-					barcode,
-					label,
-					parentContainerId,
-					partContainerId,
-					coll_object_remarks
-				from
-					raw
-				where
-					sampled_from_obj_id=#partID#
-				order by
-					part_name
-			</cfquery>
-			<cfloop query="thisSS">
-				<cfset queryAddRow(getParts)>
-				<cfset querySetCell(getParts,"ordr",rnum,rnum)>
-				<cfset querySetCell(getParts,"partID",partID,rnum)>
-				<cfset querySetCell(getParts,"part_name",part_name,rnum)>
-				<cfset querySetCell(getParts,"coll_obj_disposition",coll_obj_disposition,rnum)>
-				<cfset querySetCell(getParts,"condition",condition,rnum)>
-				<cfset querySetCell(getParts,"sampled_from_obj_id",sampled_from_obj_id,rnum)>
-				<cfset querySetCell(getParts,"lot_count",lot_count,rnum)>
-				<cfset querySetCell(getParts,"barcode",barcode,rnum)>
-				<cfset querySetCell(getParts,"label",label,rnum)>
-				<cfset querySetCell(getParts,"parentContainerId",parentContainerId,rnum)>
-				<cfset querySetCell(getParts,"partContainerId",partContainerId,rnum)>
-				<cfset querySetCell(getParts,"coll_object_remarks",coll_object_remarks,rnum)>
-				<cfset rnum=rnum+1>
-			</cfloop>
-		</cfloop>
-
-	 	<b>Edit #getParts.recordcount# Specimen Parts</b>&nbsp;<span class="helpLink" data-helplink="parts">help</span>
-		<br><a href="/findContainer.cfm?collection_object_id=#collection_object_id#">Part Locations</a>
-		<cfset i = 1>
-		<cfset listedParts = "">
-		<form name="parts" method="post" action="editParts.cfm">
-			<input type="hidden" name="action" value="saveEdits">
-			<input type="hidden" name="collection_object_id" value="#collection_object_id#">
-
-			<cfdump var=#getParts#>
-
-
-			<table border>
-
-				<tr bgcolor="##00CC00">
-					<td colspan="10" align="center">
-						<input type="button" value="Save All Changes" class="savBtn"
-						   onclick="parts.action.value='saveEdits';submit();">
-				   </td>
-				</tr>
-				<cfset numberOfParts= #i# - 1>
-				<input type="hidden" name="NumberOfParts" value="#numberOfParts#">
-				<input type="hidden" name="partID">
-			</table>
-		</form>
-		---->
 		<a name="newPart"></a>
 		<table class="newRec">
 			<tr>

				cataloged_item.collection_object_id = #collection_object_id#
			ORDER BY sampled_from_obj_id DESC,part_name ASC
		</cfquery>




		<cfquery name="ctDisp" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select coll_obj_disposition from ctcoll_obj_disp order by coll_obj_disposition
		</cfquery>
		<cfquery name="thisCollectionCde" dbtype="query">
			select collection_cde from raw group by collection_cde
		</cfquery>



<cfquery name="ploan" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			SELECT
				loan.loan_number,
				loan.transaction_id,

				loan_item.collection_object_id=specimen_part.collection_object_id AND
				specimen_part.derived_from_cat_item=#collection_object_id#
		</cfquery>
		<cfquery name="orderedparts" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select
				collection_object_id part_id,
		 		level,
		 		part_name
			from (
		 		SELECT
					SAMPLED_FROM_OBJ_ID,
					collection_object_id,
					part_name
				FROM
					specimen_part
		 		where
					derived_from_cat_item=#collection_object_id#
		 		)
			START WITH SAMPLED_FROM_OBJ_ID is null
			CONNECT BY PRIOR collection_object_id = SAMPLED_FROM_OBJ_ID
			ORDER SIBLINGS BY part_name
		</cfquery>
		<b>Edit #orderedparts.recordcount# Specimen Parts</b>&nbsp;<span class="helpLink" data-helplink="parts">help</span>
		<br><a href="/findContainer.cfm?collection_object_id=#collection_object_id#">Part Locations</a>
		<form name="parts" method="post" action="editParts.cfm">
			<input type="hidden" name="action" value="saveEdits">
			<input type="hidden" name="collection_object_id" value="#collection_object_id#">
			<table border>
				<cfset i=1>
				<cfloop query="orderedparts">
