Try this: document.write('<span' + ' ' + 'id="date">'); instead if this document.write("<span" + " " + "id="date">"); The "s where getting you. Javascript does not convert them to ". Eric Eric Costello eric at schwa.com http://glish.com