function shortMonthArray() {
   this[0] = "Ocak";        this[1] = "&#350;ubat";        this[2] = "Mart";
   this[3] = "Nisan";       this[4] = "Mayıs";        this[5] = "Haziran";
   this[6] = "Temmuz";      this[7] = "Ağustos";        this[8] = "Eylül";
   this[9] = "Ekim";        this[10] = "Kasım";       this[11] = "Aralık";

   return (this);
}

function getShortYear(year)
{
shortyear =  year%100;
if (shortyear < 10) shortyear = "0"+shortyear;
return shortyear
}

function yillar(year)
{
  if (year > 1900) return year
  return year+1900;
}


function writeDateLong(format)
{      

aylar = new shortMonthArray();   
d = new Date();
day = d.getDate();
month = d.getMonth();
year = d.getYear();

if (format == 0)
 str = day+"  " + aylar[month]+ "  "+yillar(year);  
else {
 month++;    



if (format == 9)

 str = month + "/" + day + "/" + yillar(year);
else if (format == 11)
 str = day + "/" + month + "/" + yillar(year);     

else {

if (day < 10) day = "0"+day
if (month < 10) month = "0"+month
if (format == 15)

          str = month + "/" + day + "/" + yillar(year);        
 else if (format == 17)
          str = day + "/" + month + "/" + yillar(year);        

  }
 }

  document.writeln(str);
}


function writeDate()
{
   writeDateLong(0);
}

// end-->

