'];
end

if phase == 3
    enables = get_param(gcb, 'MaskVisibilities');
    if strcmp('Specify', get_param(gcb, 'AddressSource'))
        enables{strcmp('MAC',fieldnames(get_param(gcb,'DialogParameters')))} = 'on';
    else
        enables{strcmp('MAC',fieldnames(get_param(gcb,'DialogParameters')))} = 'off';
    end
    set_param(gcb, 'MaskVisibilities', enables);
end
