/* ******************************************************************

page_end-0111.js
Written by Travis Saling

"End of page" code for unusual situations - this simply displays the
copyright info and the document.lastModified date.

Current as of 11/28/01  15:01   TLS

****************************************************************** */

  //
function OpenCertDetails()
	{
	var thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=USUNIV1183',
          'anew', config='height=400,width=500,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,' +
          'location=no,directories=no,status=yes');
	}
//
  var thecurrentURL = document.URL;
  if (thecurrentURL.substring(0,6) == "https:") {
    document.write(
      '<table align=left border=0 cellspacing=0 cellpadding=0>\n' +
      '<tr>\n' +
      '  <td>\n' +
      '    <img src="/images/space.gif" width=150 height=10 border=0>\n' +
      '  </td>\n' +
      '  <td>\n' +
      '    <a href="javascript:OpenCertDetails()">\n' +
      '    <img src="/images/thawte_image_sm.gif" border=0 alt="Click here for more details"></a>\n' +
      '  </td>\n' +
      '</tr>\n' +
      '</table>\n'
      );
    }
//
  document.write(
    '<p class=rightside><span class=notation>\n' +
    'Questions, comments, or suggestions?\n' +
    '<a href="/computing/webmaster_email.html">Write to the Webmaster</a>.\n' +
    '<br><br>\n' +
    '<a href="/legal.html">All contents &copy; 1994-2004 UW Electrical Engineering</a><br>'
    );
  //
  var last_mod_date = new Date(document.lastModified);
  browser_version = navigator.appVersion.substring(0,1);
  if (browser_version >= 4) {
    var last_mod_year = last_mod_date.getFullYear().toString();
    }
  else {
    var last_mod_year = last_mod_date.getYear().toString();
    }
  if ((last_mod_year.length > 3) && (last_mod_year.substring(0,4) < "1990"))
    last_mod_year = "20" + last_mod_year.substring(2);
  var last_mod_month = last_mod_date.getMonth() + 1;
  if (last_mod_month < 10) { last_mod_month = "0" + last_mod_month; }
  var last_mod_day = last_mod_date.getDate();
  if (last_mod_day < 10) { last_mod_day = "0" + last_mod_day; }
  //
  if (self.location.pathname.indexOf("cgi")== -1) {
    var monthname = new Array("","January","February","March","April","May","June","July",
      "August","September","October","November","December");
    document.writeln('This page was last updated ' + monthname[Number(last_mod_month)] + ' ' + 
      last_mod_day + ', ' + last_mod_year);
    }
  document.writeln('</span></p>');
