Yay, got it working!! The final bug was that when opening an html file for appending it had to be preceded by the content-type header so I added a line to print the header and now the client's menus and masthead image are beautifully incorporated and the results page looks just like his other pages! Thanks Ovid and mandog ande all the other very kind and helpful monks!!!
peas
jg