 	  	// prefetch these to avoid 'undefined' when there's not relationship/we're just loading
 	  	var kvl;
 	  	var ktp;
-
-
-		if($("#kval")){
-			console.log('truthy');
-			console.log($("#kval"));
-			}else{console.log('falsy');
-			}
-	  	console.log('kvl before:'+kvl);
 	  	if ($("#kval").length){
 	  		kvl=$("#kval").val();
 	  	}
 	  	if ($("#ktype").length){
 	  		ktp=$("#ktype").val();
 	  	}
-	  	console.log('kvl after:'+kvl);
 	  	var h='<form name="nm" id="nm" method="post" action="upLinkMedia.cfm">';
 	  	h+='<input type="hidden" name="ktype"  value="' + ktp + '">';
 	  	h+='<input type="hidden" name="kval"  value="' + kvl + '">';

		<input type="hidden" id="ktype" name="ktype" value="#ktype#">
		<input type="hidden" id="kval" name="kval" value="#kval#">
	</cfif>


<br>kvalpost::#kval#

	<cfquery name="ctmedia_license" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#" cachedwithin="#createtimespan(0,0,60,0)#">
		select * from ctmedia_license order by DISPLAY

				)
			</cfquery>
			<!--- allow a just-make-media option --->
			<cfif len(kval) gt 0>
				<cfquery name="linkpicked" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
					insert into media_relations (
						MEDIA_ID,
