	var the_date = "", the_date1 = "", the_day="", the_month="", the_year = "", d_date = "";

	the_date = new Date();
	the_date1 = the_date.getDate();
	the_day = the_date.getDay();
	the_month = the_date.getMonth()+1;
	the_year= the_date.getFullYear();

	if (the_day == 1) d_date = "Mon, ";
	if (the_day == 2) d_date = "Tue, ";
	if (the_day == 3) d_date = "Wed, ";
	if (the_day == 4) d_date = "Thur, ";
	if (the_day == 5) d_date = "Fri, ";
	if (the_day == 6) d_date = "Sat, ";
	if (the_day == 7) d_date = "Sun, ";

    switch(the_date1) {
		case 1:
		  d_super = "st";
		  break
		case 21:
		  d_super = "st";
		  break
		case 31:
		  d_super = "st";
		  break
		case 2:
		  d_super = "nd";
		  break
		case 22:
		  d_super = "nd";
		  break
		case 3:
		  d_super = "rd";
		  break
		case 23:
		  d_super = "rd";
		  break
		default:
		  d_super = "th";
		  break
	}

	d_date += the_date1;
	d_date += d_super;

	if (the_month == 1) d_date += " January ";
	else if (the_month == 2) d_date += " February ";
	else if (the_month == 3) d_date += " March ";
	else if (the_month == 4) d_date += " April ";
	else if (the_month == 5) d_date += " May ";
	else if (the_month == 6) d_date += " June ";
	else if (the_month == 7) d_date += " July ";
	else if (the_month == 8) d_date += " August ";
	else if (the_month == 9) d_date += " September ";
	else if (the_month == 10) d_date += " October ";
	else if (the_month == 11) d_date += " November ";
	else if (the_month == 12) d_date += " December ";

	d_date += the_year;

	document.write (d_date);