function printerFriendly()
{
  if (document.getElementById != null)
  {
    var obj = document.getElementById('printerFriendly');
    if (obj != null)
    {
      var content = "<html>\n<head><title>Communitech</title>"
      content += "<LINK href='/includes/css/printstyle.css' type=text/css rel=stylesheet></head>";
      content += "\n<body><table cellpadding='8' cellspacing='0' border='0' width='95%' bgcolor='#ffffff' align=center><tr><td align='center'>" + obj.innerHTML + "</td></tr>" +
				"<tr><td align=center><a href=\"javascript:window.print()\" style='z-index:1000'>Print this page</a></td></tr></table>";
      content += "</body></head></html>";

      var printWindow = window.open("", "Print", "width=580,height=580,scrollbars=yes");
      printWindow.document.open();
      printWindow.document.write(content);
      printWindow.location.reload();
    }
  }
  else
	alert("You're browser is not capable of performing this operation!");
}
