Richard, did you try moving the global declaration to the beginning of the script?

-Eric
_________________________
Eric