anchor.diff:  		noOrRowsCollectionProtocolRegistration =1;
   	}
   		}
  +		
  +		boolean isGenerateEMPIDisabled=false;
  +		boolean isSubmitDisabled=false;
  +		String generateeMPIButtonName="";
  +		generateeMPIButtonName=org.apache.commons.lang.StringEscapeUtils.escapeHtml((String)request.getAttribute(Constants.GENERATE_EMPI_ID_NAME));
  +		String csEMPIStatus = org.apache.commons.lang.StringEscapeUtils.escapeHtml((String)request.getAttribute("csEMPIStatus"));
  +		final String isMatchedFromEMPI=org.apache.commons.lang.StringEscapeUtils.escapeHtml((String)request.getAttribute(edu.wustl.common.participant.utility.Constants.MATCHED_PARTICIPANTS_FOUND_FROM_EMPI));
  +		String empiGenerationFieldsInsufficient=org.apache.commons.lang.StringEscapeUtils.escapeHtml((String)request.getAttribute(edu.wustl.common.participant.utility.Constants.EMPI_GENERATION_FIELDS_INSUFFICIENT));
  +		String isEnableLinkedParticipantButton=org.apache.commons.lang.StringEscapeUtils.escapeHtml((String)request.getAttribute("isEnableLinkedParticipantButton"));
  +		String catissueMatchedParticipantFound=org.apache.commons.lang.StringEscapeUtils.escapeHtml((String)request.getAttribute("CaTissueMatchedParticpant"));
  +		
  +		//amol changes
  +		String fromProcessMessage = (String) request
  +		.getAttribute(edu.wustl.common.participant.utility.Constants.IS_GENERATE_EMPI_PAGE);
  +		if(fromProcessMessage == null){
  +			request
  +		.setAttribute(edu.wustl.common.participant.utility.Constants.IS_GENERATE_EMPI_PAGE,"false");
  +		}
  +		
  +		//ends
  +		String normalSubmitForEMPIGenerate = "setSubmittedForParticipanteMPIGenerate('"
  +				+ submittedFor + "','" + Constants.PARTICIPANT_FORWARD_TO_LIST[0][1] + "')";
  +		
  +
  +		if (pageView.equals("edit"))
  +		{
  +%>
  +		<logic:equal name="participantForm" property="empiIdStatus"
  +			value="<%=edu.wustl.common.participant.utility.Constants.EMPI_ID_PENDING%>">
  +			<%
  +				isGenerateEMPIDisabled = true;
  +			isSubmitDisabled=true;
  +							generateeMPIButtonName = edu.wustl.common.participant.utility.Constants.GENERATE_EMPI_ID;
  +			%>
  +
  +		</logic:equal>
  +		<logic:equal name="participantForm" property="empiIdStatus"
  +			value="<%=edu.wustl.common.participant.utility.Constants.EMPI_ID_CREATED%>">
  +			<%
  +				generateeMPIButtonName = edu.wustl.common.participant.utility.Constants.REGENERATE_EMPI_ID;
  +			%>
  +		</logic:equal>
  +	<%} 
  +
   %>
   
   <head>
  
positive.code: 				document.forms[0].submit();
  			}
  		}
  		function editParticipant()
  		{
  			//bug 7530 .Report id becomes the participant id thats why extra field PARTICIPANTIDFORREPORT added in the report.
  
negative.code: 
  
  	</script>
  <script language="JavaScript" type="text/javascript" src="jss/empi.js"></script>
  </head>
  
  <html:form action="<%=formName%>" style="height:100%,width=100%">
  