﻿function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "சனவரி"
monthNames[2] = "பெப்ரவரி"
monthNames[3] = "மார்ச்"
monthNames[4] = "ஏப்ரல்"
monthNames[5] = "மே"
monthNames[6] = "யூன்"
monthNames[7] = "யூலை"
monthNames[8] = "ஆகச்து"
monthNames[9] = "செப்டம்பர்"
monthNames[10] = "அக்டோபர்"
monthNames[11] = "நவம்பர்"
monthNames[12] = "டிசம்பர்"
dayNames = new MakeArray(7)
dayNames[1] = "ஞாயிறு"
dayNames[2] = "திங்கள்"
dayNames[3] = "செவ்வாய்"
dayNames[4] = "புதன்"
dayNames[5] = "வியாழன்"
dayNames[6] = "வெள்ளி"
dayNames[7] = "சனி"

function customDateString() {
	currentDate = new Date()
	var theDay = dayNames[currentDate.getDay() + 1]
	var theMonth = monthNames[currentDate.getMonth() + 1]
	msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	if (msie4) {
	    var theYear = currentDate.getYear()
	}
	else {
	     var theYear = currentDate.getYear() +1900
	}
	return theDay + ", " + theMonth + " " + currentDate.getDate() + ", " + theYear
}

