anchor.diff:  <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
   <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
   <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  -<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>
  +<%@ page import="edu.wustl.catissuecore.util.global.Constants,edu.wustl.catissuecore.actionForm.SpecimenArrayTypeForm"%>
  +<%@ page import="java.util.List,java.util.ArrayList"%>
  +<%@ page import="edu.wustl.common.beans.NameValueBean"%>
  +<%@ page import="java.util.HashMap"%>
   
   <html:messages id="messageKey" message="true" header="messages.header" footer="messages.footer">
   	<%=messageKey%>
   </html:messages>
  -
   <html:errors/>
  -
  -<html:form action="SpecimenArrayTypeAdd.do">
  +<script type="text/javascript">
  +
  +<%
  +	List specimenClassList = (List) request.getAttribute(Constants.SPECIMEN_CLASS_LIST);
  +	HashMap specimenTypeMap = (HashMap) request.getAttribute(Constants.SPECIMEN_TYPE_MAP);
  +	SpecimenArrayTypeForm form = (SpecimenArrayTypeForm)request.getAttribute("arrayTypeForm");
  +	String operation = (String)request.getAttribute(Constants.OPERATION);
  +	System.out.println(" Form ::  " + form);
  +%>
  +
  +<%
  +	int classCount=0;
  +	for(classCount=1;classCount<specimenClassList.size();classCount++)
  +	{
  +		String keyObj = (String)((NameValueBean)specimenClassList.get(classCount)).getName() ;
  +		List subList = (List)specimenTypeMap.get(keyObj);
  +		String arrayData = "";
  +		for(int listSize=0;listSize<subList.size();listSize++ )
  +		{
  +			if(listSize == subList.size()-1 )
  +				arrayData = arrayData + "\"" + ((NameValueBean)subList.get(listSize)).getName() + "\"";
  +			else
  +    			arrayData = arrayData + "\"" + ((NameValueBean)subList.get(listSize)).getName() + "\",";   
  +		}
  +%>
  +		var <%=keyObj%>Array = new Array(<%=arrayData%>);
  +<%	    		
  +	}
  +%>
  +
  +		function typeChange(specArrayTypeArr)
  +		{ 
  +			var specimenTypeCombo = "type";
  +			ele = document.getElementById(specimenTypeCombo);
  +			//To Clear the Combo Box
  +			ele.options.length = 0;
  +
  +		    if (specArrayTypeArr != null) {
  +				specArrayTypeArr.sort();
  +				//ele.options[0] = new Option('-- Select --','-1');
  +				var j=0;
  +				//Populating the corresponding Combo Box
  +				for(i=0;i<specArrayTypeArr.length;i++)
  +				{
  +						ele.options[j++] = new Option(specArrayTypeArr[i],specArrayTypeArr[i]);
  +				}
  +		    } else {
  +				ele.options[0] = new Option('-- Select --','-1');
  +			}
  +		}
  +			
  +		function onClassChange(element)
  +		{
  +			
  +			if(element.value == "Tissue")
  +			{
  +				typeChange(TissueArray);
  +			}
  +			else if(element.value == "Fluid")
  +			{
  +				typeChange(FluidArray);
  +			}
  +			else if(element.value == "Cell")
  +			{
  +				typeChange(CellArray);
  +			}
  +			else if(element.value == "Molecular")
  +			{
  +				typeChange(MolecularArray);
  +			} else {
  +				typeChange(null);	
  +			}
  +		}
  +		
  +		
  +</script>
  +
  +<html:form action="SpecimenArrayTypeAdd.do?operation=add">
   <table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="100%">
   <tr>
   	<td>
  
positive.code: 					</label>
  				</td>
  				<td class="formField" colspan="3">
  					<html:select property="specimenClass" styleClass="formFieldSized" styleId="state" size="1">
  						<html:options collection="<%=Constants.SPECIMEN_CLASS_LIST%>" labelProperty="name" property="value"/>
  					</html:select>
  				</td>
  			</tr>
  			
  			<tr>
  				<td class="formRequiredNotice" width="5">*</td>
  
negative.code: 					<table cellpadding="4" cellspacing="0" border="0">
  						<tr>
  							<td>
  								<html:submit styleClass="actionButton">
  									<bean:message  key="buttons.submit" />
  								</html:submit>
  							</td>
  