anchor.diff:  	</div>
   	<script>
   		function doManage(formName, idParamStr){
  -			if(formName=='manage'){
  +			if(formName=='create'){
  +				var studyId = ${command.studySubject.studySubjectStudyVersion.studySiteStudyVersion.studyVersion.study.id};
  +				var studySiteName = ''+ '${command.studySubject.studySite.healthcareSite.name}' + '';
  +				var studySiteStudyVersionId = ${command.studySubject.studySubjectStudyVersion.studySiteStudyVersion.id};
  +				createReg(studyId,studySiteName,studySiteStudyVersionId);
  +			}else if(formName=='manage'){
   				document.location="../registration/manageRegistration?"+idParamStr;
   			}else if(formName=='edit'){
   				document.location="../registration/editRegistration?"+idParamStr;
  
positive.code: 	<input type="hidden" name="_page1" id="_page" value="1"/>
  	<input type="hidden" name="_target1" id="_target" value="1"/>
  </form>
  <form action="../registration/createRegistration" method="post" id="create">
  	<input type="hidden" name="_page" id="_page0" value="0"/>
  	<input type="hidden" name="_target1" id="_target1" value="1"/>
  	<input type="hidden" name="studySite" id="create_studySite" value=""/>
  	<input type="hidden" name="participant" id="create_participant" value=""/>
  	<input type="hidden" name=parentRegistrationId id="create_parent_id" value=""/>
  	<!-- <input type="hidden" name="scheduledEpoch" id="create_scheduledEpoch" value=""/>-->
  </form>
  <c:choose>
  
negative.code: 	$(registrationElement).value=regId;
  	$(formName).submit();
  }
  function createReg(studyId,studySiteName, studySiteVersionId){
  	$('from_reg_confirmation').value=true;
  	$('create_studyId').value=studyId;
  	$('create_studySiteName').value= studySiteName;
  	$('create_studySiteStudyVersionId').value=studySiteVersionId;
  	$('create').submit();
  }
  
  