The max and min functions are limited as to the number of arguments that can be passed to them for some reason that is not obvious to me. Peter Vafeades