Thanks, I just *assumed* I needed the globals to reach the vars in the nested function. This makes my code a l ot cleaner :) cheers, Guyon Morée http://gumuz.looze.net/