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