BTW - you should properly declare all your vars using
 Code:
Dim $var     ; description of var purpose
especially as your scripts become larger or more complex. The one var per Dim isn't required, but helps you self-document your code by identifying the reason for each var early in the program.

There are also several SetOption() parameters that are recommended to be used. Review the "getting started" threads for more info.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D