\n"; var printReadyElem = document.getElementById("directions"); if (printReadyElem != null) { html += "

"; html += printReadyElem.innerHTML; } else { alert("Could not find the printReady section in the HTML"); return; } html += "\n\n"; var printWin = window.open("","printSpecial", "width = 600"); printWin.document.open(); printWin.document.write(html); printWin.document.close(); if (gAutoPrint) printWin.print(); } else { alert("Sorry, the print ready feature is only available in modern browsers."); } }