anchor.diff:  
               function syncUserDetails(){
                  $('canSyncInput').value = 'true';
  -               $('researchStaff.firstName').value =  '${command.csmUser.firstName}';
  -               $('researchStaff.lastName').value = '${command.csmUser.lastName}';
  -               $('researchStaff.loginId').value =  '${command.csmUser.loginName}';
  +               $('investigator.firstName').value =  '${command.csmUser.firstName}';
  +               $('investigator.lastName').value = '${command.csmUser.lastName}';
  +               $('investigator.loginId').value =  '${command.csmUser.loginName}';
                  Windows.closeAll();
               }
   
  
positive.code: 		});
  
  		/*
  		var allowedLoginChkBox = $('allowedToLogin');
  		if(allowedLoginChkBox){
  			allowedLoginChkBox.observe('click',function(evt){
  				var element = Event.element(evt);
  
negative.code: 		if(action == 'Deactivate'){
  			var dConfirmation = confirm("Do you really want to Deactivate?");
  			if(!dConfirmation) return; //return if not agreed.
  			$('investigator.siteInvestigators['+ selected + '].endDate').value=today;
  		}
  		if(action == 'Activate'){
  			var aConfirmation = confirm("Do you really want to Activate?");
  			if(!aConfirmation) return; //return if not agreed.
  			$('investigator.siteInvestigators['+ selected + '].startDate').value=today;
  			$('investigator.siteInvestigators['+ selected + '].endDate').value="";
  		}
  	}
  
  function toggelUserName(checkBoxChecked) {
      if (checkBoxChecked) {
          $('investigator.loginId-row').show();
          $('investigator.loginId').addClassName("required");
          $('investigator.loginId').addClassName("validate-NOTEMPTY&&MAXLENGTH2000");
      } else {    	
          $('investigator.loginId-row').hide();
          if ($('investigator.loginId')!=null) {
          	$('investigator.loginId').value="";
          	$('investigator.loginId').removeClassName("required");
          	$('investigator.loginId').removeClassName("validate-NOTEMPTY&&MAXLENGTH2000");
          }
      }
  }
  