
var gAutoPrint = false; // 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>\n' + '<img src="logo IVC.jpg"><font face="Verdana" size="4" color="#000000"><b> : Le Consortium bas-fonds</b></font><hr>'; 
		
		var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>' +  "<center><font face='Verdana' size='1' color='#000000'><br><br><b>Centre du riz pour l’Afrique (ADRAO)</b><hr>01 B.P. 2031, Cotonou, Bénin  <br> Téléphone (229) 35 01 88 Télécopieur (229) 35 05 56 <br>(c) WARDA -- www.warda.org/CBF-IVC</font></center>" ;
		

		var printWin = window.open("","printSpecial");
		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.");
	}
}

