Well, you learn something new every day! Just got a reply on this from tech support. Apparently blank lines in your code can cause problems. Once I deleted the blank lines the pages worked properly.
Thought others might like to know.
Thanks again Ray for all your help today. It's really great you are here to help us all.