See the FAQ, How to use UDFs, for more information on using functions in your script. [Smile]