var now = new Date();
var dayofmonth = now.getDate();
var month = now.getMonth();
var year = now.getFullYear();
var weekday = now.getDay();
var printday;
  if (weekday==0)  printday=dayofmonth;
  if (weekday==1)  printday=(dayofmonth-1);
  if (weekday==2)  printday=(dayofmonth-2);
  if (weekday==3)  printday=(dayofmonth-3);
  if (weekday==4)  printday=(dayofmonth-4);
  if (weekday==5)  printday=dayofmonth;
  if (weekday==6)  printday=(dayofmonth-1);
var monthname;
  if (month==0) monthname="January";
  if (month==1) monthname="February";
  if (month==2) monthname="March";
  if (month==3) monthname="April";
  if (month==4) monthname="May";
  if (month==5) monthname="June";
  if (month==6) monthname="July";
  if (month==7) monthname="August";
  if (month==8) monthname="September";
  if (month==9) monthname="October";
  if (month==10) monthname="November";
  if (month==11) monthname="December";
var previousmonthname;
  if (month==0) previousmonthname="December";
  if (month==1) previousmonthname="January";
  if (month==2) previousmonthname="February";
  if (month==3) previousmonthname="March";
  if (month==4) previousmonthname="April";
  if (month==5) previousmonthname="May";
  if (month==6) previousmonthname="June";
  if (month==7) previousmonthname="July";
  if (month==8) previousmonthname="August";
  if (month==9) previousmonthname="September";
  if (month==10) previousmonthname="October";
  if (month==11) previousmonthname="November";
if (dayofmonth<5)
  {document.write("Site last updated in "+previousmonthname+" "+year+". ");
}
else
  {document.write("Site last updated on "+monthname+" "+printday+", "+year+". ");
}