
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<link href=assets/css/screen-print.css rel=stylesheet type=text/css>\n';
		
		html += '\n</HE' + 'AD>\n<BODY>\n';
		
		var h1tag = document.getElementById("page-content");
		
		if (h1tag != null)
		{
				html += h1tag.innerHTML;
		}
		else
		{
			alert("Could not find content contained in PageContent div");
			return;
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printSpecial");
		printWin.document.write("<img src=assets/images/print_title.gif>");
		printWin.document.write(html);
		printWin.document.write("<img src=assets/images/print_ntg_logo.gif>");
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}
