function CBankAccountFormControl( aNumberFieldId, aFieldId1, aFieldId2, aFieldId3 )
    {
    this.iNumberFieldId = aNumberFieldId;
    this.iFieldId1 = aFieldId1;
    this.iFieldId2 = aFieldId2;
    this.iFieldId3 = aFieldId3;

    this.SetHiddenAccountNumberField = function()
        {
        str = document.getElementById( this.iFieldId1 ).value + '-' +
              document.getElementById( this.iFieldId2 ).value + '-' +
              document.getElementById( this.iFieldId3 ).value;        
        
        document.getElementById( this.iNumberFieldId ).value = str;
        }

    this.SetVisibleAccountFields = function( aAccountNumber )
        {
        var numbers = aAccountNumber.split( '-' );
        document.getElementById( this.iFieldId1 ).value = numbers[0];
        document.getElementById( this.iFieldId2 ).value = numbers[1];
        document.getElementById( this.iFieldId3 ).value = numbers[2];
        }
    }