 
 
 
-<cflocation url="Permit.cfm?Action=editPermit&permit_id=#permit_id#" addtoken="false">
 
 ---->
 </cfoutput>

				<br>thisPermitAgentRole: #thisPermitAgentRole#
				<cfif left(thisPermitAgentId,3) is "new" and len(thisPermitAgent) gt 0 and len(thisPermitAgentRole) gt 0>
					<br>

					insert into permit_agent (
						permit_id,
						agent_id,
						agent_role
					) values (
						#permit_id#,
						#thisPermitAgent#,
						'#thisPermitAgentRole#'
					)
				<cfelseif left(thisPermitAgentId,3) is not "new">
					<cfif thisPermitAgentRole is "DELETE">
						<br>delete from permit_agent where permit_agent_id=#thisPermitAgentId#
					<cfelse>
						<br>update permit_agent set agent_id=#thisPermitAgent#,agent_role='#thisPermitAgentRole#' where  permit_agent_id=#thisPermitAgentId#
					</cfif>

				</cfif>


		</CFLOOP>
	</cftransaction>

	<cflocation url="Permit.cfm?Action=editPermit&permit_id=#permit_id#" addtoken="false">

	<!----
		<cfloop query="permitType">
						<tr>
