var gAutoPrint = false; 
// Flag for whether or not to automatically call the print function
function printSpecial()

{
if (document.getElementById != null)
{
var html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<HTML>\n<HEAD>\n';

html += '\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n<link rel="stylesheet" href="/assets/templates/edsource/css/print.css" type="text/css"/>\n</HE' + 'AD>\n\n<BODY><img src="/assets/templates/edsource/i/logo.png" />\n';

if (document.getElementById("text-content"))
	var printReadyElem = document.getElementById("text-content");
else if(document.getElementById("content"))
	var printReadyElem = document.getElementById("content");

if (printReadyElem != null)
{
html += printReadyElem.innerHTML+'<script type="text/javascript" language="javascript">document.getElementById("print-tool").href="javascript:printcontent();";</script>';
}
else
{
alert("Could not find the printReady section in the HTML");
return;
}

html += '\n</BO' + 'DY>\n</HT' + 'ML>';

var printWin = window.open("","content","height=800,width=600,scrollbars=1");
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.");
}


}