function monthName(anydate) {
//-- Returns the month name from any date object.
var xx = anydate.getMonth()+1
   var nm=""
   if (xx==1){nm="January"}if (xx==2){nm="February"}if (xx==3){nm="March"}
   if (xx==4){nm="April"}if (xx==5){nm="May"}if (xx==6){nm="June"}
   if (xx==7){nm="July"}if (xx==8){nm="August"}if (xx==9){nm="September"}
   if (xx==10){nm="October"}if (xx==11){nm="November"}if (xx==12){nm="December"}
   return nm
}
function weekDay(anydate) {
//-- Returns the day name from any date object.
   var xx = anydate.getDay()+1
   var dn = ""
   if (xx==1){dn="Sunday"}if (xx==2){dn="Monday"}if (xx==3){dn="Tuesday"}
   if (xx==4){dn="Wednesday"}if (xx==5){dn="Thursday"}
   if (xx==6){dn="Friday"} if (xx==7){dn="Saturday"}
   return dn
}
date= new Date();
strDate = weekDay(date);
strDate += " - ";
strDate += monthName(date);
strDate += " ";
strDate += date.getDate();
strDate += ", ";
strDate += date.getFullYear();
document.write(strDate);
//-->