function printIt()
{
//grab the div in the html w/o the header & footer text
var content=document.getElementById('voucher');
//open a blank window
w=window.open('about:blank');
//write content var html to the window
w.document.open();
w.document.write("<html>" + content.innerHTML);
//write some javascript to make the newly opened window print itself.
w.document.writeln("<script>window.print()</"+"script>");
w.document.writeln("</html>");
w.document.close();
}

