Hamilton, you'll want to look at the
"returning pages in chunks" thread.
Scroll down to my Aug. 28 post, and you'll see an example of doing
exactly what Carl is talking about, above. That example is doing it
on a Tcl page, but the only difference for putting it into an
ad_header like proc might be how you decide which master template(s)
to use.