// JavaScript Document
function printContent()
{
	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 style="background:none;">\n'; 
		html += '<div id="printmain" style="width:800px; height:auto;background-color:#FFFFFF;"><div id="content" style="position:relative:top:0px;left:0px;width:780px;height:auto;padding-top:10px;padding-left:20px;">'
		html += '<h3>Youth Suicide Prevention Program</h3>';
		var printPageElem = document.getElementById("main"); 

		if (printPageElem!= null) 
		{ 
			html += printPageElem.innerHTML; 
		} 
		else 
		{ 
			return; 
		} 
		html += '<br>';
		html += '</div><br /><img src="../images/global/clear.gif" width="799" height="1"></div>'
		html += '\n</BO' + 'DY>\n</HT' + 'ML>'; 

	var printWin = window.open("","printFriendly"); 
		printWin.document.open(); 
		printWin.document.write(html); 
		printWin.print();
		printWin.document.close(); 
	
	} 
	else 
	{ 
		alert("Sorry, the printer friendly feature works\nonly in javascript enabled browsers."); 
	} 
} 

