 			<td>#qy.numberSpecimens#</td>
 		</tr>
 		<cfif isdefined('getCSV') and getCSV is true>
-		<cfscript>
-			variables.joFileWriter.writeLine('"#y#","#qy.numberCollections#","#qy.numberSpecimens#"');
-		</cfscript>
-	</cfif>
+			<cfscript>
+				variables.joFileWriter.writeLine('"#y#","#qy.numberCollections#","#qy.numberSpecimens#"');
+			</cfscript>
+		</cfif>
 	</cfloop>
 	</table>
 		<cfif isdefined('getCSV') and getCSV is true>
-	<cfscript>
-		variables.joFileWriter.close();
-	</cfscript>
+			<cfscript>
+				variables.joFileWriter.close();
+			</cfscript>
 			<cflocation url="/download.cfm?file=#fname#" addtoken="false">
-
-	</cfif>
+		</cfif>
 	<hr>
 	<a name="collections"></a>
 	<p>List of collections in Arctos:</p>

			<th>Number Collections</th>
			<th>Number Specimens</th>
		</tr>
		<cfif isdefined('getCSV') and getCSV is true>
	<cfscript>
		variables.joFileWriter = createObject('Component', '/component.FileWriter').init(variables.fileName, variables.encoding, 32768);
		variables.joFileWriter.writeLine("year,NumberCollections,NumberSpecimens");
	</cfscript>
	</cfif>
	<cfloop from="1995" to="#dateformat(now(),"YYYY")#" index="y">
		<cfquery name="qy" datasource="uam_god">

			<td><input value="#reln.c#"></td>
		</tr>
	</table>


	<!------------



	<!----
	* The numbers above represent tables owned by the system owner.
	There are about 85 "data tables" which contain primary specimen data. They're pretty useless by themselves - the other several hundred tables are user info,
