function DayTime() {

        var time = new Date();
        hrs = time.getHours();

//        mins = time.getMinutes();

        if (hrs>=6 && hrs<12)

                document.write ("Доброе утро");

        if (hrs>=12 && hrs<18)

                document.write ("Добрый день");

        if (hrs>=18 && hrs<24)

                document.write ("Добрый вечер");

        if (hrs>=0 && hrs<6)

                document.write ("Доброй ночи");

        }



//-->


