anchor.diff:  	<tags:errors path="study.epochs" /> 
   	<div>
   		<input type="hidden" name="_action" value=""> 
  -		
   	</div>
  -		
   <tags:instructions code="study_design" />
   <!-- BIG TABLE START -->
   <table id="genericEpoch" width="100%" border="0">
  -	<tr>
  -        <td></td>
  -    </tr>
  -    <c:forEach items="${command.study.epochs}" var="treatmentEpoch"
  -				varStatus="treatmentEpochCount">
  -		
  +    <c:forEach items="${command.study.epochs}" var="treatmentEpoch"  varStatus="treatmentEpochCount">
           <tr id="genericEpoch-${treatmentEpochCount.index}">
  -            <script>
  +            <script type="text/javascript">
                   RowManager.getNestedRowInserter(genericEpochRowInserterProps,${treatmentEpochCount.index}).updateIndex(${fn:length(command.study.epochs[treatmentEpochCount.index].arms)});
               </script>
  -            
               <td>
  -      <chrome:deletableDivision
  -						divTitle="genericTitle-${treatmentEpochCount.index}"
  -						id="genericEpochBox-${treatmentEpochCount.index}"
  -						title="Epoch: ${command.study.epochs[treatmentEpochCount.index].name}"
  +      			<chrome:deletableDivision divTitle="genericTitle-${treatmentEpochCount.index}" id="genericEpochBox-${treatmentEpochCount.index}"
  +						title="Epoch: ${command.study.epochs[treatmentEpochCount.index].name}" minimize="true" divIdToBeMinimized="epoch-${treatmentEpochCount.index}"
   						onclick="RowManager.deleteRow(genericEpochRowInserterProps,${treatmentEpochCount.index},'${treatmentEpoch.id==null?'HC#':'ID#'}${treatmentEpoch.id==null?treatmentEpoch.hashCode:treatmentEpoch.id}')">
   <!-- GENERIC START-->
  -
  +<div id="epoch-${treatmentEpochCount.index}" style="display: none">
   <table width="100%" border="0">
   <tr>
     <td valign="top" width="50%">
  -
         <table width="100%" border="0" cellspacing="4" cellpadding="2">
         <tr>
             <td align="right"><tags:requiredIndicator /><b><fmt:message key="c3pr.common.name"/></b></td>
             <td align="left" valign="top">
  -              <form:input
  -											path="study.epochs[${treatmentEpochCount.index}].name"
  -											size="43" cssClass="validate-notEmpty"
  +              <form:input path="study.epochs[${treatmentEpochCount.index}].name" size="43" cssClass="validate-notEmpty"
   											onkeyup="updateName('genericTitle-${treatmentEpochCount.index}', 'Epoch: ' + this.value);" />
  -			  <tags:hoverHint id="study.treatmentEpoch.name-${treatmentEpochCount.index}"
  -											keyProp="study.treatmentEpoch.name" />
  +			  <tags:hoverHint id="study.treatmentEpoch.name-${treatmentEpochCount.index}" keyProp="study.treatmentEpoch.name" />
             </td>
         </tr>
  -
  -      <tr>
  -          <td align="right"> <tags:requiredIndicator /><b><fmt:message key="study.epoch.order"/></b> </td>
  +      <tr>
  +          <td align="right"> 
  +          	<tags:requiredIndicator /><b><fmt:message key="study.epoch.order"/></b>
  +          </td>
             <td>
  -              <form:input
  -											path="study.epochs[${treatmentEpochCount.index}].epochOrder"
  -											size="5" maxlength="1" cssClass="validate-notEmpty&&numeric" />
  -              <tags:hoverHint
  -											id="study.treatmentEpoch.epochorder-${treatmentEpochCount.index}"
  -											keyProp="study.treatmentEpoch.epochOrder" />
  +              <form:input path="study.epochs[${treatmentEpochCount.index}].epochOrder" size="5" maxlength="1" cssClass="validate-notEmpty&&numeric" />
  +              <tags:hoverHint id="study.treatmentEpoch.epochorder-${treatmentEpochCount.index}" keyProp="study.treatmentEpoch.epochOrder" />
             </td>
         </tr>
  -      
  -      <tr>
  -              <td align="right"><tags:requiredIndicator /><b><fmt:message key="study.epoch.treating"/></b> </td>
  -              <td>
  -                  <form:select
  -											path="study.epochs[${treatmentEpochCount.index}].treatmentIndicator"
  -											disabled="${treatmentEpoch.reservationIndicator}"
  +      <tr>
  +		<td align="right">
  +		  	<tags:requiredIndicator /><b><fmt:message key="study.epoch.treating"/></b> 
  +		</td>
  +        <td>
  +			<form:select path="study.epochs[${treatmentEpochCount.index}].treatmentIndicator" disabled="${treatmentEpoch.reservationIndicator}"
   											cssClass="validate-notEmpty">
                       <option value="">Please Select</option>
  -                    <form:options items="${yesNo}" itemLabel="desc"
  -												itemValue="code" />
  -                  </form:select>
  -                  <tags:hoverHint
  -											id="study.treatmentEpoch.treatmentIndicator-${treatmentEpochCount.index}"
  -											keyProp="study.epoch.treatmentIndicator" />
  -              </td>
  -      </tr>
  -
  +                    <form:options items="${yesNo}" itemLabel="desc" itemValue="code" />
  +			</form:select>
  +            <tags:hoverHint id="study.treatmentEpoch.treatmentIndicator-${treatmentEpochCount.index}" keyProp="study.epoch.treatmentIndicator" />
  +		</td>
  +      </tr>
         <tr>
             <td align="right"><tags:requiredIndicator /><b><fmt:message key="c3pr.common.enrolling"/></b> </td>
             <td align="left">
  -              <form:select
  -											id="study.epochs[${treatmentEpochCount.index}].enrollmentIndicator"
  -											disabled="${treatmentEpoch.reservationIndicator}"
  -											path="study.epochs[${treatmentEpochCount.index}].enrollmentIndicator"
  -											onchange="manageEnrollingIndicatorSelectBox(this,${treatmentEpochCount.index});"
  -											cssClass="validate-notEmpty">
  -	                                    <option value="">Please Select</option>
  -	                                    <form:options items="${yesNo}"
  -												itemLabel="desc" itemValue="code" />
  -	                                	</form:select>
  -		                               		 <tags:hoverHint
  -											id="study.nonTreatmentEpoch.enrollmentIndicator-${treatmentEpochCount.index}"
  -											keyProp="study.nonTreatmentEpoch.enrollmentIndicator" />
  +            <form:select id="study.epochs[${treatmentEpochCount.index}].enrollmentIndicator" disabled="${treatmentEpoch.reservationIndicator}"
  +						path="study.epochs[${treatmentEpochCount.index}].enrollmentIndicator" onchange="manageEnrollingIndicatorSelectBox(this,${treatmentEpochCount.index});"
  +						cssClass="validate-notEmpty">
  +	                    <option value="">Please Select</option>
  +	                    <form:options items="${yesNo}" itemLabel="desc" itemValue="code" />
  +			</form:select>
  +		    <tags:hoverHint id="study.nonTreatmentEpoch.enrollmentIndicator-${treatmentEpochCount.index}" keyProp="study.nonTreatmentEpoch.enrollmentIndicator" />
             </td>
         </tr>
  -      
         <c:if test="${command.study.randomizedIndicator== true }">
         <tr>
                 <td align="right"><tags:requiredIndicator /><b><fmt:message key="study.randomized"/></b> </td>
  
positive.code: 
  				<tr>
  					<td colspan="3" align="left">
  					<hr noshade size="1" width="100%"
  						style="border-top: 1px black dotted;" align="left">
  					<tags:button id="addArm-PAGE.ROW.INDEX" type="button" color="blue" icon="add" value="Add Arm"
  					onclick="$('h-PAGE.ROW.INDEX').show(); javascript:RowManager.addRow(RowManager.getNestedRowInserter(genericEpochRowInserterProps,PAGE.ROW.INDEX));" size="small"/>
  					<br />
  
  
  
  					<table id="arm" class="tablecontent">
  						<tr id="h-PAGE.ROW.INDEX" style="display: none;">
  							<th><span class=""><tags:requiredIndicator /><fmt:message key="study.epoch.arm"/></span><tags:hoverHint
  								id="study.arm.name-PAGE.ROW.INDEX" keyProp="study.arm.name" /></th>
  							<th><fmt:message key="c3pr.common.description"/><tags:hoverHint
  
negative.code:               </td>
        </tr>
    	</c:if>
        </table>
    </td>
  </tr>
  <tr bgcolor="eeffee">
    <td colspan="3" align="left">
        <!--ARMS TABLE-->
        <table id="arm" class="tablecontent" border="0">
        <tags:errors path="study.epochs[${treatmentEpochCount.index}].arms" />
        <tr id="h-${treatmentEpochCount.index}" >
            <th>
            	<tags:requiredIndicator /><fmt:message key="study.epoch.arm"/>
            	<tags:hoverHint id="study.arm.name-${treatmentEpochCount.index}" keyProp="study.arm.name" />
            </th>
            <th>
            	<fmt:message key="c3pr.common.description"/>
            	<tags:hoverHint id="study.arm.description-${treatmentEpochCount.index}" keyProp="study.arm.description" />
            </th>
            <th>
            	<fmt:message key="study.accrualCeiling"/>
            	<tags:hoverHint id="study.arm.targetAccrualNumber-${treatmentEpochCount.index}" keyProp="study.arm.targetAccrualNumber" />
            </th>
            <th></th>
        </tr>
        <c:choose>
        	<c:when test="${fn:length(treatmentEpoch.arms) == 0}">
        		<tr>
        			<td align="left" id="addArmMessage-${treatmentEpochCount.index}"><fmt:message key="epoch.arm.addArm"/></td>
        		</tr>
        	</c:when>
        	<c:otherwise>
        		<c:forEach items="${treatmentEpoch.arms}" var="arm" varStatus="statusArms">
  	            <tr id="arm-${statusArms.index}">
  	                <td valign="top">
  	                	<form:input path="study.epochs[${treatmentEpochCount.index}].arms[${statusArms.index}].name" size="43" cssClass="validate-notEmpty" />
  	                </td>
  	                <td valign="top">
  	                	<form:textarea path="study.epochs[${treatmentEpochCount.index}].arms[${statusArms.index}].descriptionText" rows="2" cols="40" />
  	                </td>
  	                <td valign="top" align="center">
  	                	<form:input path="study.epochs[${treatmentEpochCount.index}].arms[${statusArms.index}].targetAccrualNumber" size="6" maxlength="6"
  													cssClass="validate-numeric&&nonzero_numeric" />
  					</td>
  	                <td valign="top" align="center">
  	                    <a href="javascript:RowManager.deleteRow(RowManager.getNestedRowInserter(genericEpochRowInserterProps,${treatmentEpochCount.index}),${statusArms.index },'${arm.id==null?'HC#':'ID#'}${arm.id==null?arm.hashCode:arm.id}');">
  	                    	<img src="<tags:imageUrl name="checkno.gif"/>" border="0">
  	                    </a>
  	                </td>
  	            </tr>
              </c:forEach>
        	</c:otherwise>
        </c:choose>    
        </table>
        <br>
        <tags:button id="addArm-${treatmentEpochCount.index}" type="button" color="blue" icon="add" value="Add Arm"
  					onclick="$('addArmMessage-${treatmentEpochCount.index}') != null ? $('addArmMessage-${treatmentEpochCount.index}').hide():''; javascript:RowManager.addRow(RowManager.getNestedRowInserter(genericEpochRowInserterProps,${treatmentEpochCount.index}));" size="small"/>
    </td>
  </tr>
  </table>
  <!-- GENERIC END-->
  </chrome:deletableDivision>
  </td>
  </tr>
  </c:forEach>
  </table>
  <!-- BIG TABLE END -->
   <hr noshade size="1" width="100%" style="border-top: 1px black dotted;" align="left">
  	<div align="left">
  	<tags:button type="button" color="blue" icon="add" value="Add Epoch"
  	onclick="$('dummy-genericEpoch').innerHTML=$('genericHtml').innerHTML;RowManager.addRow(genericEpochRowInserterProps)" />
      <br></div>
  </jsp:attribute>
  </tags:tabForm>
  