function externalLink (goToPage) {
  if (goToPage == 'ViewGuestbook') {
    urchinTracker('/guestbook/view');
    document.location.href='http://home.comcast.net/cgi-bin/GBView?owner=stevesbackyard';
  }
  else if (goToPage == 'SignGuestbook') {
    urchinTracker('/guestbook/sign');
    document.location.href='http://home.comcast.net/cgi-bin/GBEntry?owner=stevesbackyard';
  }
  else if (goToPage == 'GoogleMap') {
    urchinTracker('/outgoing/googlemap');
    document.location.href='http://www.wunderground.com/stationmaps/gmap.asp?zip=24340&magic=1&wmo=99999';
  }
  else if (goToPage == 'MyHistory') {
    urchinTracker('/outgoing/wundergroundlink');
    document.location.href='http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KVAGLADE1';
  }
  else if (goToPage == 'NationalMap') {
    urchinTracker('/outgoing/nationalmap');
    document.location.href='http://www.hpc.ncep.noaa.gov/noaa/noaa.gif';
  }
}
function showTime() {
  var d = new Date();
  document.write("Current Time: " + d.toUTCString());
}
function getParamValue( name )
{
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}
function getDateStr() {
  date = new Date();
  dateStr = "" + date.getFullYear() + (date.getMonth()+1) + date.getDate() + 
            date.getHours() + date.getMinutes() + date.getSeconds();
  return dateStr;
}

function loadNewImage (imageName,altName) {
  document.write("<img src=\"" + imageName + "?" + getDateStr() +
                 "\" alt=\"" + altName + "\" title=\"" + altName + "\">");
}

function postamble() {
  // prevents javascript error from code auto-inserted by comcast
}
