I have no idea why doing all that. There is more healthy approach to printing of Web document. You can use CSS @media rules. Please see:
http://www.w3.org/TR/CSS21/page.html[
^].
This is like having "printable version", but in a civilized way. The styles detect what is the media for rendering and apply one or another set of rules.
—SA