

var gAutoPrint = true; // Flag for whether or not to automatically call the print function
function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		html += '\n</HE' + 'AD>\n<BODY><div align="right"><img src="gfx/logo_2007.gif" width="414" height="60" vspace="0"></div><br><br><div id="printcontent">\n';
		var printReadyElem = document.getElementById("scroll");
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
		html += '\n</div><br><div id="print_footer">&copy; Feld Carrosserie B.V. - carrosseriebouw, truckspuiterij, trailerservice - 2008</div><br></BO' + 'DY>\n</HT' + 'ML>';
		var printWin = window.open('','printSpecial','toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=500,left=75,top=75');
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}





function CleanPrint( scroll )
{
    var ref = document.getElementById( scroll );          
    clean_popup = window.document.open
('about:blank','feld','toolbar=yes,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=650,height=500,left=75,top=75');
      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"><link rel="stylesheet" href="css/style.css"></head>\n');
      clean_popup.document.write('<body class=tekst onLoad="window.print(); window.focus(); window.close();">\n' );
    clean_popup.document.write( ref.innerHTML );
    clean_popup.document.write('</body>\n</html>\n');
}