anchor.diff:     				document.location='../study/amendStudy?studyId='+id;
      			}
           }
  -        
  -
  +        
  +
           function confirmChangeStudyStatus(status, messageDiv){
           	$('statusChange').value = status
           	confirmWin = new Window({className :"mac_os_x", title: "Confirm", 
  
positive.code:             viewName="/study/asynchronous/broadcast_res" divElement="'broadcastResponse'"
              formName="'broadcastForm'"/>
          }
  
          function statusChangeCallback(statusCode) {
              elmt = document.getElementById('amendButtonDisplayDiv');
              if (statusCode == 'Active' || statusCode == 'Amendment Pending') {
                  elmt.style.display = "";
              } else {
                  elmt.style.display = "none";
              }
          }
  
          function showCloseStudyPopup(){
  			closeWin = new Window({className :"mac_os_x", title: "Close Study", 
  									hideEffect:Element.hide, 
  
negative.code: 	</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>
  