Can you use the code tags when posting code? It will make it much easier to read.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's