function iduivis(handles,onoff)
%IDUIVIS Sets the visibility ONOFF for the valid handles in the list HANDLES.

%   L. Ljung 9-27-94
%   Copyright 1986-2000 The MathWorks, Inc.
%   $Revision: 1.5 $ $Date: 2000/08/24 12:53:24 $

hand=handles(:);
z=hand(find(hand>0));
for kh=z'
   set(kh,'vis',onoff);
end