anchor.diff:  	</div>
   	<div id="broadcastResponse">
   	</div>	
  -</div>
  -<c:choose>
  -	<c:when test="${param.parentStudyFlow == 'EDIT_STUDY' || param.parentStudyFlow == 'CREATE_STUDY'}">
  -		<form id="parentStudyForm" action="" method="post">
  -			<input type="hidden" name="_page" id="_page7" value="7"/>
  -			<input type="hidden" name="_target7" id="_target7" value="7"/>
  -			<input type="hidden" name="refreshCommandObject" id="refreshCommandObject" value="true"/>
  -		</form>
  -	</c:when>
  -	<c:when test="${param.parentStudyFlow == 'AMEND_STUDY'}">
  -		<form id="parentStudyForm" action="" method="post">
  -			<input type="hidden" name="_page" id="_page8" value="8"/>
  -			<input type="hidden" name="_target8" id="_target8" value="8"/>
  -			<input type="hidden" name="refreshCommandObject" id="refreshCommandObject" value="true"/>
  -		</form>
  -	</c:when>
  -</c:choose>
  -
  -</body>
  -</html>
  +</div>
  +<c:choose>
  +	<c:when test="${param.parentStudyFlow == 'EDIT_STUDY' || param.parentStudyFlow == 'CREATE_STUDY'}">
  +		<form id="parentStudyForm" action="" method="post">
  +			<input type="hidden" name="_page" id="_page7" value="7"/>
  +			<input type="hidden" name="_target7" id="_target7" value="7"/>
  +			<input type="hidden" name="refreshCommandObject" id="refreshCommandObject" value="true"/>
  +		</form>
  +	</c:when>
  +	<c:when test="${param.parentStudyFlow == 'AMEND_STUDY'}">
  +		<form id="parentStudyForm" action="" method="post">
  +			<input type="hidden" name="_page" id="_page8" value="8"/>
  +			<input type="hidden" name="_target8" id="_target8" value="8"/>
  +			<input type="hidden" name="refreshCommandObject" id="refreshCommandObject" value="true"/>
  +		</form>
  +	</c:when>
  +</c:choose>
  +
  +</body>
  +</html>
  
positive.code: 									}) 
  			closeWin.setContent($('closeStudyDiv')) ;
  			closeWin.showCenter(true);
  	 	}
  
          function setCloseStatus(status){
          	$('closeStatus').value=status;
          }
  		function closeStudy(){
  			closeWin.close();
  			changeStudyStatus('close');
  		}
  		
  		function closeConfirmWin(){
  			confirmWin.close();
  		}
  
          function changeStudyStatus(status) {
          	if (${fn:length(errors)} > 0){
                  if(status=='open' || status=='applyAmendment' ){
          			var d = $('errorsOpenDiv');
                  }
          		Dialog.alert(d.innerHTML, {className: "alphacube", width:400, okLabel: "Close" });
          	} else if(status=='close') {
          		if($('closeStatus').value.indexOf('Close')==0){
          			messageDiv='closeMessage';
          		}else{
          			messageDiv='temporarilyCloseMessage';
          		}
          		confirmChangeStudyStatus(status, messageDiv);
          	}else if(status=='applyAmendment') {
          		confirmChangeStudyStatus(status, "applyAmendmentMessage");
          	}else if(status=='open') {
          		if(${command.study.coordinatingCenterStudyStatus=='PENDING'}){
          			confirmChangeStudyStatus(status, "openWithDateMessage");
          		}else{
          			confirmChangeStudyStatus(status, "openMessage");
          		}
          	}
          }
  
          function amendStudyPopup(){
          	confirmWin = new Window({className :"mac_os_x", title: "Confirm", 
  									hideEffect:Element.hide, 
  
negative.code:    				document.location='../study/amendStudy?studyId='+id;
     			}
          }
          
  
          function confirmChangeStudyStatus(status, messageDiv){
          	$('statusChange').value = status
          	confirmWin = new Window({className :"mac_os_x", title: "Confirm", 
  