 <cfquery name="curatorial" dbtype="query">
 	select * from poss where category IN ('curatorial','specimen')
 </cfquery>
+<cfquery name="link" dbtype="query">
+	select * from poss where category='links'
+</cfquery>
 <cfoutput>
 
 

				Attributes
				<span class="infoLink" onclick="checkAllById('#lcase(valuelist(attribute.column_name))#')">[check all]</span>
				<span class="infoLink" onclick="uncheckAllById('#lcase(valuelist(attribute.column_name))#')">[check none]</span>
			</td>
		</tr>
		<tr>

				</table>
				</div>
			</td>
			<td valign="top" nowrap="nowrap">
			<div style="height:350px; text-align:right; overflow:scroll;position:relative;">
			<table cellpadding="0" cellspacing="0">
				<cfloop query="link">
					<tr><td nowrap="nowrap">
						<cfif left(column_name,1) is "_">
							#right(column_name,len(column_name)-1)#
						<cfelse>
							#column_name#
						</cfif>
						<input type="checkbox" 
							name="#column_name#"
							id="#lcase(column_name)#"
							<cfif listfindnocase(client.resultColumnList,column_name)> 
							checked="checked"</cfif>
							onchange="if(this.checked==true){crcloo(this.name,'in')}else{crcloo(this.name,'out')};">
						</td></tr>					
					</cfloop>
				
				</table>
				</div>
			</td>
		</tr>
	</table>

