<!--
var AutoPrint = 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="http://www.nt.gov.au:8080/lands/building/boards/tribunal/assets/css/formatting_print.css" rel=stylesheet type=text/css>\n<link href="http://www.nt.gov.au:8080/lands/building/boards/tribunal/assets/css/layout_print.css" rel=stylesheet type=text/css>\n';
		
		html += '\n</HE' + 'AD>\n<BODY>\n';
		
		var h1tag = document.getElementById("contentwide_heading");
		
		if (h1tag != null)
		{
				html += h1tag.innerHTML;
		}
		else
		{
			alert("Could not find content contained in contentwide_heading div");
			return;
		}
		
		var h2tag = document.getElementById("contentwide_text");
		
		if (h2tag != null)
		{
				html += h2tag.innerHTML;
		}
		else
		{
			alert("Could not find content contained in contentwide_text div");
			return;
		}
		
		
		
		/*var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
		*/
			

		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write("<img src=http://www.nt.gov.au:8080/lands/building/boards/tribunal/assets/images/print/print_header.gif>");
		printWin.document.write("<div id=printpage></div>");
		printWin.document.write(html);
		printWin.document.write("<div id=footer><div id=footer_image><img src=http://www.nt.gov.au:8080/lands/building/boards/tribunal/assets/images/print/nt_gov_logo_bw.jpg></div><div id=footer_text><p><a href=http://www.nt.gov.au/ntg/disclaimer.shtml>Copyright, disclaimer & privacy</a></p></div></div>");
		printWin.document.close();
		if (AutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}


//-->