 				RELATED_PRIMARY_KEY
 			) values (
 				#p_media_id#,
-				'shows cataloged_item',
+				'#media_relationship#',
 				#session.myAgentId#,
-				#collection_object_id#
+				#kval#
 			)
 		</cfquery>
-		<cflocation url="upLinkMedia.cfm?collection_object_id=#collection_object_id#" addtoken="false">
+		<cflocation url="upLinkMedia.cfm?kval=#kval#&ktype=#ktype#" addtoken="false">
 	</cfoutput>
 </cfif>
 
---------------->
 <cfif action is "createNewMedia">
 	<cfoutput>
 		<cftransaction>

</cfoutput>
</cfif>

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

			</cfloop>
		</select>
		<select name="ctmedia_relationship" id="ctmedia_relationship">
			<cfloop query="ctmedia_relationship">
				<option value="#media_relationship#">#media_relationship#</option>
			</cfloop>
