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