//
// CleanPrint Version 0.01
//
// Tool for copying a part of a website into a new browser window!
// This is used to print tables in an 
//
//
// Copyright (c) Andreas John aka Jack (tR). All rights reserved.
// http://www.jtr.de/scripting/javascript
//
// This program is free software; you can redistribute it and/or modify 
// it under the terms of the GNU General Public License as published by the 
// Free Software Foundation; either version 2 of the License, or (at your 
// option) any later version. A copy of this license you can find in the 
// added text file gpl.txt or on the website of the Free Software Foundation 
// under: http://www.fsf.org/copyleft/gpl.html
//


function CleanPrint( tag_id )
{
	var ref = document.getElementById( tag_id );		

	var clean_text = ref.innerHTML;

	clean_popup = window.open( "about:blank","","");

  	clean_popup.document.write('<html>\n<head>\n<title>Cleaned for Printout</title>\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n<link rel="stylesheet" href="../stylesheets/bibliography.css">\n</head>\n');
  	clean_popup.document.write('<body>\n' );
	clean_popup.document.write( clean_text );
	clean_popup.document.write('</body>\n</html>\n');
}
