// place div tags around the section to print: <div id="printReady">printable</div>
// Link code: <a href="javascript:void(printDiv())"><img src="/images/icon_print.gif" width=24 height=23 border=0></a>
var gAutoPrint = true; // Flag for whether or not to automatically call the print function
function printDiv(divId){
	var html = '<html>\n<head>\n';
	html += "<link href='/css/printStyle.css' type='text/css' rel='stylesheet' media='print' />";
	html += "<link href='/css/printStyle.css' type='text/css' rel='stylesheet' media='screen' />";
	html += '\n</he' + 'ad>\n<body>\n';
	var printReadyElem = document.getElementById(divId);
	if (printReadyElem != null){
		html += printReadyElem.innerHTML;
	}
	else{
		alert("Could not find the printable section '" + divId + "'.");
	}
	html += '\n</bo' + 'dy>\n</ht' + 'ml>';
	var printWin = window.open("","printDiv");
	printWin.document.open();
	printWin.document.write(html);
	printWin.document.close();
	if (gAutoPrint){
		printWin.print();
	}
}

