<!--
repMonths = new Array("Vendémiaire","Brumaire","Frimaire","Nivôse","Pluviôse","Ventôse",
		"Germinal","Floréal","Prairial","Messidor","Thermidor","Fructidor", "");
repDays = new Array("Décadi", "Primidi", "Duodi", "Tridi", "Quartidi", 
					"Quintidi", "Sextidi", "Septidi", "Octidi", "Nonidi");
numDays = new Array(30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5);
daysToAdd = new Array(9, 10, 10, 11, 12, 10, 11, 11, 12, 12, 13, 14);
var x = new Date();
theYear = x.getFullYear();
theMonth = x.getMonth();
theDate = x.getDate();
repDay = x.getDay();
repDate = theDate;
repMonth = theMonth + 3;
repYear = theYear - 1792;
if (isLeap()) 
{
	numDays[12] = 6;
	daysToAdd[5] += 1;
	daysToAdd[6] += 1;
	daysToAdd[7] += 1;
	daysToAdd[8] += 1;
	daysToAdd[9] += 1;
	daysToAdd[10] += 1;
	daysToAdd[11] += 1;
}
if (repMonth > 11)
{
	repMonth -= 12;
	repYear++;
}
repDate += daysToAdd[repMonth]
if (repDate > numDays[repMonth])
{
	repDate -= numDays[repMonth];
	repMonth++;
	if (repMonth == 12)
	{
		if (repDate > numDays[repMonth])
		{
			repDate -= numDays[repMonth];
			repMonth -= 12;
			repYear++;
		}
	}
} 

function isLeap()
{
	isLeap = false;
	if( (repYear % 4 == 0) &&                         //*** Leap year
    	((repYear % 100 != 0) || (repYear % 400 ==0)) ) isLeap = true;
	return isLeap;
} 

function getRepFullDate()
{
	getRepFullDate = repDate + ' ' + repMonths[repMonth] + ' ' + repYear;
	return getRepFullDate;
}

function getRepDate()
{
	if (repMonth == 12)
	{
		if (repDate == 1)
		{
			getRepDate = "(1)";
		}
		else if (repDate == 2)
		{
			getRepDate = "(2)";
		}
		else if (repDate == 3)
		{
			getRepDate = "(3)";
		}
		else if (repDate == 4)
		{
			getRepDate = "(4)";
		}
		else if (repDate == 5)
		{
			getRepDate = "(5)";
		}
		else if (repDate == 6)
		{
			getRepDate = "(6)";
		}
	}
	else
	{
		getRepDate = repDate;
	}
	return getRepDate;
}

function getRepMonth()
{
	getRepMonth = repMonths[repMonth];
	return getRepMonth;
}

function getRepYear()
{
	getRepYear = repYear;
	return getRepYear;
}

function getRepDay()
{
	if (repMonth == 12)
	{
		if (repDate == 1)
		{
			repDay = "Jour de la Vertue";
		}
		else if (repDate == 2)
		{
			repDay = "Jour de Génie";
		}
		else if (repDate == 3)
		{
			repDay = "Jour du Travail";
		}
		else if (repDate == 4)
		{
			repDay = "Jour de l'Opinion";
		}
		else if (repDate == 5)
		{
			repDay = "Jour des Récompenses";
		}
		else if (repDate == 6)
		{
			repDay = "Jour de la Révolution";
		}
	}
	else
	{
		repDay = repDays[repDate % 10];
	}
	getRepDay = repDay;
	return getRepDay;
}

//-->
