function getParam(theParam, defaultValue) {	// Gets the value of theParam from the URL's query string	var queryString = "&" + location.search.substring(1);	var param = "&" + theParam + "=";	var theValue = defaultValue;	var i = queryString.indexOf(param);	if (i > -1) {	  var endOfValue = queryString.indexOf("&", (i + param.length));		if (endOfValue < 0) {      endOfValue = queryString.length;		}				theValue = queryString.substring((i + param.length), endOfValue);		}	return theValue; }function padout(number) { return (number < 10) ? '0' + number : number; }function makeArray() {    for (i = 0; i<makeArray.arguments.length; i++)        this[i + 1] = makeArray.arguments[i];}function makeArray0() {    for (i = 0; i<makeArray0.arguments.length; i++)        this[i] = makeArray0.arguments[i];}function y2k(number) { return (number < 1000) ? number + 1900 : number; }//*********************************************************//* Today Class//*********************************************************function Today(serverDate, lang) {  this.lang = lang; //* [FR][EN][ES][...]    //* Today date  this.today = new Date(serverDate); //* Format: ??????????????????  this.hour = padout(this.today.getHours());  this.min = padout(this.today.getMinutes());  this.day   = this.today.getDay();       //* Jour de la semaine  this.date  = this.today.getDate();      //* Jour du mois  this.month = this.today.getMonth() + 1;  this.year  = y2k(this.today.getYear());   //* Methods  this.getStrDate = function () {      var strDate = "";      if (this.lang == "fr") {        //* Francais        this.monthsFR = new makeArray('janvier','f&eacute;vrier','mars','avril','mai','juin','juillet','ao&ucirc;t','septembre','octobre','novembre','d&eacute;cembre');        this.daysFR = new makeArray0('Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi');//        strDate = this.daysFR[this.today.getDay()] + ', ' + this.date + ' ' + this.monthsFR[this.month] + ' ' + this.year + ' &nbsp;&nbsp;' + this.hour + ' h ' + this.min;        strDate = this.daysFR[this.today.getDay()] + ', ' + this.date + ' ' + this.monthsFR[this.month] + ' ' + this.year;      }       else if (this.lang == "en") {        //* Anglais        this.monthsEN = new makeArray('January','February','March','April','May','June','July','August','September','October','November','December');        this.daysEN = new makeArray0('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');//        strDate = this.daysEN[this.today.getDay()]  + ' ' + this.monthsEN[this.month] + ' ' + this.date +  ', ' + this.year+ ' &nbsp;&nbsp;' + this.hour + ':' + this.min;        strDate = this.daysEN[this.today.getDay()]  + ' ' + this.monthsEN[this.month] + ' ' + this.date +  ', ' + this.year;      }       else if (this.lang == "ES") {        //* Espagnol        this.monthsES = new makeArray('enero', 'febrero', 'marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre','deciembre');        this.daysES = new makeArray0('Domingo', 'Lunes', 'Martes', 'Mi&eacute;rcoles', 'Jueves', 'Viernes','S&aacute;bado');        strDate = this.daysES[this.today.getDay()] + ', ' + this.date + ' de ' + this.monthsES[this.month] + ' de ' + ' ' + this.year+ ',&nbsp;&nbsp;' + this.hour + '.' + this.min;      }      else if (this.lang == "IT") {        //* Italien        this.monthsES = new makeArray('gennaio', 'febbraio', 'marzo','aprile','maggio','giugno','luglio','agosto','settembre','ottobre','novembre','dicembre');        this.daysES = new makeArray0('Domenica', 'Luned“', 'Marted“', 'Mercoled“', 'Gioved“', 'Venerd“','Sabato');        strDate = this.daysES[this.today.getDay()] + ' ' + this.date + ' ' + this.monthsES[this.month] + ' ' + this.year+ '&nbsp;&nbsp;ore&nbsp;' + this.hour + '.' + this.min;      }      return strDate;    }  return this;}            