//
// 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.document.open( "","Druck","width=820,height=600,scrollbars=1");
  	clean_popup.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\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="css/clean4print.css" />\n</head>\n');
  	clean_popup.document.write('<body><div class="clean4print">\n<div class="schalt_print" align="right"><a class="schalt1" href="javascript:location.reload();window.print()">Drucken</a>&nbsp;&nbsp;oder Tastenkombination: STRG + P</div><br />\n' );

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

	clean_popup.document.write('<br /><div class="schalt_print" align="right"><a class="schalt1" href="javascript:location.reload();window.print()">Drucken</a>&nbsp;&nbsp;oder Tastenkombination: STRG + P</div></div></body>\n</html>\n');
}

