anchor.diff:   			}
    			if(aeSubmitted == 0)
    			{
  + 				if(!confirm( "Are you sure you want to delete this?" ))
  +                  return false;
    	 			captureAE.deleteAdverseEvent(indx,'', function(ajaxOutput){
    	 	 			$('ae-section-' + indx).remove();
    	 			}.bind(this));
  
positive.code: 	}
  	
  	function deleteOrAmendAndSubmit(){
  		//alert('GANAPATI BAPPA MORYA !!');
  		Windows.close('amend-popup-id');
  		var form = document.getElementById('command');
  		if(form._action.value == 'amendmentRequired'){
  
negative.code:  	});
  
  	function checkSubmittedAEs(event){
  		var reportIdArray = new Array();
  		var totalReportIdCount = 0;
  		var listOfAEIndexes = $$('.submittedAERow');
  