<script type="text/javascript"> now = new Date()
var date = now.getDate();
var month = now.getMonth()+1
var year = now.getFullYear();
Now = new Date()
var day = Now.getDay()
if (day == 1)
{var day ="Понедельник"}
else
if (day == 2)
{var day = "Вторник"}
else
if (day == 3)
{var day = "Среда"}
else
if (day == 4)
{var day = "Четверг"}
else
if (day == 5)
{var day = "Пятница"}
else
if (day == 6)
{var day = "Суббота"}
else
if (day == 7)
{var day = "Воскресенье"}
if (month==1)
{var month="0" + month}
if (month==2)
{var month="0" + month}
if (month==3)
{var month="0" + month}
if (month==4)
{var month="0" + month}
if (month==5)
{var month="0" + month}
if (month==6)
{var month="0" + month}
if (month==7)
{var month="0" + month}
if (month==8)
{var month="0" + month}
if (month==9)
{var month="0" + month}
var fulldate = day+", "+date+":"+month+":"+year + ", <span id='hours'></span>"
</script>
<script>
document.write(fulldate);
obj_hours=document.getElementById("hours");
function wr_hours()
{
time=new Date();
time_sec=time.getSeconds();
time_min=time.getMinutes();
time_hours=time.getHours();
time_wr=((time_hours<10)?"0":"")+time_hours;
time_wr+=":";
time_wr+=((time_min<10)?"0":"")+time_min;
time_wr+=":";
time_wr+=((time_sec<10)?"0":"")+time_sec;
obj_hours.innerHTML=time_wr;
}
wr_hours();
setInterval("wr_hours();",1000);
</script>