// format date as dd-mmm-yy
// example: 12-Jan-99
//
function date_ddmmmyy(date)
{
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getYear();

  // handle different year values 
  // returned by IE and NS in 
  // the year 2000.
  if(y >= 2000)
  {
    y -= 2000;
  }
  if(y >= 100)
  {
    y -= 100;
  }

  // could use splitString() here 
  // but the following method is 
  // more compatible
  var mmm = 
    ( 1==m)?'Jan':( 2==m)?'Feb':(3==m)?'Mar':
    ( 4==m)?'Apr':( 5==m)?'May':(6==m)?'Jun':
    ( 7==m)?'Jul':( 8==m)?'Aug':(9==m)?'Sep':
    (10==m)?'Oct':(11==m)?'Nov':'Dec';

  return "" +
    (d<10?"0"+d:d) + "-" +
    mmm + "-" +
    (y<10?"0"+y:y);
}

//
// get last modified date of the 
// current document.
//
function date_lastmodified()
{
  var lmd = document.lastModified;
  var s   = "Unknown";
  var d1;

  // check if we have a valid date
  // before proceeding
  if(0 != (d1=Date.parse(lmd)))
  {
    s = "" + date_ddmmmyy(new Date(d1));
  }

  return s;
}

var str =   "<table id='table_footer'>"
str = str + "<tr>"
str = str + "  <td width=20%  valign=top>&nbsp;</td>"
str = str + "  <td width=80%  valign=top>"
str = str + "    <P CLASS=abstract>"
str = str + "      <a href=http://www.beingblue.com/introduction/archives.php>Archives</a>"
str = str + "      &nbsp;&nbsp;&nbsp;&nbsp;<a href=http://www.beingblue.com/introduction/links.php>Links</A>"
str = str + "      &nbsp;&nbsp;&nbsp;&nbsp;<a href=mailto:&#114;&#117;&#115;&#115;&#64;&#98;&#101;&#105;&#110;&#103;&#98;&#108;&#117;&#101;&#46;&#99;&#111;&#109;?subject=feedback on BeingBlue>Feedback</A>"
str = str + "      &nbsp;&nbsp;&nbsp;&nbsp;<a href=http://www.beingblue.com/legal.htm>&copy;1993-2010</A>"
str = str + "      &nbsp;&nbsp;&nbsp;&nbsp;<a href=http://www.beingblue.com/introduction/purpose.htm>Why?</A>"
str = str + "      &nbsp;&nbsp;&nbsp;&nbsp;Updated: "
str = str + date_lastmodified()
str = str + "    </p>"
str = str + "  </td>"
str = str + "</tr>"
str = str + "</table>"
document.write(str)

document.getElementById('table_footer').border="0"
document.getElementById('table_footer').width="800"
document.getElementById('table_footer').cellPadding="2"
document.getElementById('table_footer').cellSpacing="10"
