
	function print_friendly( section, pbflag, location_flag, image )
	{
		// get the section to be printed

		anode  = document.getElementById("doprint");

		// remove text2 from the printed text
		mainText = anode.innerHTML;

		// construct the text to be put into the printed page		

		if (location_flag == 0)
		{
			headerText = '<link rel="stylesheet" href="../../styles.css">' 
					+'<link rel="stylesheet" href="../../print.css">' 
					+ '<img src="../../images/logo.gif"> <br><br>';
		}
		else if (location_flag == 1)
		{
			headerText = '<link rel="stylesheet" href="../styles.css">' 
					+'<link rel="stylesheet" href="../print.css">' 
					+ '<img src="../images/logo.gif"> <br><br>';
		}

		headerText = headerText + "<table><tr><td width='5'></td><td>";

		if (pbflag=="Per")
		{
			headerText = headerText + "<p class=headerbrown>" + section + "</p>";
		}
		else if (pbflag=="Bus")
		{
			headerText = headerText + "<p class=headerblue>" + section + "</p>";
		}
		else if (pbflag=="Attorney")
		{
			headerText = headerText + "<p class=title_gray>" + section + "</p>";
		}

		if (image!="")
		{
			headerText = headerText + '<img src="' + image + '" align="right" hspace=20 vspace=10>';
		}

		trailerText = "</td></tr></table>";

		printText = headerText + mainText + trailerText;

		// open a new window and put the printed text in it

		newWindow = window.open("", "myNewWindow");
		newWindow.document.open();
		newWindow.document.write( printText);
	}

