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