 </cffunction>
 <!-------------------------------------------------------------->
 <cffunction name="catnum_to_list" access="public" returntype="query">
+
+	<!----
+
+		INPUT: Query containing cat_num as INTEGER
+
+		OUTPUT: everything except cat_num GROUPed, cat_num as range-containing list in variable catnumlist
+
+	---->
+
     <cfargument name="d" required="true" type="query">
 	<cfset ColLst=d.columnList>
 	<cfset colLst=listdeleteat(colLst,listfindnocase(colLst,"cat_num"))>

</cffunction>
<!-------------------------------------------------------------->
<cffunction name="format_cumv_multi" access="public" returntype="Query">
    <cfargument name="d" required="true" type="query">
	<cfquery name="family" dbtype="query">
		select family from d group by family


		<cfset pAr[i] = "#partString#">

		<!--- Sex --->
		<cfset formatted_sex = "#sex#">
		<cfif trim(formatted_sex) is "unknown" or trim(formatted_sex) is 'recorded as unknown' or trim(formatted_sex) equal 'not recorded'>
