Date example
Alternatively, don't use document.write, but do it
the proper way
.