Looking at this.. It resembles VB Scripting. Have you tried posting over at the ScriptLogic site?

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