// set the function
function theclock()
{
	var rightnow=new Date();
	var themonth=rightnow.getMonth();
	var theday=rightnow.getDay();
	var thedate=rightnow.getDate();
	var theyear=rightnow.getYear();
	var thehours=rightnow.getHours();
	var themins=rightnow.getMinutes();
	var thesecs=rightnow.getSeconds();

	// correct the day of the week
	var corrected_day=new Array(7)
	corrected_day[0]="Pazar";
	corrected_day[1]="Pazartesi";
	corrected_day[2]="Salı";
	corrected_day[3]="Çarşamba";
	corrected_day[4]="Perşembe";
	corrected_day[5]="Cuma";
	corrected_day[6]="Cumartesi";

	// correct the month
	var corrected_month=new Array(12)
	corrected_month[0]="Ocak";
	corrected_month[1]="Şubat";
	corrected_month[2]="Mart";
	corrected_month[3]="Nisan";
	corrected_month[4]="Mayıs";
	corrected_month[5]="Haziran";
	corrected_month[6]="Temmuz";
	corrected_month[7]="Ağustos";
	corrected_month[8]="Eylül";
	corrected_month[9]="Ekim";
	corrected_month[10]="Kasım";
	corrected_month[11]="Aralık";

	// correct the year for 2000
	if (theyear<2000) {
		theyear+=1900;
	}

	// correct the date
	if (thedate<10) {
		thedate="0"+thedate;
	}

	// set 0 in front of the min,secs
	if (themins<10) {
		themins="0"+themins;
	}
	if (thesecs<10) {
		thesecs="0"+thesecs;
	}

	// display the status
	window.status=thedate+" "+corrected_month[themonth]+" "+theyear+" "+corrected_day[theday]+" "+thehours+":"+themins+":"+thesecs;
}
setInterval("theclock()",1000);
