function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Ocak"
monthNames[2] = "Şubat"
monthNames[3] = "Mart"
monthNames[4] = "Nisan"
monthNames[5] = "Mayıs"
monthNames[6] = "Haziran"
monthNames[7] = "Temmuz"
monthNames[8] = "Ağustos"
monthNames[9] = "Eylül"
monthNames[10] = "Ekim"
monthNames[11] = "Kasım"
monthNames[12] = "Aralık"
dayNames = new MakeArray(7)
dayNames[1] = "Pazar"
dayNames[2] = "Pazartesi"
dayNames[3] = "Salı"
dayNames[4] = "Çarşamba"
dayNames[5] = "Perşembe"
dayNames[6] = "Cuma"
dayNames[7] = "Cumartesi"

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 + ", " + currentDate.getDate() + " "+ theMonth + " " + theYear+" "
}


document.write(customDateString())
