onclick="window.print();"
You can use CSS @media property to define styles for media type. For example if you don't want to show the left menu and footer in the print, add this to the main css file:@media print {
div.leftmenu, div.footer {display: none;}
}