anchor.diff:  			<tr>
   				<td>
   				<!-- Downregulated/Deleted -->
  -				<span style="font-size:.9em"><label for="downFold"><bean:write name="kmDataSetForm" property="downOrDeleted" /></label></span>			
  +				<span style="font-size:.9em"><label for="downFold">
  +				<s:property value="kmForm.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">						
  +				<s:if test="kmForm.plotType.equals('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">						
  +					<s:select id="downFold" name="kmForm.downFold" list="kmForm.folds" theme="simple">
  +	
  +					</s:select>
  +				</s:if>
  +				<s:if test="kmForm.plotType.equals('COPY_NUM_KM_PLOT')">					
   					&nbsp;&le;&nbsp; 
  -					<html:select styleId="downFold" property="downFold">
  -						<html:options property="copyNumberDownFolds" />
  -					</html:select>
  -				</logic:equal>
  +					<s:select id="downFold" name="kmForm.downFold" list="kmForm.copyNumberDownFolds" theme="simple">
  +						
  +					</s:select>
  +				</s:if>
   				<!--end after deleted 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>
   				
   				<!--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">	
  +					<s:if test="kmForm.plotType.equals('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>	
  +						
  +						<s:select id="selectedReporter" name="kmForm.selectedReporter" list="kmForm.reporters" theme="simple">
  +						</s:select>
  +					</s:if>	
   				</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>
  +					<s:iterator value="kmForm.items" var="item"> 
  +						<s:checkbox name="kmForm.selectedItems" theme = "simple">
  +							<s:property value="#item" />
  +						</s:checkbox>
  +					</s:iterator>
   				</td>
   			</tr>
   			
   		</table>
   	</div>
   	<br/>
  -	<html:submit value="Redraw Graph" styleId="redrawGraphButton" />
  -	</logic:notEqual>
  +	<!--  s:submit value="Redraw Graph" id="redrawGraphButton" /> -->
  +	<s:submit type="button" id="redrawGraphButton" theme="simple">Redraw Graph</s:submit>
  +	</s:if>
   		
   	<div>
  -	<logic:equal name="kmDataSetForm" property="plotVisible" value="true">
  +	<s:if test="kmForm.plotVisible == true">
  +	
   		<hr/>
   		<b> 
   			<font size="+1"> 
  -				<bean:write name="kmDataSetForm" property="chartTitle" /> 
  +				<s:property value="kmForm.chartTitle" />
   			</font>
   		</b>
   		<br/>
   		
   		<!-- INSERT CHART HERE --> 
   		<p>
  -			<graphing:KaplanMeierPlot bean="kmDataSetForm" dataset="selectedDataset" />
  +			<graphing:KaplanMeierPlot bean="kmForm" dataset="selectedDataset" />
   		</p>
   		<p>
   		<br/>
  
positive.code: 		View Clinical Reports<br />
  	
  		
  		<bean:define id="selectedItemsId" name="kmDataSetForm" property="selectedItems" />
  		<% 
  		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">		
  			<%
  			if ( selectedGrpList != null && selectedGrpList.contains("Up-Regulated") ) {
  			%>
  				<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=up',700,500,'clinicalPlots');"/>Upregulating Samples</a>
  			<%
  			}
  			if ( selectedGrpList != null && selectedGrpList.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>
  			<%
  			}
  			%>
  			<!--  
  			<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=up',700,500,'clinicalPlots');"/>Upregulating Samples</a>
  		 	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=down',700,500,'clinicalPlots');"/>Downregulating samples</a>
  			-->
  		</logic:equal>
  		<logic:equal name="kmDataSetForm" property="plotType" value="COPY_NUM_KM_PLOT">		
  			<%
  			if ( selectedGrpList != null && selectedGrpList.contains("Up-Regulated") ) {
  			%>
  				<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=up',700,500,'clinicalPlots');"/>Samples with Amplification</a>
  			<%
  			}
  			if ( selectedGrpList != null && selectedGrpList.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>
  			<%
  			}
  			%>
  			<!--  
  			<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=up',700,500,'clinicalPlots');"/>Samples with Amplification</a>
  		 	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=down',700,500,'clinicalPlots');"/>Samples with Deletion</a>
  			-->
  		</logic:equal>
  		<logic:notEqual name="kmDataSetForm" property="plotType" value="SAMPLE_KM_PLOT">
  			<%
  			if ( selectedGrpList != null && selectedGrpList.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>
  			<%
  			}
  			%>
  			<!--  
  			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:spawnx('clinicalViaKMReport.do?dataName=KAPLAN&sampleGroup=inter',700,500,'clinicalPlots');"/>Intermediate Samples</a>
  			-->		
  		</logic:notEqual>
  		<logic:equal name="kmDataSetForm" property="plotType" value="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>
  			<logic:notEqual name="kmDataSetForm" property="storedData.samplePlot2Label" value="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" /></a>
  			</logic:notEqual>
  		</logic:equal>
  		
  		<!-- 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">
  			<logic:present name="kmDataSetForm" property="geneOrCytoband">
  				<tr>
  					<td colspan="2" id="reportBold">
  					<bean:write name="kmDataSetForm" property="geneOrCytoband" /></td>
  				</tr>
  			</logic:present>
  			<logic:present name="kmDataSetForm" property="selectedReporter">
  				<!--Show the selected Reporter -->
  				<tr>
  					<td colspan="2" id="reportBold">Reporter: <bean:write
  						name="kmDataSetForm" property="selectedReporter" /></td>
  				</tr>
  			</logic:present>
  			<tr>
  				<td colspan="2">&nbsp;</td>
  			</tr>
  
negative.code: 				<td id="reportBold" colspan="3">Log-rank p-value(for significance of
  				difference of survival between group of samples)</td>
  			</tr>
  			<s:if test="kmForm.storedData.upVsIntPvalue > -100">
  				<tr>
  					<td>
  					<s:property value="kmForm.upOrAmplified" />
  					vs. Intermediate:</td>
  					<td>
  					<s:property value="kmForm.storedData.upVsIntPvalue" />
  					</td>
  				</tr>
  			</s:if>
  
  			<s:if test="kmForm.storedData.upVsDownPvalue > -100">
  				<tr>
  					<td>
  					<s:property value="kmForm.upOrAmplified" />
  					 vs. <s:property value="kmForm.downOrDeleted" />:</td>
  					<td>
  					<s:property value="kmForm.storedData.upVsDownPvalue" />
  					</td>
  				</tr>
  			</s:if>
  
  			<s:if test="kmForm.storedData.downVsIntPvalue > -100">
  				<tr>
  					<td>
  					<s:property value="kmForm.downOrDeleted" />
  					vs. Intermediate:</td>
  					<td>
  					<s:property value="kmForm.storedData.downVsIntPvalue" />
  					</td>
  				</tr>
  			</s:if>
  			<s:if test="kmForm.storedData.numberOfPlots > 2">
  				<tr>
  					<td colspan="2">
  					<hr width="100%" size="1" color="black" />
  					</td>
  				</tr>
  				<s:if test="kmForm.storedData.upVsRestPvalue > -100">
  					<tr>
  						<td>
  						<s:property value="kmForm.upOrAmplified" />
  						vs. all other samples:</td>
  						<td>
  						<s:property value="kmForm.storedData.upVsRestPvalue" />
  						</td>
  					</tr>
  				</s:if>
  				<s:if test="kmForm.storedData.downVsRestPvalue > -100">
  					<tr>
  						<td>
  						<s:property value="kmForm.downOrDeleted" />
  						vs. all other samples:</td>
  						<td>
  						<s:property value="kmForm.storedData.downVsRestPvalue" />
  						</td>
  					</tr>
  				</s:if>
  				<s:if test="kmForm.storedData.intVsRestPvalue > -100">
  					<tr>
  						<td>Intermediate vs. all other samples:</td>
  						<td>
  						<s:property value="kmForm.storedData.intVsRestPvalue" />
  						</td>
  					</tr>
  				</s:if>
  			</s:if>
  				<s:if test="kmForm.storedData.sampleList1VsSampleList2 > -100">
  					<tr>
  						<td>
  						<s:property value="kmForm.storedData.samplePlot1Label" /> vs. <s:property value="kmForm.storedData.samplePlot2Label" />:</td>
  						<td>
  						<s:property value="kmForm.storedData.sampleList1VsSampleList2" />
  						</td>
  					</tr>
  				</s:if>
  
  			<s:if test="kmForm.storedData.numberOfPlots < 1">
  				<td>N/A ( Not Applicable )</td>
  			</s:if>
  		</table>
  		</fieldset>
  		
  	</s:if> <!-- TAG CREATION WOULD NEED TO CONTAIN THE ABOVE --> 
  	
  	<s:if test="kmForm.plotVisible == false">
  		<p>To display graph, Please select a Reporter for the Gene: 
  		<s:property value="kmForm.geneOrCytoband" /> and select "Redraw Graph"
  		</p>
  	</s:if>
  </div>
  </s:form>
  
  