
function Clean4Print( tag_id )
{
	var ref = document.getElementById( 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="css/clean4print.css">\n</head>\n');
  	clean_popup.document.write('<body><div class="clean4print">\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('</div></body>\n</html>\n');
}
