//
// Clean4Print Version 0.02
//
// module for copying parts of a website into a new browser window!
//
// Copyright (c) 2003, Andreas John aka Jack (tR). All rights reserved.
//
// 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 Clean4Print( tag_id )
{
	var ref = document.getElementById( tag_id );
	clean_popup = window.open( "about:blank","","");
  	clean_popup.document.write('<html>\n<head>\n<title>'+document.title+'</title>\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
  	clean_popup.document.write('<link rel="stylesheet" href="css/default.css">\n</head>\n');
  	clean_popup.document.write('<body><div class="clean4print"><h2>'+document.title+'<\/h2>\n' );
  	clean_popup.document.write('<div align=right><img src="images/arma-kl.gif"><\/div>\n' );

	// output the sections marked with tag_id
	if (ref!=null)
	{
		clean_popup.document.write( ref.innerHTML + '\n' );
	}

	clean_popup.document.write('<\/div><\/body>\n<\/html>\n');
	clean_popup.document.close();
}

