﻿function printDiv(id)
{
  var content = document.getElementById(id).innerHTML;
  var pwin=window.open('','print_content','width=400, height=300,visible=false,alwaysLowered=yes');

  pwin.document.open();
  pwin.document.write('<html><body onload="window.print()">'+content+'</body></html>');
  pwin.document.close();
  
  setTimeout(function(){pwin.close();}, 10);
}