<link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
<script language="javascript">
+ function printThenClose() {
window.print();
window.close();
+ }
</script>
</head>
-<body>
+<body onload="printThenClose();">
<div id="receipt">