var dayarray = new Array("Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota");
var montharray = new Array("Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar");

function getTheDate() 
{
var mydate=new Date();
var year=mydate.getFullYear();
var day=mydate.getDay();
var month=mydate.getMonth();
var daym=mydate.getDate();
var hours=mydate.getHours();
var minutes=mydate.getMinutes();
var seconds=mydate.getSeconds();

minutes=checkTime(minutes);
daym=checkTime(daym);
seconds=checkTime(seconds);

//change font size here
var cdate= dayarray[day] + ", " + daym + ". " + montharray[month] + " " + year + ". " + hours + ":" + minutes + ":" + seconds;
if (document.all)
document.all.datum.innerHTML=cdate
else if (document.getElementById)
document.getElementById("datum").innerHTML=cdate
else
document.write(cdate)
}

if (!document.all && !document.getElementById)
getTheDate()

function goForIt(){
if (document.all || document.getElementById)
setInterval("getTheDate()",1000)
}


function checkTime(i)
{
if (i<10)
  {
  i="0" + i;
  }
return i;
};

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function setText (thefield, setValue) {
	if (thefield.value == "")
	thefield.value = setValue;
}