function printerFriendly() 
{
	if (document.getElementById != null)
	{
		var obj = document.getElementById('printFriendly');
    
		if (obj != null) 
		{
			var innerContent = obj.innerHTML;
			var content = "";
		      
			innerContent = innerContent.replace(/(href=".*?")/gi, '');
			innerContent = innerContent.replace(/(onclick=".*?")/gi, '');
			innerContent = innerContent.replace(/(<input )/gi, '<input disabled="true" ');
			innerContent = innerContent.replace(/(<select )/gi, '<select disabled="true" ');
		      
			content = "<html>\n<head><title>The Economical Insurance Group</title>" +
						"<LINK href='/styles/base.css' type=text/css rel=stylesheet><LINK href='/styles/content.css' type=text/css rel=stylesheet><LINK href='/styles/structure.css' type=text/css rel=stylesheet></head>" +
						"\n<body style='background-color: #ffffff; background: none;'><table cellpadding='8' cellspacing='0' border='0' width='95%' bgcolor='#ffffff' align=center>" +
						"<tr><td align=center><a href=\"javascript:window.print()\" style='z-index:1000'>Print this page</a></td></tr>" +
						"<tr><td>" + innerContent + "</td></tr>" +
						"<tr><td align=center><a href=\"javascript:window.print()\" style='z-index:1000'>Print this page</a></td></tr></table>" +
						"</body></head></html>";

			var printWindow = window.open("", "Print", "width=580,height=580,scrollbars=yes,resize=yes");
		      
			printWindow.document.open();
			printWindow.document.write(content);
			printWindow.location.reload();
		}
	}
	else 
	{
		alert("You're browser is not capable of performing this operation!");
	}
}

