document.write("12/01/2001 - 12/31/2001") if (location.href.indexOf("archive") != -1) { document.write("current") }