> Two loops, nested. The first counts from 1 to $maxlevels -- > the level which > you are excluding at this time. > > The inner loop loops through the same list, building the > *included* list for > each level. That's it! thanks very much for your help and time....