// confound those spammers!!

function hideEmail (e1, e2, e3)
   {
   var s1 = '\x6d' + '\x61' + '\x69' + '\x6c' + '\x74' + '\x6f' + '\x3a' ;
   var s2 = e1 + '\x40' + e2;
   var s3 = '<a href="' + s1 + s2 + '">' + e3 + '</a>';
   return s3;
   }

// allows us to display notices only until their expiry date
// date is entered in yyyymmdd format eg. 20090531

function isFutureDate (comp_date)
   {
   var today = new Date();
   var todays_year = today.getFullYear();
   var todays_month = today.getMonth();
   var todays_day = today.getDate();
   var calc_date = todays_year*10000 + (todays_month+1)*100 + todays_day;
   if (comp_date > calc_date) return true;
   else return false;
   }

function doSearch (f)
   {
   var s = f.sstring.value;
   if (s.length == 0 || s.substr(0,12) == 'enter search')
      {
      f.sstring.value = 'invalid phrase';
      return false;
      }
   f.submit();
   return true;
   }

