//
// Clean4Print Version 0.03
//
// 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 )
{
	clean_popup = window.document.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<link rel="stylesheet" href="http://www.frep.info/css/clean4print.css">\n</head>\n');
  	clean_popup.document.write('<body><div class="the_content">\n' );
  	clean_popup.document.write('<div style="border : 1px solid black; margin-bottom: 20px;"><img src="http://www.frep.info/imgs/logo/logo_und_schriftzug.gif"></div>\n');

	var ref = document.getElementById( 'footprints' );
	if (ref!=null) clean_popup.document.write( '<div id="footprints">Menüpunkt: '+ref.innerHTML + '</div>\n' ); 

	var ref = document.getElementById( tag_id );
	if (ref!=null) clean_popup.document.write( '<div id="'+tag_id+'">'+ref.innerHTML + '</div>\n' ); 

/*
	// output all sections marked with tag_id
	while (ref!=null)
	{
		clean_popup.document.write( ref.innerHTML + '\n' );
		
		if (isdefined(ref.nextSibling)) ref = ref.nextSibling;
	}
*/
	var ref = document.getElementById( 'copyright' );
	if (ref!=null) clean_popup.document.write( '<div id="copyright">'+ref.innerHTML + '</div>\n' ); 

/*
	clean_popup.document.write('<div style="border-top : 1px solid black; margin-top: 80px;" class="copyleft">Copyright &copy; Deutsche Prüfstelle für Rechnungslegung DPR - Alle Rechte vorbehalten.</div></div></body>\n</html>\n');*/
}
