If Domino sees print statements with the proper formatting of HTTP headers, it will output them and override the default <HTML><TITLE><BODY> tags that are emitted by Domino. E.g. you can use this to control all the HTML that is emitted by the agent:
Print "Content-Type:text/plain" Print "Content-Type:text/html" Print Print "<HTML>"