Thanks.. That fixed it..
Thanks for the added advice on script debugging..