function printDiv() { var divToPrint=document.getElementById('mesa17'); var newWin=window.open('','Print-Window'); newWin.document.open(); newWin.document.write('
'+divToPrint.innerHTML+''); newWin.document.close(); setTimeout(function(){newWin.close();},10); }