function pprint(elmId)
{
	if (!elmId) {
		elmId = "print_version";
	}
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
	
		// html += '\n</HE' + 'AD>\n<BODY class=\"print\"><div class=\"header\"><img src=\"/gfx/logo-print.gif\" alt=\"\" title=\"\" /> ^Website Name^</div>\n';
		// html += '\n</HE' + 'AD>\n<BODY class=\"print\"><div class=\"header\"><img src=\"/gfx/logo-print.gif\" alt=\"\" title=\"\" /></div>\n';
		html += '\n</HE' + 'AD>\n<BODY class=\"print\">\n';	
		var print_versionElem = document.getElementById(elmId);
	
		if (print_versionElem != null)
		{
				html += print_versionElem.innerHTML;
		}
		else
		{
			alert("Could not find the print_version section in the HTML");
			return;
		}
		
		//html += '\n<div class=\"footer\">^Website Name^</div></BO' + 'DY>\n</HT' + 'ML>';
	
		var printWin = window.open("","printSpecial");
		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.");
	}
}

