Drupal.behaviors.print = function(context) {$(window).load(function() {window.print();window.close();})};>

Everything is going to be alright