function extractHTML(){
	var strContent = document.getElementById("content").innerHTML;
	var strTitle = document.getElementsByTagName("H1")[0].innerHTML;
	writeConsole(strTitle, strContent);
}
function writeConsole(title, content) {
 top.consoleRef=window.open('','myconsole',
  'width=640,height=480'
   +',menubar=1'
   +',toolbar=0'
   +',status=0'
   +',scrollbars=1'
   +',resizable=1')
 top.consoleRef.document.writeln(
  '<html><head><title>Print Page</title><link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"/builder-v6/frame/styles.css\" /></head>'
   +'<body bgcolor=white style=background:none;padding:10px; onLoad="self.focus()">'
   +'<div align=right><input type=button onclick=JavaScript:window.print(); value=Print this page class=mainformbutton>&nbsp;<input type=button onclick=JavaScript:window.close(); value=\"Close Window\" class=mainformbutton></div>'
   +'<h1>'+title+'</h1>'
   +content
   +'</body></html>'
 )
 top.consoleRef.document.close()
} 