anchor.diff:  												<td class="rightLabel" colspan="3">
   													<c:choose>
   														<c:when test="${canUserUpdateParticle eq 'true'}">
  -															<html:textarea name="function.linkage" property="description" rows="3" />
  +															<html:textarea property="function.linkages[${linkageInd}].description" rows="3" />
   														</c:when>
   														<c:otherwise>
  -															${thisForm.map.function.linkages[status.index].description}&nbsp;
  +															${linkage.description}&nbsp;
   														</c:otherwise>
   													</c:choose>
   												</td>
   											</tr>
  +
   											<tr>
   												<td class="leftLabel">
   													<strong>Agent Type</strong>
   												</td>
  -												<td class="lable">
  -													<html:select name="function.linkage" property="agent.type" onchange="javascript:refreshAgent(this.form, 'updateAgentForm', ${status.index})">
  -														<option />
  -															<html:options name="allAgentTypes" />
  -													</html:select>
  -												</td>
  -												<logic:notEmpty name="function.linkage" property="agent.type">
  -													<logic:equal name="function.linkage" property="agent.type" value="DNA">
  -														<td class="label">
  -															<strong>Sequence</strong>
  -														</td>
  -														<td class="rightLabel">
  -															<html:text name="function.linkage" indexed="true" property="agent.value"/>
  -															&nbsp;
  -														</td>
  -													</logic:equal>
  -													<logic:equal name="function.linkage" property="agent.type" value="Peptide">
  -														<td class="label">
  -															<strong>Sequence</strong>
  -														</td>
  -														<td class="rightLabel">
  -															<html:text name="function.linkage" indexed="true" property="agent.otherValue"/>
  -															&nbsp;
  -														</td>
  -													</logic:equal>
  -													<logic:equal name="function.linkage" property="agent.type" value="Samll Molecule">
  -														<td class="label">
  -															<strong>Name</strong>
  -														</td>
  -														<td class="label">
  -															<html:text name="function.linkage" indexed="true" property="agent.name"/>
  -															&nbsp;
  -														</td>
  -														<td class="label">
  -															<strong>Compound Name</strong>
  -														</td>
  -														<td class="rightLabel">
  -															<html:text name="function.linkage" indexed="true" property="agent.otherValue"/>
  -															&nbsp;
  -														</td>
  -													</logic:equal>
  -													<logic:equal name="function.linkage.agent.type" value="Probe">
  -														<td class="label">
  -															<strong>Name</strong>
  -														</td>
  -														<td class="label">
  -															<html:text name="function.linkage" indexed="true" property="agent.name"/>
  -															&nbsp;
  -														</td>
  -														<td class="label">
  -															<strong>Type</strong>
  -														</td>
  -														<td class="rightLabel">
  -															<html:text name="function.linkage" indexed="true" property="agent.otherValue"/>
  -															&nbsp;
  -														</td>
  -													</logic:equal>
  -													<logic:equal name="function.linkage.agent.type" value="Antibody">
  -														<td class="label">
  -															<strong>Name</strong>
  -														</td>
  -														<td class="label">
  -															<html:text name="function.linkage" indexed="true" property="agent.name"/>													
  -															&nbsp;
  -														</td>
  -														<td class="label">
  -															<strong>Species</strong>
  -														</td>
  -														<td class="rightLabel">
  -															<html:text name="function.linkage" indexed="true" property="agent.otherValue"/>
  -															&nbsp;
  -														</td>
  -													</logic:equal>
  -													<logic:equal name="function.linkage.agent.type" value="Image Contrast Agent">
  -														<td class="label">
  -															<strong>Name</strong>
  -														</td>
  -														<td class="label">
  -															<html:text name="function.linkage" indexed="true" property="agent.name"/>
  -															&nbsp;
  -														</td>
  -														<td class="label">
  -															<strong>Type</strong>
  -														</td>
  -														<td class="rightLabel">
  -															<html:text name="function.linkage" indexed="true" property="agent.otherValue"/>
  -															&nbsp;
  -														</td>
  -													</logic:equal>
  -												</logic:notEmpty>
  -											</tr>
  -											<!--   based on the value of function type -->
  -											
  -											<!--   end of based on the value of function type -->
  +												<td class="rightLabel" colspan="3">
  +													<table cellspacing="0" cellpadding="3" width="100%" align="center" summary="" border="0">
  +														<c:forEach var="agentType" items="${allAgentTypes[submitType]}" varStatus="status">
  +															<tr>
  +																<td class="borderlessLabel">
  +																	<c:choose>
  +																		<c:when test="${canUserUpdateParticle eq 'true'}">
  +																			<html:radio property="function.linkages[${linkageInd}].agent.type" value="${agentType}" />
  +																	${agentType}
  +																		</c:when>
  +																		<c:otherwise>
  +															${linkage.agent.type}&nbsp;
  +														</c:otherwise>
  +																	</c:choose>
  +																	&nbsp;&nbsp;&nbsp;
  +																</td>
  +																<td class="borderlessLabel">
  +																	<c:choose>
  +																		<c:when test="${agentType eq 'Peptide' || agentType eq 'DNA'}">
  +																			<strong>Sequence</strong>
  +																			<c:choose>
  +																				<c:when test="${canUserUpdateParticle eq 'true'}">
  +																					<html:text property="function.linkages[${linkageInd}].agent.otherValue" />
  +																				</c:when>
  +																				<c:otherwise>
  +															${linkage.agent.otherValue}&nbsp;
  +														</c:otherwise>
  +																			</c:choose>
  +																		</c:when>
  +																		<c:otherwise>
  +																			<strong>Name</strong>
  +																			<c:choose>
  +																				<c:when test="${canUserUpdateParticle eq 'true'}">
  +																					<html:text property="function.linkages[${linkageInd}].agent.name" />
  +																				</c:when>
  +																				<c:otherwise>
  +															${linkage.agent.name}&nbsp;
  +														</c:otherwise>
  +																			</c:choose>
  +																		</c:otherwise>
  +																	</c:choose>
  +																</td>
  +																<td class="borderlessLabel">
  +																	<c:choose>
  +																		<c:when test="${canUserUpdateParticle eq 'true'}">
  +																			<c:choose>
  +																				<c:when test="${agentType eq 'Small Molecule'}">
  +																					<strong>Compound Name</strong>
  +																				</c:when>
  +																				<c:when test="${agentType eq 'Probe'}">
  +																					<strong>Probe Type</strong>
  +																				</c:when>
  +																				<c:when test="${agentType eq 'Antibody'}">
  +																					<strong>Species</strong>
  +																				</c:when>
  +																				<c:when test="${agentType eq 'Image Contrast Agent'}">
  +																					<strong>Contrast Agent Type</strong>
  +																				</c:when>
  +																			</c:choose>
  +																			<html:text property="function.linkages[${linkageInd}].agent.otherValue" />
  +																		</c:when>
  +																		<c:otherwise>																		
  +																			${linkage.agent.otherValue}" /> &nbsp;
  +																		</c:otherwise>
  +																	</c:choose>
  +																</td>
  +															</tr>
  +														</c:forEach>
  +													</table>
  +												</td>
  +											</tr>
  +											<tr>
  +												<td class="leftLabel">
  +													<Strong>Agent Description</Strong>
  +												</td>
  +												<td class="rightLabel" colspan="3">
  +													<c:choose>
  +														<c:when test="${canUserUpdateParticle eq 'true'}">
  +															<html:textarea property="function.linkages[${linkageInd}].agent.description" rows="3" />
  +														</c:when>
  +														<c:otherwise>
  +															${linkage.agent.description}&nbsp;
  +														</c:otherwise>
  +													</c:choose>
  +												</td>
  +											</tr>
  +
  +											<tr>
  +												<td class="leftLabel">
  +													<strong>Number of Agent Targets </strong>
  +												</td>
  +												<td class="label">
  +													<c:choose>
  +														<c:when test="${canUserUpdateParticle eq 'true'}">
  +															<html:text property="function.linkages[${linkageInd}].agent.numberOfAgentTargets" />
  +														</c:when>
  +														<c:otherwise>
  +										${linkage.agent.numberOfAgentTargets}&nbsp;
  +									</c:otherwise>
  +													</c:choose>
  +												</td>
  +												<td class="rightLabel" colspan="2">
  +													&nbsp;
  +													<c:choose>
  +														<c:when test="${canUserUpdateParticle eq 'true'}">
  +															<input type="button" onclick="javascript:updateAgentTargets('${linkageInd}')" value="Update Agent Targets">
  +														</c:when>
  +													</c:choose>
  +												</td>
  +											</tr>
  +											<tr>
  +												<td class="completeLabel" colspan="4">
  +													<logic:iterate id="target" name="nanoparticleFunctionForm" property="function.linkages[${linkageInd}].agent.agentTargets" indexId="tIndex">
  +														<table class="topBorderOnly" cellspacing="0" cellpadding="3" width="100%" align="center" summary="" border="0">
  +															<tbody>
  +																<tr class="topBorder">
  +																	<td class="formSubTitle" colspan="4">
  +																		<div align="justify">
  +																			Agent Target ${tIndex+1}
  +																		</div>
  +																	</td>
  +																</tr>
  +																<tr>
  +																	<td class="leftLabel">
  +																		<strong>Target Type</strong>
  +																	</td>
  +																	<td class="label">
  +																		<c:choose>
  +																			<c:when test="${canUserUpdateParticle eq 'true'}">
  +																				<html:select property="function.linkages[${linkageInd}].agent.agentTargets[${tIndex}].type">
  +																					<c:forEach var="agentTargetType" items="${allAgentTargetTypes[linkage.agent.type]}">
  +																						<html:option value="${agentTargetType}" />
  +																					</c:forEach>
  +																				</html:select>
  +																			</c:when>
  +																			<c:otherwise>
  +																											${linkage.agent.type}&nbsp;
  +									</c:otherwise>
  +																		</c:choose>
  +
  +																	</td>
  +																	<td class="label">
  +																		<strong>Target Name</strong>
  +																	</td>
  +																	<td class="rightLabel">
  +																		<c:choose>
  +																			<c:when test="${canUserUpdateParticle eq 'true'}">
  +																				<html:text property="function.linkages[${linkageInd}].agent.agentTargets[${tIndex}].name" />
  +																			</c:when>
  +																			<c:otherwise>
  +										${linkage.agent.name}&nbsp;
  +									</c:otherwise>
  +																		</c:choose>
  +
  +																	</td>
  +																</tr>
  +																<tr>
  +																	<td class="leftLabel">
  +																		<strong>Target Description</strong>
  +																	</td>
  +																	<td class="rightLabel" colspan="3">
  +																		<c:choose>
  +																			<c:when test="${canUserUpdateParticle eq 'true'}">
  +																				<html:textarea property="function.linkages[${linkageInd}].agent.agentTargets[${tIndex}].description" rows="3" />
  +																			</c:when>
  +																			<c:otherwise>
  +										${linkage.agent.description}&nbsp;
  +									</c:otherwise>
  +																		</c:choose>
  +
  +																	</td>
  +																</tr>
  +														</table>
  +														<br>
  +													</logic:iterate>
  +												</td>
  +											</tr>
   										</tbody>
   									</table>
  -								</c:forEach>
  +									<br>
  +								</logic:iterate>
   							</td>
   						</tr>
   				</table>
  
positive.code: <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
  <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  <script type="text/javascript">
  <!--
  function refreshAgent(form, action,index) {
      form.action = form.action + '?dispatch='+action+'&index='+index
      form.submit();
  }
  //-->
  </script>
  
  <html:form action="/nanoparticleFunction">
  	<table width="100%" align="center">
  
negative.code: 		</tr>
  		<tr>
  			<td colspan="2">
  				<jsp:include page="/bodyMessage.jsp?bundle=submit" />
  				<jsp:include page="bodyFunctionSummary.jsp" />
  
  