<!-- 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.css rel=stylesheet media=all type=text/css>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HE' + 'AD>\n<BODY><table width=100% border=0 cellpadding=0 cellspacing=0 class=ten><tr><td width=15%><a href=http://www.margolisedelstein.com/index.php><img name=index_r1_c4 src=http://www.margolisedelstein.com/images/logo.jpg width=210 height=92 border=0></a></td><td width=46%></td><td width=25%></td><td width=14% valign="top"><img name=index_r1_c7 src=http://www.margolisedelstein.com/images/spacer.gif width=1 height=1 border=0><span class=PageTitle>Margolis Edelstein</span><br>www.margolisedelstein.com</td></tr></table><br>\n';
		
		var printPageElem = document.getElementById("printFriendly");
		
		if (printPageElem != null)
		{
				html += printPageElem.innerHTML;
		}
		else
		{
			alert("Could not find the printFriendly section in the HTML");
			return;
		}
			
		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.");
	}
}
