[snip] Inside an if statement you are going to run into scope problems with your functions....hence the failure. [/snip] Thanks everyone - that was the little tidbit I was missing. markJ