I don't see any header info on the UDF so I can not readily tell what dependancies exist.

If you would tell what version of KiXtart you are using and on what line (include reported text) the script errors we might be able to better answer your question.
_________________________
Home page: http://www.kixhelp.com/hb/