window.print filename
document.title = 'My new title';
window.print();
Tense Tarantula
document.title = 'My new title';
window.print();