<script>
function print()
{
javascript:(function(){win=open(%22about:blank%22,%20%22View%20DOM%20Source%22,%20%22menubar=no,
resizable=yes,status=no,toolbar=no%22);
win.document.write(%22<pre>%22%20+%20document.documentElement.outerHTML.split(%22&%22).
join(%22&%22).split(%20%22<%22).join(%22<%22).split(%22>%22).join(%22>%22)%20+%20%22</pre>%22);win.focus();})()
}
</script>
<div><a id="print" onclick="return print();">Print</a></div>
function print()
{
javascript:(function(){win=open(%22about:blank%22,%20%22View%20DOM%20Source%22,%20%22menubar=no,
resizable=yes,status=no,toolbar=no%22);
win.document.write(%22<pre>%22%20+%20document.documentElement.outerHTML.split(%22&%22).
join(%22&%22).split(%20%22<%22).join(%22<%22).split(%22>%22).join(%22>%22)%20+%20%22</pre>%22);win.focus();})()
}
</script>
<div><a id="print" onclick="return print();">Print</a></div>