function printpage() {
    document.close();
    window.print();
}