anchor.diff:  	  </c:forEach>
      });
   
  -
  -       function checkIfAnyReportSelected(aeReportId) {
  -           var _true = false;
  -           var rpHash = AE.applicableReportDefinitionHash.get(aeReportId).values().each(function(rdObj) {
  -               if (rdObj.isChecked()) {
  -                   _true = true;
  -               }
  -           });
  -
  -           // change the SUBMIT button and the message
  -           if (_true) {
  -               jQuery('#report-btn-' + aeReportId).removeAttr('disabled');
  -               if (jQuery('#rulesMessage-' + aeReportId)) jQuery('#rulesMessage-' + aeReportId).show();
  -               if (jQuery('#rulesMessageNone-' + aeReportId)) jQuery('#rulesMessageNone-' + aeReportId).hide();
  -
  -           } else {
  -               jQuery('#report-btn-' + aeReportId).attr('disabled', 'false');
  -               if (jQuery('#rulesMessage-' + aeReportId)) jQuery('#rulesMessage-' + aeReportId).hide();
  -               if (jQuery('#rulesMessageNone-' + aeReportId)) jQuery('#rulesMessageNone-' + aeReportId).show();
  -           }
  -       }
  -
      </script>
   
   
  
positive.code: 	var onlyWithdrawAction = true;
  	var noPrimaryAE = true;
  
  
  	//check for actual action.
  	AE.applicableReportDefinitionHash.get(aeReportId).values().each(function(rdObj){
  		if(rdObj.getActualAction()){
  			noActualAction = false;
  		}
  	});
  
      //onlyWithdraw?
  	onlyWithdrawAction = isOnlyActionWithdraw(aeReportId);
  
negative.code: 	
  }
  
  
  //=================================================================================
  // will check if the report is selected or not.
  function hasActualActionOnReports(aeReportId){
      var hasActualAction = false;
  	//check for actual action.
  	AE.applicableReportDefinitionHash.get(aeReportId).values().each(function(rdObj){
  		if(rdObj.getActualAction()){
  			hasActualAction = true;
  		}
  	});
  
      return hasActualAction;
  }
  
  
  
  //==================================================================================
  // will check if the report is selected or not, then will enable disable the report.
   
   function toggleReportingButton(aeReportId) {
       var hasActualAction = hasActualActionOnReports(aeReportId);
  
       // change the SUBMIT button and the message
       if (hasActualAction) {
           jQuery('#report-btn-' + aeReportId).removeAttr('disabled');
           if (jQuery('#rulesMessage-' + aeReportId)) jQuery('#rulesMessage-' + aeReportId).show();
           if (jQuery('#rulesMessageNone-' + aeReportId)) jQuery('#rulesMessageNone-' + aeReportId).hide();
  
       } else {
           jQuery('#report-btn-' + aeReportId).attr('disabled', 'false');
           if (jQuery('#rulesMessage-' + aeReportId)) jQuery('#rulesMessage-' + aeReportId).hide();
           if (jQuery('#rulesMessageNone-' + aeReportId)) jQuery('#rulesMessageNone-' + aeReportId).show();
       }
   }
  
  
  //=================================================================================
  // will validate the input
  function validate(aeReportId){
  	//determine if there is a create-edit action?
  	var createOrEditAction = false;
  