function bg_SelectionChangeCallback(hObject,eventdata,aha,ahb,ha,hb,lha,lhb)
buttons = get(hObject,'Children');

switch get(eventdata.NewValue,'Tag') % Get Tag of selected object.
    case get(buttons(2),'Tag')
        set(ahb,'Visible','off');
        set(hb,'Visible','off');
        set(lhb,'Visible','off');
        set(aha,'Visible','on');
        set(ha,'Visible','on');
        set(lha,'Visible','on');
    case get(buttons(1),'Tag')
        % Code for when radiobutton2 is selected.
        set(aha,'Visible','off');
        set(ha,'Visible','off');
        set(lha,'Visible','off');
        set(ahb,'Visible','on');
        set(hb,'Visible','on');
        set(lhb,'Visible','on');
    otherwise
        % Code for when there is no match.
        disp('otherwise');
end