

var sFormat = 5; 





var aDayLongNames = new Array(

                        'Sunday',

						'Lunes',

						'Martes',

						'Mi&eacute;rcoles',

						'Jueves',

						'Viernes',

						'S&aacute;bado'

                    );



var aMonthLongNames = new Array(

                          'enero',

                          'febrero',

                          'marzo',

                          'abril',

                          'mayo',

                          'junio',

                          'julio',

                          'agosto',

                          'septiembre',

                          'octubre',

                          'noviembre',

                          'diciembre'

                      );



var oToday = new Date();

var iDay   = oToday.getDay();

var iDate  = oToday.getDate();

var iMonth = oToday.getMonth();

var iYear  = oToday.getFullYear();

var sDate  = null;



switch (sFormat) {

	

	case 1:

		sDate = aMonthLongNames[iMonth] + ' ' + iDate + ', ' + iYear;

		break;

	

	case 2:

		break;

	

	case 3:

		break;

	

	case 4:

		break;

	

	case 5: 

		sDate = aDayLongNames[iDay] + ' ' + iDate + ' de ' + aMonthLongNames[iMonth] + ' de ' + iYear;

		break;

		

	case 6: 

		sDate = aDayLongNames[iDay] + ', ' + aMonthLongNames[iMonth] + ' ' + iDate + ', ' + iYear;

		break;

		

	default:

	

}

				

document.write(sDate);