function gui_box_vis(cback_fig,tags,iivis,ii_leave_label)
%
% Call gui_box_vis(cback_fig,tags,iivis)
%
%
% COPYRIGHT (c) 2008
% 
% Applied Research Laboratories, The University of Texas at Austin
% (ARL:UT)
% All rights reserved.
% 
% This material may be reproduced by or for the U.S. Government
% only. This notice must appear in all copies of this file and its
% derivatives. Further distribution outside the U.S. Government is
% prohibited without the explicit written authorization from the
% Director of the Environmental Sciences Laboratory, ARL:UT.
% 
% THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
% EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE
% IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
% PURPOSE, OR NONINFRINGEMENT.
% 
% IN NO EVENT WILL ARL:UT BE LIABLE FOR ANY DAMAGES WHATSOEVER ARISING
% OUT OF THE USE OR INABILITY TO USE THIS SOFTWARE, EVEN IF ARL:UT HAS
% BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
if nargin<4, ii_leave_label=0; end
%
if iscell(tags),
    ntag=length(tags);
elseif ischar(tags),
    tags={tags}; ntag=1;
else
    disp('tags must be cell or single string'); return;
end
%
for jtag=1:ntag,
	htag=findobj(cback_fig,'Tag',tags{jtag});
	htaglab=findobj(cback_fig,'Tag',[tags{jtag},'label']);
    if ~isempty(htag),
		if iivis==1,
			set(htag,'Visible','On'); set(htaglab,'Visible','On'); 
		else,
   			set(htag,'Visible','Off'); if ~ii_leave_label, set(htaglab,'Visible','Off'); end 
		end
    else
        disp(['Tag not found in gui_box_vis: ',tags{jtag}]);
        disp(tags), disp(tags{jtag});
    end
end
