anchor.diff:  			consent.appendChild(spanTag);
   			document.getElementById(keyValue).onchange=function(){getConsent(name,collectionProtocolValue,collectionProtocolTitleValue,(cprSize+1),anchorTagKey,consentCheckStatus)};
   		}
  +		function setSubmittedForParticipanteMPIGenerate(submittedFor,forwardTo){
  +			var noOfreg = '<%=noOrRowsCollectionProtocolRegistration%>';
  +            var vbirthDate = document.getElementById('birthDate');
  +			var vdeathDate = document.getElementById('deathDate');
  +            validateDate(vbirthDate);
  +			validateDate(vdeathDate);
  +			validateRegDate(noOfreg);
  +			document.forms[0].submittedFor.value = submittedFor;
  +			document.forms[0].forwardTo.value    = forwardTo;
  +			document.forms[0].action="<%=edu.wustl.common.participant.utility.Constants.PARTICIPANT_EMPI_GENERATION_ACTION%>";
  +			<%if (pageOf.equals(Constants.PAGE_OF_PARTICIPANT_CP_QUERY))
  +					{%>
  +				document.forms[0].action="<%=edu.wustl.common.participant.utility.Constants.CP_QUERY_PARTICIPANT_EMPI_GENERATION_ACTION%>";
  +			<%}%>
  +			document.forms[0].isGenerateEMPIID.value="yes";
  +			document.forms[0].submit();
  +		}
  +
  +		
       	function setSubmittedForParticipant(submittedFor,forwardTo)
   		{
   			document.forms[0].submittedFor.value = submittedFor;
  
positive.code: 		</table>
  		</td>
  	</tr>
  </table>
negative.code: <table width="100%" border="0" cellpadding="0" cellspacing="0"
  	class="maintable" height="100%"><!-- Mandar 6Nov08 -->
  	<tr>
  		<td><input type="hidden" name="participantId" value="<%=participantId%>" /> 
  			<input type="hidden" name="cpId" id="cpId" />
  			<input type="hidden" name="radioValue" />
  			
  			<!--  Added by amol for eMPI integration  -->
            	<input type="hidden" name="clickedRowSelected" value=""/>
  			<html:hidden property="empiId"/>
    			<input type="hidden" name="generateeMPIIdforPartiId" value=""/>
  			<input type="hidden" name="clinPortalPartiId" value=""/>
  			<html:hidden property="empiIdStatus"/>
    			<input type="hidden" name="isGenerateEMPIID" value=""/>
  			<input type="hidden" name="isGenerateHL7" value=""/>
  			<input type="hidden" name="isCaTissueLookUpNeeded" value="false"/>
  			
              <html:hidden property="<%=Constants.OPERATION%>" value="<%=operation%>" /> 
  			<html:hidden property="submittedFor" value="<%=submittedFor%>" /> 
  			<html:hidden property="forwardTo" value="<%=forwardTo%>" />
  		</td>
  		<td><html:hidden property="valueCounter" /></td>
  		<td><html:hidden
  			property="collectionProtocolRegistrationValueCounter" /></td>
  