// JavaScript Document

var gAutoPrint = true; // Tells whether to automatically call the print function
function printSpecial()
{
	if (document.getElementById != null)
		{
		var html = '<HTML>\n<HEAD>\n';
		html += '<link rel=\"stylesheet\" type=\"text/css\" href=\"style/main.css\">';

		html += '\n</HEAD>\n<BODY style=\"font-family:tahoma;font-size:11px;line-height:15px;width:560px;\">\n';

		var printReadyElem = document.getElementById("printReady");

		if (printReadyElem != null)
			{
			html += printReadyElem.innerHTML;
			}
		else
			{
			alert("Could not find the printReady function");
			return;
			}

		html += '\n</BODY>\n</HTML>';

		var printWin = window.open("","printSpecial","width=560 height=410 left=5 top=5 scrollbars=yes resizable=yes");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
		}
	else
		{
		alert("The print ready feature is only available if you are using a newer browser./n Please update your browswer.");
		}
}