Just copy the UDF code into your script at the bottom. Or make a separate file for this UDF and call it like done in the example above.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.