// function for the printable version
function printable(are_tabel)
	{
	content = document.getElementById("printable_full").innerHTML;
	newWindow = window.open( '', 'printable','width=630px,height=400px,scrollbars=yes');
	newWindow.document.write( '<html><head><title>'+ document.title +'</title>' );
	// includes the style of the document
	newWindow.document.write( '<link rel="stylesheet" type="text/css" href="styles.css">' );
	newWindow.document.write( '</head><body class="tx11_gri" style="margin-top: 10px;background-image: none;"><table cellspacing="0" cellpadding="5" width="98%"><tr><td align="center">');
	newWindow.document.write( '<div align="right" class="tx11_gri"><a href="#" onclick="window.print()" class="link_rosu"><img src="images/b_print.gif" width="16" height="14" align="absmiddle" border="0">&nbsp;Printeaza</a>&nbsp;&nbsp;&nbsp;</div><hr size="1">' );
	// it sets the content of the printable version
	newWindow.document.write( content );
	// sets the border to 1 only if it has a table inside
	if (are_tabel == 1)
	{
	newWindow.document.write( '<script language="JavaScript">document.getElementById("tabel").border="1";document.getElementById("tabel").borderColor="#000000";</script>' );
	}
	// the print link
	newWindow.document.write( '<br/><hr size="1"><center><a href="#" onclick="window.print()"  class="link_rosu"><img src="images/b_print.gif" width="16" height="14" align="absmiddle" border="0">&nbsp;Printeaza</a> | ' );
	// the fermer link
	newWindow.document.write( '<a href="#" onclick="window.close()" class="link_rosu">Inchide fereastra</a></center><hr size="1">' );
	newWindow.document.write( '</td></tr></table></body></html>' );
	newWindow.document.close();		
	}

