function YYYY(){ theDay = (new Date()).getFullYear(); document.write(theDay); }