// JavaScript Document


<!-- Begin
var day="";
var month="";
var myweekday="";
var year="";
newdate = new Date();
mydate = new Date();
dston =  new Date('April 4, 1999 2:59:59');
dstoff = new Date('october 31, 1999 2:59:59');
var myzone = newdate.getTimezoneOffset();
newtime=newdate.getTime();

var zone = 6;  // references your time zone

if (newdate > dston && newdate < dstoff ) {
zonea = zone - 1 ;
dst = "  Pacific Daylight Savings Time";
}
else {
zonea = zone ; dst = "  Pacific Standard Time";
}
var newzone = (zonea*60*60*1000);
newtimea = newtime+(myzone*60*1000)-newzone;
mydate.setTime(newtimea);
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
myyear= mydate.getYear();
year = myyear;

if (year < 2000)   
year = year + 1900;
arday = new Array("Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă")

/*armonth = new Array("Ianuarie ","Februarie ","Martie ","Aprilie ","Mai ","Iunie ","Iulie ","August ","Septembrie ", "Octombrie ","Noimebrie ","Decembrie ")*/

armonth = new Array("Ian ","Feb ","Mar ","Apr ","Mai ","Iun ","Iul ","Aug ","Sept ", "Oct ","Nov ","Dec ")
ardate = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
// rename locale as needed.

var time = (arday[myday] + ", " + ardate[myweekday] + " " + armonth[mymonth] + " " + year);
document.write('<b style="font-size:12px; color:#D50000;" id=time>'+'Veghem la siguranţa ta!'+'</b>');
//-->



function show2(){
if (!document.all&&!document.getElementById)
return
thelement=document.getElementById? document.getElementById("time"): document.all.time
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
if (hours<=9)
hours="0"+hours
var ctime=hours+":"+minutes
thelement.innerHTML="<b>"+time+", "+ctime+"</b>"
setTimeout("show2()",16180)
}
//window.onload=show2
setTimeout(show2,1618)
