<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/printreceiptinvoice.css" />
-<script language="javascript">
+<script type="text/javascript">
+ function printThenClose() {
window.print();
window.close();
+ }
</script>
</head>
-<body>
+<body id="printinvoice" class="pat" onload="printThenClose();">
<div id="receipt">
<!-- The table with the account items -->
</tr>
<tr>
<th colspan=3 >
- Bill To: [% firstname %] [% surname %] <br />
- Card Number: [% cardnumber %]<br />
+ Bill to: [% firstname %] [% surname %] <br />
+ Card number: [% cardnumber %]<br />
</th>
</tr>
<tr>