my bet (about 97% sure) is that you set it in the scripts you call.
as it's not being screwed in the mainscript I bet it's overwritten in the called script.

remember, unless you dim your variables, they are global.
_________________________
!

download KiXnet