cDate = new Date();

days = "Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday,";
months = " January, February, March, April, May, June, July, August, September, October, November, December";

daysArray = days.split(" ");
monthsArray = months.split(",");


if (cDate.getDay() == "1")
  document.write(daysArray[0]);
else if (cDate.getDay() == "2")
  document.write(daysArray[1]);
else if (cDate.getDay() == "3")
  document.write(daysArray[2]);
else if (cDate.getDay() == "4")
  document.write(daysArray[3]);
else if (cDate.getDay() == "5")
  document.write(daysArray[4]);
else if (cDate.getDay() == "6")
  document.write(daysArray[5]);
else 
  document.write(daysArray[6]);

if (cDate.getMonth() == "0")
  document.write(monthsArray[0]);
else if (cDate.getMonth() == "1")
  document.write(monthsArray[1]);
else if (cDate.getMonth() == "2")
  document.write(monthsArray[2]);
else if (cDate.getMonth() == "3")
  document.write(monthsArray[3]);
else if (cDate.getMonth() == "4")
  document.write(monthsArray[4]);
else if (cDate.getMonth() == "5")
  document.write(monthsArray[5]);
else if (cDate.getMonth() == "6")
  document.write(monthsArray[6]);
else if (cDate.getMonth() == "7")
  document.write(monthsArray[7]);
else if (cDate.getMonth() == "8")
  document.write(monthsArray[8]);
else if (cDate.getMonth() == "9")
  document.write(monthsArray[9]);
else if (cDate.getMonth() == "10")
  document.write(monthsArray[10]);
else 
  document.write(monthsArray[11]);

document.write(" " + cDate.getDate() + ", 2012");
