function WriteDate(ParamDil)
{
  var font  = "Verdana";
  var fcolor = "#000080";
  var falign = "right";
  var fsize = "1";
  var now   = new Date();
  var month = "";
  var month_en = "";
  var year  = "";
  var day  = "";
  var day_en  = "";
  var day  = now.getDay();
  var date  = now.getDate();

  if (now.getMonth() == 0) { 
		 month = "Ocak";
		 month_en = "January";
	}
  if (now.getMonth() == 1) {
		 month = "Şubat";
		 month_en = "February";
	}
  if (now.getMonth() == 2) {
		 month = "Mart";
		 month_en = "March";
	}
  if (now.getMonth() == 3) {
		 month = "Nisan";
		 month_en = "April";
	}
  if (now.getMonth() == 4) {
		 month = "Mayıs";
		 month_en = "May";
	}
  if (now.getMonth() == 5) {
		 month = "Haziran";
		 month_en = "June";
	}
  if (now.getMonth() == 6) {
		 month = "Temmuz";
		 month_en = "July";
	}
  if (now.getMonth() == 7) {
		 month = "Ağustos";
		 month_en = "August";
	}
  if (now.getMonth() == 8) {
		 month = "Eylül";
		 month_en = "September";
	}
  if (now.getMonth() == 9) {
		 month = "Ekim";
		 month_en = "October";
	}
  if (now.getMonth() == 10) {
		 month = "Kasım";
		 month_en = "Novenmber";
	}
  if (now.getMonth() == 11) {
		 month = "Aralık";
		 month_en = "December";
	}
  
  if (now.getDay() == 0) {
		 day = "Pazar";
		 day_en = "Sunday";
	}
  if (now.getDay() == 1) {
		 day = "Pazartesi";
		 day_en = "Monday";
	}
  if (now.getDay() == 2) { 
		day = "Salı";
		 day_en = "Tuesday";
	}
  if (now.getDay() == 3) {
		 day = "Çarşamba";
		 day_en = "Wednesday";
	}
  if (now.getDay() == 4) {
		 day = "Perşembe";
		 day_en = "Thursday";
	}
  if (now.getDay() == 5) {
		 day = "Cuma";
		 day_en = "Friday";
	}
  if (now.getDay() == 6) {
		 day = "Cumartesi";
		 day_en = "Saturday";
	}
  
  // if (now.getYear() < 100) year = "19" + now.getYear()
  // if (now.getYear() >= 100) var year = "20" + now.getYear() - 18100
  year = now.getYear();
	tarih_mac=(navigator.appVersion.indexOf("Mac")!=-1)?true:false
	tarih_ie55=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;
//	ns61=(parseInt(navigator.productSub)>=20010726)?true:false
	tarih_ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false
  if ((tarih_mac == true) || ( tarih_ns6==true )) year = year + 1900;
	if (ParamDil == 0) { // turkce secili ise  
  document.write(date + " " + month + " " + year + ", " + day );
	}
	if (ParamDil == 1) { // ingilizce secili ise  
  document.write(date + " " + month_en + " " + year + ", " + day_en );
	}
}

