function bch_m_slice(Ic,u,k,maxT,spms)

% Script to execute m_slice for all contrasts in batch mode.
% Should be executed from the corresponding analysis 
% directory after 'spm fmri' has been load.
% ---------------------------------------------------------
% Kalina Christoff                             2000-04-03


%[SPM,VOL,xX,xCon,xSDM] = bch_getSPM(2,0.001,0);
%global Ic u k maxT spms;

%SPM,VOL,xX,xCon,xSDM] = bch_getSPM(Ic,u,k);

    [hReg,SPM,VOL,xX,xCon,xSDM] = bch_results_ui % load stuff
    
    m_slice(SPM,VOL,hReg); 

%    spm_print;   % print to a spm99.ps file in the cwd

    



