it's udf and what you need to do is place the whole code somewhere in your script file.
normally it's right at the end.
then you use it like any kixtart's internal function.
the examples section in the green... the first line probably is the way you are wanting to do it.

benny, sorry if I depressed your helping will...
_________________________
!

download KiXnet