hoje = new Date()
dia = hoje.getDate()
dias = hoje.getDay()
mes = hoje.getMonth()
ano = hoje.getYear()
hora = hoje.getHours()
minutos = hoje.getMinutes()
segundos = hoje.getSeconds()

if (dia < 10)
	dia = "0" + dia
if (ano < 2000)
    ano = "19" + ano
if (hora < 10)
	hora = "0" + hora
if (minutos < 10)
	minutos = "0" + minutos
if (segundos < 10)
	segundos = "0" + segundos

function CriaArray (n) 
	{
		this.length = n 
	}

NomeDia = new CriaArray(7)
NomeDia[0] = "Sun"
NomeDia[1] = "Mon"
NomeDia[2] = "Tue"
NomeDia[3] = "Wed"
NomeDia[4] = "Thu"
NomeDia[5] = "Fri"
NomeDia[6] = "Sat"

NomeMes = new CriaArray(12)
NomeMes[0] = "January"
NomeMes[1] = "February"
NomeMes[2] = "March"
NomeMes[3] = "April"
NomeMes[4] = "May"
NomeMes[5] = "June"
NomeMes[6] = "July"
NomeMes[7] = "August"
NomeMes[8] = "September"
NomeMes[9] = "October"
NomeMes[10] = "November"
NomeMes[11] = "December"

// function WriteDate() {
        document.write (NomeDia[dias] + ", " + NomeMes[mes] + " " + dia + ", " + ano + " - ");
// }

//function currentTime()
//{
	var data = new Date();
	var horas = data.getHours();
	var minutos = data.getMinutes();
	//var segundos = data.getSeconds();
	var time = horas //"" + ((horas>12)?horas-12:horas);
	time += ((minutos<10)?":0":":") + minutos;
	//time += ((segundos<10)?":0":":") + segundos;
	//document.all.time.innerHTML = time;
	//setTimeout("currentTime()",1000);
	document.write (time);
//}
