anchor.diff:  			<tr>			
   				<td>
   					<!-- Upregulated/Amplified  -->
  -					<span style="font-size:.9em"><label for="upFold"><bean:write name="kmDataSetForm" property="upOrAmplified" /></label></span>
  +					<span style="font-size:.9em">
  +					<label for="upFold">
  +					<s:property value="kmForm.upOrAmplified" />
  +					</label>
  +					</span>
   					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&ge;&nbsp; 
   				<!--check to see if it is copy number km plot or GE km plot. if it is, change the amplified fold change values-->
  -				<logic:equal name="kmDataSetForm" property="plotType" value="GE_KM_PLOT">	
  -					<html:select styleId="upFold" property="upFold">
  -						<html:options property="folds" />
  -					</html:select>
  -				</logic:equal>
  -				<logic:equal name="kmDataSetForm" property="plotType" value="COPY_NUM_KM_PLOT">						
  -					<html:select styleId="upFold" property="upFold">
  -						<html:options property="copyNumberUpFolds" />
  -					</html:select>
  -				</logic:equal>
  +				<!--  logic:equal name="kmDataSetForm" property="plotType" value="GE_KM_PLOT">	-->
  +				<s:if test="kmForm.plotType.equals('GE_KM_PLOT')">
  +					<s:select id="upFold" name="kmForm.upFold" list="kmForm.folds" theme="simple">
  +					</s:select>
  +				</s:if>
  +				
  +				
  +				<s:if test="kmForm.plotType.equals('COPY_NUM_KM_PLOT')">					
  +					<s:select id="upFold" name="kmForm.upFold" list="kmForm.copyNumberUpFolds" theme="simple">
  +					</s:select>
  +				</s:if>
   				<!--end after up fold change values have been determined-->
   					
  -					
  -					
  -					
  -					<span style="font-size:.9em"><bean:write name="kmDataSetForm" property="changeType" /></span>
  +					<span style="font-size:.9em">
  +					<s:property value="kmForm.changeType" />
  +					</span>
   				</td>
   				
   				<td>			
  -					<!--make sure plot is GE and not Copy # before giving option of algorithm to use-->
  -					<logic:equal name="kmDataSetForm" property="plotType" value="GE_KM_PLOT">						
  +					<!--make sure plot is GE and not Copy # before giving option of algorithm to use-->	
  +					<s:if test="kmForm.plotType.equals('GE_KM_PLOT')">					
   						<!--Unified or regular algorithm-->
   						<span style="font-size:.9em;margin-left:10px"><label for="reporterType">Reporter Type</label></span>			
  -						<html:select styleId="reporterType" property="reporterSelection" onchange="$('redrawGraphButton').disabled = 'true';$('redrawGraphButton').style.color='gray'; document.forms[0].selectedReporter.selectedIndex=0;  document.forms[0].submit();">
  -							<html:options property="algorithms" />
  -						</html:select> &nbsp; 	
  -					</logic:equal>		
  +						<s:select id="reporterType" name="kmForm.reporterSelection" list="kmForm.algorithms" theme="simple"
  +						onchange="$('redrawGraphButton').disabled = 'true';$('redrawGraphButton').style.color='gray'; document.forms[0].selectedReporter.selectedIndex=0;  document.forms[0].submit();">
  +							
  +						</s:select> &nbsp; 	
  +					</s:if>		
   				</td>
   				
   			</tr>
  
positive.code: 			<tr>
  				<td>
  				<!-- Downregulated/Deleted -->
  				<span style="font-size:.9em"><label for="downFold"><bean:write name="kmDataSetForm" property="downOrDeleted" /></label></span>			
  				
  				<!--check to see if it is copy number km plot or GE km plot. if it is, change the deleted fold change values-->
  				<logic:equal name="kmDataSetForm" property="plotType" value="GE_KM_PLOT">						
  					&nbsp;&ge;&nbsp; 
  					<html:select styleId="downFold" property="downFold">
  						<html:options property="folds" />
  					</html:select>
  				</logic:equal>
  				<logic:equal name="kmDataSetForm" property="plotType" value="COPY_NUM_KM_PLOT">						
  					&nbsp;&le;&nbsp; 
  					<html:select styleId="downFold" property="downFold">
  						<html:options property="copyNumberDownFolds" />
  					</html:select>
  				</logic:equal>
  				<!--end after deleted fold change values have been determined-->
  				 			
  				<span style="font-size:.9em"><bean:write name="kmDataSetForm" property="changeType" /></span> 
  				</td>
  				
  				<!--Reporters-->
  				<td>
  					<!--make sure plot is GE and not Copy # before giving option of algorithm to use-->
  					<logic:equal name="kmDataSetForm" property="plotType" value="GE_KM_PLOT">	
  						<span style="font-size:.9em;margin-left:10px"><label for="selectedReporter">Reporters</label></span>
  						<html:select styleId="selectedReporter" property="selectedReporter">
  							<html:options property="reporters" />
  						</html:select>
  					</logic:equal>	
  				</td>
  			</tr>
  			
  			<tr>
  				<td align="center" colspan="2" style="font-size:.9em;margin-left:10px">
  					<p align="left">Select which plots should be visible in the redrawn graph:<label for="item">&#160;</label><br/></p>
  				    <logic:iterate id="item" property="items" name="kmDataSetForm">
  				      	<html:multibox styleId="item" property="selectedItems" name="kmDataSetForm">
  				       		<bean:write name="item"/> 
  				      	</html:multibox> 
  				       	<bean:write name="item"/>
  				    </logic:iterate>
  				</td>
  			</tr>
  			
  		</table>
  	</div>
  	<br/>
  	<html:submit value="Redraw Graph" styleId="redrawGraphButton" />
  	</logic:notEqual>
  		
  	<div>
  	<logic:equal name="kmDataSetForm" property="plotVisible" value="true">
  		<hr/>
  		<b> 
  			<font size="+1"> 
  				<bean:write name="kmDataSetForm" property="chartTitle" /> 
  			</font>
  		</b>
  		<br/>
  		
  		<!-- INSERT CHART HERE --> 
  		<p>
  			<graphing:KaplanMeierPlot bean="kmDataSetForm" dataset="selectedDataset" />
  		</p>
  		<p>
  		<br/>
  
negative.code: 		View Clinical Reports<br />
  	
  		
  		<!-- bean:define id="selectedItemsId" name="kmDataSetForm" property="selectedItems" />  -->
  		<s:set var="selectedItemsId" value="kmForm.selectedItems" />
  		
  		<% 
  		//Shan: why do we need this
  		//String[] selectedGroups = (String[])selectedItemsId; 
  		//List selectedGrpList = Arrays.asList(selectedGroups);
  		%>
  
  		<!--check what type of plot it is as to display the correct link text-->
  		<!--  logic:equal name="kmDataSetForm" property="plotType" value="GE_KM_PLOT">	-->
  		<s:if test="kmForm.plotType.equals('GE_KM_PLOT')">	
  			<s:if test="kmForm.selectedItems != null && kmForm.selectedItems.contains('Up-Regulated')">
  				<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=up',700,500,'clinicalPlots');"/>
  				Upregulating Samples</a>
  			</s:if>
  			<s:if test="kmForm.selectedItems != null && kmForm.selectedItems.contains('Down-Regulated')">
  		 		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=down',700,500,'clinicalPlots');"/>Downregulating samples</a>
  			</s:if>
  			
  		</s:if>
  		<s:if test="kmForm.plotType.equals('COPY_NUM_KM_PLOT')">	
  			
  			<s:if test="kmForm.selectedItems != null && kmForm.selectedItems.contains('Up-Regulated')">
  				<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=up',700,500,'clinicalPlots');"/>Samples with Amplification</a>
  			</s:if>
  			
  			<s:if test="kmForm.selectedItems != null && kmForm.selectedItems.contains('Down-Regulated')">
  		 		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=down',700,500,'clinicalPlots');"/>Samples with Deletion</a>
  			</s:if>
  			
  		</s:if>
  		
  		<s:if test="!kmForm.plotType.equals('SAMPLE_KM_PLOT')">
  			
  			<s:if test="kmForm.selectedItems != null && kmForm.selectedItems.contains('Intermediate')">
  				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=inter',700,500,'clinicalPlots');"/>Intermediate Samples</a>
  			</s:if>
  				
  		</s:if>
  		
  		<s:if test="kmForm.plotType.equals('SAMPLE_KM_PLOT')">
  			<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=list1',700,500,'clinicalPlots');return false;"/><bean:write name="kmDataSetForm" property="storedData.samplePlot1Label" /></a>
  			
  			<s:if test="!kmForm.storedData.samplePlot2Label.equals('none')">
  				<a style="margin-left:20px" href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=list2',700,500,'clinicalPlots');return false;"/>
  				<!-- bean:write name="kmDataSetForm" property="storedData.samplePlot2Label" />  -->
  				<s:property value="kmForm.storedData.samplePlot2Label" />
  				</a>
  			</s:if>
  		</s:if>
  		
  		<!-- Statistical Data  STARTS HERE --></p>
  		<fieldset class="gray" style="text-align:left">
  		<legend class="red">Statistical	Report:</legend>
  		<table class="graphTable" border="0" cellpadding="2" cellspacing="0">
  			<s:if test="kmForm.geneOrCytoband != null && kmForm.geneOrCytoband.length() > 0">
  				<tr>
  					<td colspan="2" id="reportBold">
  						<s:property value="kmForm.geneOrCytoband" />
  					</td>
  				</tr>
  			</s:if>
  			<s:if test="kmForm.selectedReporter != null && kmForm.selectedReporter.length() > 0">
  				<!--Show the selected Reporter -->
  				<tr>
  					<td colspan="2" id="reportBold">Reporter: <s:property value="kmForm.selectedReporter" />
  						</td>
  				</tr>
  			</s:if>
  			<tr>
  				<td colspan="2">&nbsp;</td>
  			</tr>
  