 					</cfif>
 				)
 			</cfquery>
+
+
+        	h+='<input type="hidden" name="ktype"  value="' + $("#ktype").val() + '">';
+        	h+='<input type="hidden" name="kval"  value="' + $("#kval").val() + '">';
+        	h+='<input type="hidden" name="action"  value="createNewMedia">';
+
+
 			<cfquery name="linkpicked" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
 				insert into media_relations (
 					MEDIA_ID,

        	$("#uploadtitle").html('File Uploaded: Fill in this form and and click the "create" button to finish.');
        	$("#uploadmediaform").hide();
        	var h='<form name="nm" method="post" action="specimenMedia.cfm">';
        	h+='<input type="hidden" name="collection_object_id"  value="' + $("#collection_object_id").val() + '">';
        	h+='<input type="hidden" name="action"  value="createNewMedia">';
        	h+='<label for="media_uri">Media URI</label>';
        	h+='<input type="text" name="media_uri" class="reqdClr" id="media_uri" size="80" value="' + result.MEDIA_URI + '">';

        	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>';
