<!--
	// Script by
	// by Nexus Information Technologies
	// www.nexusit.com.py
	// Fecha 03/01/2006

// Variable para la Hora
var tick;
 
function MakeArray(arrayLength) {
	this.length = arrayLength;
	for (var i = 1; i <= arrayLength; i++) this[i] = i-1;
	return this
}

function writeDate(m,sep) {
	dateNow = new Date();
	theDay = new MakeArray(7);
	theDay[0] = "Domingo"; theDay[1] = "Lunes"; theDay[2] = "Martes"; theDay[3] = "Miércoles";
	theDay[4] = "Jueves"; theDay[5] = "Viernes"; theDay[6] = "Sábado";
	theMonth = new MakeArray(12);
	theMonth[0] = "Enero"; theMonth[1] = "Febrero"; theMonth[2] = "Marzo";
	theMonth[3] = "Abril"; theMonth[4] = "Mayo"; theMonth[5] = "Junio";
	theMonth[6] = "Julio"; theMonth[7] = "Agosto"; theMonth[8] = "Setiembre";
	theMonth[9] = "Octubre"; theMonth[10] = "Noviembre"; theMonth[11] = "Diciembre";
	whichDay = theDay[dateNow.getDay()];
	whichDate = dateNow.getDate();
	whichMonth = theMonth[dateNow.getMonth()];
	whichYear = dateNow.getFullYear();
	whichHour = dateNow.getHours();
	if (whichHour < 10) { whichHour = '0' + whichHour }
	whichMinute = dateNow.getMinutes();
	if (whichMinute < 10) { whichMinute = '0' + whichMinute }
	
	if (navigator.appName == ("Netscape")) {
		if (whichYear < 99) whichYear = whichYear + 0;
	}
	
	if (navigator.appName == ("Microsoft Internet Explorer")) {
		whichYear = whichYear + 0;
	}
	
	whichYear = "" + whichYear;
	if (m==0) document.writeln(whichDate + "/" + whichMonth + "/" + whichYear);
	if (m==1) document.writeln((dateNow.getMonth()+1) + sep + whichDate + sep + whichYear.substring(2,4));
	if (m==2) document.writeln(whichDate + sep + (dateNow.getMonth()+1) + sep + whichYear.substring(2,4));
	if (m==3) document.writeln((dateNow.getMonth()+1) + sep + whichDate + sep + whichYear);
	if (m==4) document.writeln(whichDate + sep + (dateNow.getMonth()+1) + sep + whichYear);
	if (m==5) document.writeln(whichDate + sep + whichMonth + sep + whichYear);
	if (m==6) document.writeln(whichDay);
	if (m==7) document.writeln(whichMonth);
	if (m==9) document.writeln(whichDate);
	if (m==8) document.writeln(dateNow.getMonth()+1);
	if (m==10) document.writeln(whichYear);
	if (m==11) document.writeln(whichDay + ', ' + whichDate + ' de ' + whichMonth + ' de ' + whichYear);
}

function stop() {
	clearTimeout(tick);
}

function usnotime() {
	var ut = new Date();
	var h,m,s;
	var time = "";
	h = ut.getHours();
	m = ut.getMinutes();
	s = ut.getSeconds();
	if (s <= 9) s = "0" + s;
	if (m <= 9) m = "0" + m;
	if (h <= 9) h = "0" + h;
	time += h + ":" + m + ":" + s;
	document.rclock.rtime.value = time;
	tick = setTimeout("usnotime()",1000);
}
// -->
