Hi Shawn,
Thank you for getting back, I had a read on Scopes, quite a bit to take in for a newbie, but I did try to apply some of the concepts, specifically the small section on making the variable global with the function. I tried a few things out but it either broke the function, or made no difference. I'll read a few more articles on Scoping and see if something else points me in the right direction.
Regards,
D.