Print multiple pages at once using javascript