var theTime = new Date();theTime = theTime.getHours();if( theTime < 6 || theTime >= 21 ) {    document.write( 'Good day,' );} else {    if( theTime >= 6 && theTime < 12 ) {        document.write( 'Good morning,' );    } else {        if( theTime >= 12 && theTime < 18 ) {            document.write( 'Good afternoon,' );        } else {            document.write( 'Good evening,' );        }    }}