 	</cfoutput>
 </cfif>
 <!-------------------------------------------------------------->
-<cfif #Action# is "saveChecked">
+<cfif action is "saveChecked">
 	<cfoutput>
 		<cfquery name="saveCheck" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
-			insert into container_check (
+			insert into container_environment (
+				container_environment_id,
+				container_id,
+				check_date,
+				checked_by_agent_id,
+				parameter_type,
+				parameter_value,
+				remark
+			) (
+				select
+					sq_container_environment_id.nextval,
+					CONTAINER_ID,
+					CHECK_DATE,
+					CHECKED_AGENT_ID,
+					'checked',
+					1,
+					CHECK_REMARK
+				from
+					container_check
+			);
+
+
+insert into container_check (
 				CONTAINER_ID,
 				CHECK_DATE,
 				CHECKED_AGENT_ID,

		}
	}
</script>
<cfif action is "update">
	<cfoutput>
		<cfif len(newParentBarcode) gt 0>

		<cflocation url="EditContainer.cfm?container_id=#container_id#" addtoken="false">
	</cfoutput>
</cfif>

<cfif action is "moveChillun">
	<cfoutput>
		<cfquery name="cidOfnewParentBarcode" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
