<!-- This script may be freely distributed. -->
<!-- as long as these headers are left in place. -->

<!-- Momp's Web Design -->
<!-- http://www.mompswebdesign.com -->

var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printFriendly()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD><link href=Style-print.css rel=stylesheet media=all type=text/css></style>\n';

		
		html += '\n</HE' + 'AD>\n<BODY><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td width=456 valign="top"><a href=index.php><img src=images/logo.jpg width=456 height=119 border=0></a></td><td valign=top><div align=right><p><font face=Arial, Verdana, Helvetica, sans-serif size=2><strong>Nihill & Riedley, P.C.</strong><br>The PNC Bank Building<br>1600 Market Street<br>32nd Floor<br>Philadelphia, PA 19103<br>T 267-670-7300 | F 215-238-8469</font></p></div></td><td width=10></td></tr></table>\n';

		var printPageElem = document.getElementById("printFriendly2");

		if (printPageElem != null)
		{
				html += '<div class="pageTitle">';
				html += printPageElem.innerHTML;
				html += '</div>';
		}
		else
		{
			alert("Could not find the printReady2 section in the HTML");
			return;
		}		

		html += '<div id="content">';
		
		var printPageElem = document.getElementById("content");
		
		if (printPageElem != null)
		{
				html += printPageElem.innerHTML;
		}
		else
		{
			alert("Could not find the content section in the HTML");
			return;
		}		

		html += '</div>';
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printFriendly");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the printer friendly feature works\nonly in javascript enabled browsers.");
	}
}

