<!--
// Webs Unlimited's J-BOTS FrontPage 2002 JavaScript Generator version 4.0
// Copyright Webs Unlimited 1998, 1999, 2000, 2001 All rights reserved - http://WebsUnlimited.com
// make an array of length n Needed for older javascript browsers
function makearray(n) {
	this.length = n
	for (var i = 1; i <= n; i++) {
		this[i] = null;
}
return this;
}
function IsIn(value,search) {
	if(search.indexOf(value) != -1) {
	  return 1;
 } else {
		return 0;
   }
}

function LeadZero(value) {
	if ( value < 10) 
	  document.write('0');
}
 function DateFormat(format,twoplace) {
        var M = 4;        var N = 6;
var operators = 'dDmMyY%';
var value = '';

var today = new Date;

// get the numbers 
weekday = (Math.floor(today.getTime() / 86400000) + M) % N;
month = today.getMonth();
year=today.getYear();
if(year > 1900) year -= 1900; // correct for year
date = today.getDate();
var days = new makearray(6);
days[0] = '&#x00C1;n&#x00E1;za';
days[1] = '<nobr>&#x00C1;mb&#x00E9;!a</nobr>';
days[2] = '&#x00C1;ng&#x00E1;la';
days[3] = '&#x00C1;nd&#x00FA;&#x00FA;ma';
days[4] = '&#x00C1;n&#x00E9;lna';
days[5] = '&#x00C1;nsen';
var months = new makearray(12);
months[0] = 'Senduum&#x00E1;z&#x00ED;';
months[1] = 'Seneln&#x00E1;z&#x00ED;';
months[2] = 'Ngap&#x0027;wel&#x00FA;z&#x00ED;';
months[3] = 'Tiwiz&#x00FA;z&#x00ED;';
months[4] = '<nobr>Pe!&#x00E1;z&#x00ED;</nobr>';
months[5] = 'Kal&#x00E1;z&#x00ED;';
months[6] = 'Tuum&#x00E1;z&#x00ED;';
months[7] = 'Eln&#x00E1;z&#x00ED;';
months[8] = 'Sen&#x00FA;z&#x00ED;';
months[9] = 'Senaz&#x00E1;z&#x00ED;';
months[10] = '<nobr>Sembe!&#x00E1;z&#x00ED;</nobr>';
months[11] = 'Sengal&#x00E1;z&#x00ED;';
var pos = 0;
while (pos < format.length) {
	if( format.substring(pos,pos+1) != '%') 
	{
		document.write(format.substring(pos,pos+1));
		pos++;
		continue;
	} else {
		if (!IsIn(format.substring(pos,pos+1), operators))		{			document.write(format.substring(pos,pos+1));
			pos++;
			continue;
		} else {
			if ( format.substring(pos,pos+1) == '%') 			{
				pos++; // look ahead
				if (format.substring(pos,pos+1) == '%') 
				{
					document.write('%');
					pos++;
					continue;
				} else {
				if (format.substring(pos,pos+1) == 'd') 
				{
					if(twoplace) LeadZero(date);
					document.write(date);
					pos++;
					continue;
				} else {				if (format.substring(pos,pos+1) == 'A') 
				{					document.write(days[weekday]);
					pos++;
					continue;
				} else {
				if (format.substring(pos,pos+1) == 'a') 
				{
					document.write(days[weekday].substring(0,3));
					pos++;
					continue;
				} else {
				if (format.substring(pos,pos+1) == 'm') 
				{
					if(twoplace) LeadZero(month+1);
					document.write(month+1);
					pos++;
					continue;
				} else {
				if (format.substring(pos,pos+1) == 'B') 
				{
					document.write(months[month]);
					pos++;
					continue;
				} else {
				if (format.substring(pos,pos+1) == 'b') 
				{					document.write(months[month].substring(0,3));
					pos++;
					continue;
				} else {
				if (format.substring(pos,pos+1) == 'y') 
				{
					if(year < 100) {
						document.write(year);
					} else { 
						year -= 100;
						LeadZero(year);
                     document.write(year);
					}
					pos++;
					continue;
				} else {
				if (format.substring(pos,pos+1) == 'Y') 
				{
					document.write(1900 + year);
					pos++;
					continue;
				} 
       pos++; // ignore the char 
		}
} } } } } } } } } } } }
//-->