Jens,

Chuckles did not mention what version of KiX he is using.

and yeah... there are many, many ways to do this. Jochen's idea though will work on all versions of KiX and is very small and manageable without all the other fluff of a larger script.