even had to write it up as an udf, so here it is even with headers:
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=209846#Post209846
_________________________
!

download KiXnet