anchor.diff:              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 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, 
  
positive.code: <%@ include file="taglibs.jsp" %>
  <html>
  <head>
      <title><studyTags:htmlTitle study="${command.study}"/></title>
      <style>
      .dialog{
      	overflow:hidden;
      }
      </style>
      <script language="JavaScript" type="text/JavaScript">
  
  	    function redirectToTab(tabNumber){
  	    	if(tabNumber != ''){
  	    		document.getElementById('flowredirect-target').name='_target'+tabNumber;
  	    		document.getElementById('flowredirect').submit()
  	    	}
  	    }
  
          function doExportAction() {
          	C3PR.disableAjaxLoadingIndicator=true;
              $("exportForm").submit();
              C3PR.disableAjaxLoadingIndicator=false;
          }
  
  		function confirmBroadcastStudy(){
  			contentWin = new Window({ width:400, height:200 ,className :"alert_lite"}) 
  			contentWin.setContent('confirmation-msg') ;
  			contentWin.showCenter(true);
          }
          
          doSendMessageToESB = function() {
          	new Element.update('broadcastResponse','');
          	new Element.hide('broadcastAction');
          	new Element.show('broadcastWait');
          	new Element.show('broadcastResponse');
  
  	        <tags:tabMethod method="sendMessageToESB"
  	            viewName="/study/asynchronous/broadcast_res" divElement="'broadcastResponse'"
  	            formName="'broadcastForm'"/>
          }
  
  		function getBroadcastStatus() {
  			new Element.update('broadcastResponse','');
  
negative.code: 									showEffect:Element.show 
  									}); 
  			confirmWin.setContent($('amendMessage')) ;
  			confirmWin.showCenter(true);
          }
          
          function amendStudy(id, companionIndicator){
  