         	h+='<label for="preview_uri">Preview URI</label>';
         	h+='<input type="text" name="preview_uri" id="preview_uri" size="80" value="' + result.PREVIEW_URI + '">';
         	h+='<a href="' + result.PREVIEW_URI + '" target="_blank" class="external">open</a>';
+        	h+='<label for="media_relationship">Media Relationship</label>';
+        	h+='<select name="media_relationship" id="media_relationship" class="reqdClr"></select>';
+
         	h+='<label for="media_license_id">License</label>';
         	h+='<select name="media_license_id" id="media_license_id"></select>';
 			h+='<label for="mime_type">MIME Type</label>';

					</cfif>
				)
			</cfquery>
			<cfquery name="linkpicked" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
				insert into media_relations (
					MEDIA_ID,

	<cfquery name="ctmedia_type" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#" cachedwithin="#createtimespan(0,0,60,0)#">
		select * from ctmedia_type order by media_type
	</cfquery>
	<!--- only get appropriate relationships ---->
	<cfquery name="ctmedia_relationship" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#" cachedwithin="#createtimespan(0,0,60,0)#">
		select * from ctmedia_relationship where media_relationship like
		<cfif ktype is "collecting_event_id">
			'% collecting_event'
		<cfelse>
			<!--- not handled, return nothing disallowing save ---->
			'ajksndfiouafvblvnasahihs'
		</cfif>
		order by media_relationship
	</cfquery>
	<div style="display:none">
		<!--- easy way to get stuff for new media - just clone from here ---->
		<select name="ctmedia_type" id="ctmedia_type">
