anchor.diff:  <head>
    <title><studyTags:htmlTitle study="${command.study}"/></title>
   <script>
  +
  +function redirectToTab(tabNumber){
  +	if(tabNumber != ''){
  +		document.getElementById('flowredirect-target').name='_target'+tabNumber;
  +		document.getElementById('flowredirect').submit()
  +	}
  +}
  +
   function activateAndSaveStudy(){
   	if (${fn:length(errors)} > 0){
   		var d = $('errorsOpenDiv');
  
positive.code: </script>
  </head>
  <body>
  <div id="controlPanel">
  	<tags:controlPanel>
  		<c:if test="${!(command.study.companionIndicator && !command.study.standaloneIndicator)}">
  
negative.code: 			</chrome:division>
  		</c:if>
      </c:forEach>
  </chrome:division>  
  <chrome:division title="Stratum Groups" cssClass="big" link="javascript:redirectToTab('${stratificationTab}')" condition="${not empty flowType}">
  	<c:forEach items="${command.study.epochs}" var="epoch">
  		<c:if test="${epoch.stratificationIndicator}">
  			<chrome:division title="${epoch.name}" cssClass="indented">
  				<c:choose>
  					<c:when test="${fn:length(epoch.stratumGroups)> 0}">
  						<table class="tablecontent" width="70%"}">
  					        <tr>
  					            <th width="50%" scope="col" align="left"><b><fmt:message key="registration.stratumGroupNumber"/></b></th>
  	            				<th scope="col" align="left"><b><fmt:message key="study.answerCombination"/></b></th>
  					        </tr>
  					        <c:forEach items="${epoch.stratumGroups}" var="stratGrp">	
  						        <tr>
  						        	<td class="alt">${stratGrp.stratumGroupNumber}</td>
  	                    			<td class="alt">${stratGrp.answerCombinations}</td>
  								</tr>
  							</c:forEach>
  				   	 	</table>
  				   	 	<br>
  					</c:when>
  					<c:otherwise>
  						<div align="left"><span><fmt:message key="study.noStratumGroupGenerated"/></span></div>
  					</c:otherwise>
  				</c:choose>
  			</chrome:division>
  		</c:if>
      </c:forEach>
  </chrome:division>
  <chrome:division title="Diseases" cssClass="big" link="javascript:redirectToTab('${diseaseTab}')" condition="${not empty flowType}">
  	<c:choose>
  		<c:when test="${fn:length(command.study.studyDiseases) >0}">
  		    <table class="tablecontent" width="60%">
  		        <tr>
  		            <th width="50%" scope="col" align="left"><b><fmt:message key="study.diseaseTerm"/></b></th>
  		            <th scope="col" align="left"><b><fmt:message key="c3pr.common.primary"/></b></th>
  		        </tr>
  		        <c:forEach items="${command.study.studyDiseases}" var="studyDisease" varStatus="status">
  		            <tr class="results">
  		                <td class="alt">${studyDisease.diseaseTerm.ctepTerm}</td>
  		                <td class="alt">${studyDisease.leadDisease=="true"?"Yes":"No"}</td>
  		            </tr>
  		        </c:forEach>
  		    </table>
  	    </c:when>
  	    <c:otherwise>
  	    	<div align="left"><span><fmt:message key="study.noDiseasesAvailable"/></span></div>
  	    </c:otherwise>
      </c:choose>
  </chrome:division>
  <div id="companionDiv">
  <div id="companionAssociationsDiv" <c:if test="${command.study.companionIndicator=='true'}">style="display:none;"</c:if>>
      	<chrome:division title="Companion Studies" cssClass="big" link="javascript:redirectToTab('${companionTab}')" condition="${not empty flowType}">
          <c:choose>
  	        <c:when test="${fn:length(command.study.companionStudyAssociations)>0}">
  	        	<table class="tablecontent" width="60%">
  		            <tr>
  		                <th width="45%" scope="col" align="left"><b><fmt:message key="study.companionStudyShortTitle"/></b></th>
  		                <th width="30%" scope="col" align="left"><b><fmt:message key="c3pr.common.dataEntryStatus"/></b></th>
  		                <th width="15%" scope="col" align="left"><b><fmt:message key="c3pr.common.status"/></b></th>
  		                <th width="10%" scope="col" align="left"><b><fmt:message key="c3pr.common.mandatory"/></b></th>
  		            </tr>
  		            <c:forEach items="${command.study.companionStudyAssociations}" var="companionStudyAssociation">
  		                <tr>
  		                    <td class="alt">${companionStudyAssociation.companionStudy.shortTitleText}</td>
  		                    <td class="alt">${companionStudyAssociation.companionStudy.dataEntryStatus.code}</td>
  		                    <td class="alt">${companionStudyAssociation.companionStudy.coordinatingCenterStudyStatus.code}</td>
  		                    <td class="alt">${companionStudyAssociation.mandatoryIndicator=="true"?"Yes":"No"}</td>
  		                </tr>
  		            </c:forEach>
  		        </table>
  	        </c:when>
  	        <c:otherwise>
  	        	<div align="left"><span><fmt:message key="study.noCompanionsAvailable"/></span></div>
  	        </c:otherwise>  
          </c:choose>
      </chrome:division>
  </div>
  </div>
  <div <c:if test="${command.study.companionIndicator=='false' || (command.study.companionIndicator=='true' && command.study.standaloneIndicator=='true')}">style="display:none;"</c:if>>
      <chrome:division title="Parent Study" cssClass="big">
          <c:choose>
          	<c:when test="${fn:length(command.study.parentStudyAssociations) > 0}">
          		<table class="tablecontent" width="60%">
  		            <tr>
  		                <th width="50%" scope="col" align="left"><b><fmt:message key="study.shortTitle"/></b></th>
  		                <th width="25%" scope="col" align="left"><b><fmt:message key="c3pr.common.status"/></b></th>
  		            </tr>
  		            <c:forEach items="${command.study.parentStudyAssociations}" var="parentStudyAssociation">
  		                <tr>
  		                    <td class="alt">${parentStudyAssociation.parentStudy.shortTitleText}</td>
  		                    <td class="alt">${parentStudyAssociation.parentStudy.coordinatingCenterStudyStatus.code}</td>
  		                </tr>
  		            </c:forEach>
  		        </table>
          	</c:when>
          	<c:otherwise>
          		<div align="left"><span><fmt:message key="study.noParentStudyAvailable"/></span></div>
          	</c:otherwise>
          </c:choose>
  	</chrome:division>
  </div>
  <div id="errorsOpenDiv" style="display:none">
  	<div class="value" align="left">
  		<font size="2" face="Verdana" color="red">
  