dcell,

Glad you found the solution to your problem, however...

This solution can be solved by you in the future by using the following FAQ under - How do we check and format code for scripts?.

Thanks!

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