function w = weekday_check_common ( w )

%*****************************************************************************80
%
%% weekday_check_common() makes sure the Common weekday number is between 1 and 7.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 June 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer W, the weekday index.
%
%  Output:
%
%    integer W, the weekday index after wrapping.
%
  w = i4_wrap ( w, 1, 7 );

  return
end
