// JavaScript Document
function displaydate (){

/*
  This is a free sample file to demonstrate to a web author how to:
  1. Customise a javascript
  2. Add a javascript to a web page

  www.mycourseresource.com (TN200908-001 Issue 1.2)
*/
//|============================================================================||
//|  Select your preferred display language by setting the                     ||
//|  true/false values accordingly. Default language is English.               ||
//|  e.g. lang_Irish=true;                                                     ||
//|============================================================================||

lang_French=false;
lang_German=false; 
lang_Irish=false; 
lang_Spanish=false;

//|============================================================================||
//|  Do not modify any text below this line!                                   ||
//|============================================================================||


var now = new Date();
var today = now.getDate();
var month = now.getMonth();
var monthName = new Array(12);
   if (lang_French==true) {
    monthName[0]="Janvier"; monthName[1]="Février"; monthName[2]="Mars";
    monthName[3]="Avril"; monthName[4]="Mai"; monthName[5]="Juin";
    monthName[6]="Juillet"; monthName[7]="Août"; monthName[8]="Septembre";
    monthName[9]="Octobre"; monthName[10]="Novembre"; monthName[11]="Décembre";
   }
  else {
   if (lang_German==true) {
    monthName[0]="Januar"; monthName[1]="Februar"; monthName[2]="März";
    monthName[3]="April"; monthName[4]="Mai"; monthName[5]="Juni";
    monthName[6]="Juli"; monthName[7]="August"; monthName[8]="September";
    monthName[9]="Oktober"; monthName[10]="November"; monthName[11]="Dezember";
   }
  else {
   if (lang_Irish==true) {
    monthName[0]="Eanáir"; monthName[1]="Feabhra"; monthName[2]="Márta";
    monthName[3]="Aibreán"; monthName[4]="Bealtaine"; monthName[5]="Meitheamh";
    monthName[6]="Iúil"; monthName[7]="Lúnasa"; monthName[8]="Meán Fómhair";
    monthName[9]="Deireadh Fómhair"; monthName[10]="Samhain"; monthName[11]="Nollaig";
   }
  else {
   if (lang_Spanish==true) {
    monthName[0]="Enero"; monthName[1]="Febrero"; monthName[2]="Marzo";
    monthName[3]="Abril"; monthName[4]="Mayo"; monthName[5]="Junio";
    monthName[6]="Julio"; monthName[7]="Agosto"; monthName[8]="Septiembre";
    monthName[9]="Octubre"; monthName[10]="Noviembre"; monthName[11]="Diciembre";
   }
  else { 
   monthName[0]="January"; monthName[1]="February"; monthName[2]="March";
   monthName[3]="April"; monthName[4]="May"; monthName[5]="June";
   monthName[6]="July"; monthName[7]="August"; monthName[8]="September";
   monthName[9]="October"; monthName[10]="November"; monthName[11]="December";
 }}}}  
var year = now.getFullYear();
document.write(today + ". " + monthName[month] + " " + year);
}
