<?php


include_once("connect.php");
include_once("session.php");


?>
<html>
    <head>
        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
		<style>
			.center {
				text-align: center;
			}
			.invoicesTable td{
				text-align: right;
				padding-right: 15px;
			}
			.creditsTable td{
				text-align: right;
				padding-right: 15px;
			}
			.infoBlock {
				margin-left: 10px;
			}
			.moneyBlock {
				margin-left: 60px;
			}
			body {
				font-family: "Trebuchet MS", Helvetica, sans-serif;
			}
			@media print {    
				.no-print, .no-print *
				{
					display: none !important;
				}
			}
		</style>
    </head>
    <body>
		<div style="width: 400px; border-right: solid;">
			<div class="center">
				<img style="width: 200px;" src="img/logo_ej_small.png" alt=""><br />
				<!--<span style="font-size: 28px; font-weight: bold;">EuroJapon Auto Supply</span>-->
				<span>PO Box 191538</span><br />
				<span>San Juan, PR 00919-1538</span><br />
				<span>(787) 760-7295</span>
				
				<h2>THIS IS A PRINTER TEST</h2>
				<br />
				<br />
				Por favor asegurese que<br />
				el Margen este en "None"
				<br />
				<br />
				<button class="no-print" onclick="reprintandclose()">Print</button>
				<br />
				<br />
				<hr>
			</div>
		</div>
    </body>
	<script type="text/javascript">
		reprintandclose();
		function reprintandclose(){
			window.print();
			setTimeout(function(){
				window.close();
			},500);
			//alert('Comando enviado');
			
		}
	</script>
    
</html>


