 <!--
 var _print_console;
 
 function print_code(ID)
 {
 	init_print_console();
 	fill_print_console(ID);
 	deinit_print_console();
 }
 
 function init_print_console()
 {
 	_print_console = window.open("","print_code","width=750,height=600,resizable,scrollbars=yes"); 	
 }
 
 function deinit_print_console()
 {
 	_print_console.document.close();
 }
   
 function fill_print_console(ID)
 {
 	var code, styles, pastebin_header;
	 	
	styles          = get_styles();
 	code            = document.getElementById(ID).innerHTML;
    pastebin_header = document.getElementById('pastebin_header').innerHTML;

 	_print_console.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
 	_print_console.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">');
 		_print_console.document.writeln('<head>');
			_print_console.document.writeln('<title>'+pastebin_header+' - Printing code</title>');
		    _print_console.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />');
			_print_console.document.writeln('<meta http-equiv="Content-Style-Type" content="text/css" />');
		    _print_console.document.writeln('<meta name="author" content="char0n, lordProtector - member of binary groop" />');
			_print_console.document.writeln('<meta name="keywords" content="print, mortality, pastebin, code, bin" />');
			_print_console.document.writeln('<meta name="description" content="Code print" />');
		    _print_console.document.writeln('<meta name="generator" content="my brain, hands, ZEND IDE" />');
		    _print_console.document.writeln('<style type="text/css">');
				// Style import
				_print_console.document.writeln(styles);
				// End of style import
				_print_console.document.writeln('body');
				_print_console.document.writeln('{');
					_print_console.document.writeln('font-family: Arial, Helvetica, serif;');
					_print_console.document.writeln('font-size: 12px;');
					_print_console.document.writeln('background: white');
				_print_console.document.writeln('}');
				_print_console.document.writeln('.red  { color: red; background: rgb(255, 221, 221);}');
				_print_console.document.writeln('.blue { color: blue; background: rgb(211, 231, 255); }');
                _print_console.document.writeln('#fcode { background: rgb(220, 220, 220); }');
				_print_console.document.writeln('#diff { color: black; padding: 20px;}');
			_print_console.document.writeln('</style>');
	  	_print_console.document.writeln('</head>');
  	  	_print_console.document.writeln('<body>'); 
  	  		_print_console.document.writeln('<h2 style="text-align: center">'+pastebin_header+'</h2>');
  	  		// Filling new window with formated code	  	  		
 			_print_console.document.writeln('<div id="fcode">'+code+'</div>');
 			// End of filling window with formated code
 			_print_console.document.writeln('<div style="text-align: center">');
  	 			_print_console.document.writeln('<a href="" onclick="window.print();return false;"><img src="/images/print.gif" alt="Print" width="13" height="12" border="0" /></a>');
	 			_print_console.document.writeln('&nbsp;<a href="" onclick="window.print();return false;">'+_general_print_serv_print+'</a>') 	
			_print_console.document.writeln('</div>'); 			
 		_print_console.document.writeln('</body>');
 	_print_console.document.writeln('</html>');
 }
 //-->