var gAutoPrint = true; 
		
function printAll()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n\n<img src="../content/images/header_printpage.gif" alt="CurrencyShares" width="625" height="87" />';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}

		html += '\n</HE' + 'AD>\n<BODY style="background-color:#ffffff">\n';
		var borderElem = document.getElementById("commentaryBorder");
		if (borderElem != null)
		{
			borderElem.style.border = "0px";
		}

		var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}

		var myDate = new Date();
		html += '<script language="JavaScript1.2" src="' + siteroot + "/content/commentaryFormatForPrint.js?" + myDate.getMilliseconds() + '"></script>';
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';

		var printWin = window.open("","printSpecial", "height=500,width=665,scrollbars=yes,resizable=yes,status=yes,menubar=yes,toolbar=yes");
		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. You will need Internet Explorer 4+ or Netscape 6+ to use this function. Please update you browser.");
	}
}
