 					</div>
 				</td>
 			</tr>
+			<cfset i=i+1>
 		</cfloop>
 	</table>
 	</cfoutput>

<style>
	.noExpDate {border: 8px solid orange;}
	.expired {border: 4px solid gray;}
	.sixmos {border: 4px solid yellow;}
	.onemo {border: 4px solid red;}
	.eventually {border: 4px solid green;}
</style>

</cfquery>
<script src="/includes/sorttable.js"></script>

<cfset i=1>
<table border id="t" class="sortable">
		<tr>
			<th>Permit Number</th>
