function mrToolHelp(topickey,CSHWindow)
% Open Help Windows for Model Reduction App.

% Copyright 2015 The MathWorks, Inc.

if nargin<2
    CSHWindow = false;
end

% Get MAPFILE name
helpdir = docroot;
if ~isempty(helpdir)
    mapfile = fullfile(helpdir,'control','control.map');
else
    mapfile = '';
end

if nargin
    % Pass help topic to help browser
    try
        if CSHWindow
            helpview(mapfile,topickey,'CSHelpWindow');
        else
            helpview(mapfile,topickey);
        end
    catch
        fprintf('Help is currently not avaliable for this topic.');
    end
end