<!--

// Code written by Erik Fournier
// Date: 05/06/1998
// Email: webmaster@weberik.com
// URL: www.weberik.com


// Test if the browser support this code

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if ((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 3))
	support = "yes";
else
	support = "no";


// Function returning the name of the current day

function NameOfDay(Day)
{
	if (support == "yes")
	{
		var NameOfDay;

		if (Day == 0) NameOfDay = "Sunday,";
		if (Day == 1) NameOfDay = "Monday,";
		if (Day == 2) NameOfDay = "Tuesday,";
		if (Day == 3) NameOfDay = "Wednesday,";
		if (Day == 4) NameOfDay = "Thursday,";
		if (Day == 5) NameOfDay = "Friday,";
		if (Day == 6) NameOfDay = "Saturday,";

		return NameOfDay;
	}
}


// Function returning the name of the currnet month

function NameOfMonth(Month)
{	
	if (support == "yes")
	{
		var NameOfMonth;
		
		if (Month == 0) NameOfMonth = "January,";
		if (Month == 1) NameOfMonth = "February,";
		if (Month == 2) NameOfMonth = "March,";
		if (Month == 3) NameOfMonth = "April,";
		if (Month == 4) NameOfMonth = "May,";
		if (Month == 5) NameOfMonth = "June,";
		if (Month == 6) NameOfMonth = "July,";
		if (Month == 7) NameOfMonth = "August,";
		if (Month == 8) NameOfMonth = "September,";
		if (Month == 9) NameOfMonth = "October,";
		if (Month == 10) NameOfMonth = "november,";
		if (Month == 11) NameOfMonth = "December,";

		return NameOfMonth;
	}
}



// Function displaying the current date in a long format

function DisplayLongDate()
{
	if (support == "yes")
	{
		var lTime;

		lNow = new Date();
		lDate = lNow.getDate();
		lYear = lNow.getYear();
		lMonth = lNow.getMonth();
		lDay = lNow.getDay();

		if (browserName == "Netscape")
			//lTime = NameOfDay(lDay) + " " + NameOfMonth(lMonth) + " " + lDate + " " + (1900 + lYear);
		else
			// lTime = NameOfDay(lDay) + " " + lDate + " " + NameOfMonth(lMonth) + " " + (1900 + lYear);
                        //lTime = NameOfDay(lDay) + " " + lDate + " " + NameOfMonth(lMonth) + " " + (1900 + lYear);
			
		
		document.write("<font color='#003300' size='1' face='arial,helvetica,sans-serif'>");
		document.write(lTime);
	}
}



// Function displaying the current date in a short format

function DisplayShortDate()
{
	if (support == "yes")
	{
		var sTime;

		sNow = new Date();
		sDate = sNow.getDate();
		sYear = sNow.getYear();
		sMonth = sNow.getMonth();
		sDay = sNow.getDay();

		if (browserName == "Netscape")
			//sTime = NameOfMonth(sMonth) + " " + sDate + ", " + (1900 + sYear);
		else
			//sTime = NameOfMonth(sMonth) + " " + sDate + ", " + (1900 + sYear);
		document.write("<font color='#003300' size='1' face='arial,helvetica,sans-serif'>");
		document.write(sTime);
		
		return 1;
	}
}


// -->
