azzer, give a fast lookie at the minimizeall() in the udf lib:
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=83096&page=26&view=collapsed&sb=3&o=all&fpart=1

it does not work in all situations but see what happens, ok?
_________________________
!

download KiXnet