function longMonthArray(){this[0]="Jan";this[1]="Feb";this[2]="Mar";this[3]="Apr";this[4]="May";this[5]="Jun";this[6]="Jul";this[7]="Aug";this[8]="Sept";this[9]="Oct";this[10]="Nov";this[11]="Dec";return(this);}function longDayArray(){this[0]="";this[1]="";this[2]="";this[3]="";this[4]="";this[5]="";this[6]="";return(this);}function getLongYear(year){if (year <2000)return year+1900;else if (year <= 2000)return year;return year;}
function writeDateLong(format){longDays=new longDayArray();longMonths=new longMonthArray();d=new Date();day=d.getDate();month=d.getMonth();year = d.getYear();
str=longDays[d.getDay()]+" "+longMonths[month]+" "+day+" "+getLongYear(year);document.writeln(str);}function writeDate(){writeDateLong(0);}writeDateLong();
