
// this javascript code opens a new window and fills it with everything inside the selected <div> tag

function printPage(ID) {
var winprint = window.open("","printer","");
var content = document.getElementById(ID).innerHTML;
winprint.document.open();
winprint.document.write('<html><head><title>See how how far you you have swam across the Channel</title><body>');
winprint.document.write(content);
winprint.document.write('</body></html>');
winprint.document.close();
winprint.focus();
}