I'm petty sure my problem with this script is a scoping issue but I'm not sure.

If someone could have a gander at this I'd appreciate it, I'm a little brain dead at the moment, but the scipt is here:

http://forums.devshed.com/showthread...1948&forumid=5