// This function opens the same document in a new window
// document.location	= url of the document
// printable			= name of the new window
// height				= height in pixels of the new window
// width				= width in pixels of the new window
// toolbar				= 0 for no toolbar, 1 for a toolbar
// location				= 0 for no location field, 1 for a location field
// directories			= 0 for no directories bar, 1 for directories bar
// status				= 0 for no status bar, 1 for a status bar
// scrollBars			= 0 for no scroll bar, 1 for a scrollbar
// resizable			= 0 for no permission to resize the new window, 1 for permission to resize it
function printer_friendly() {
	window.open(document.location ,"printable","height=500,width=550,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0");
}

// This condition checks the window's name and writes the needed css rules
if (window.name=="printable") document.write("<style>.hide{display:none}.show_block{display:block}.show_inline{display:inline}</style>");