var gAutoPrint = true;

function pfPage()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.obteletgn != null)
		{
			var headTags = document.obteletgn("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HE' + 'AD>\n<BODY>\n';
		
		var prnowElem = document.getElementById("prnow");
		
		if (prnowElem != null)
		{
				html += prnowElem.innerHTML;
		}
		else
		{
			alert("Sorry cant find the prnow section in the HTML");
			return;
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","pfPage");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, this feature is only available in modern browsers.");
	}
}

