function Decrypt( ss ) {
  var sClear;
  var ii;

  sClear = "";
  ii = ss.length - 1;
  while ( ii >= 0 ) {
    sClear = sClear + ss.substr( ii, 1 );
    ii = ii - 1;
  }
      
  return sClear;
}

function MailToDecrypted( ss ) {
  location.assign( 'mailto:' + Decrypt( ss ));
}

function DecryptedLink( ss ) {
  var sClear = Decrypt( ss );
  document.write( '<' + 'A HREF=\'mailto:' + sClear + '\'>' + sClear + '<' + '/A>' );
}

function emitStandardFramework() {
  document.write( '<TABLE CLASS="ban" WIDTH="800" HEIGHT="254" CELLSPACING="0">' );
  document.write( '<TR>' );
  document.write( '<TD CELLSPACING="10" CELLPADDING="0" BORDER="0"><IMG WIDTH="259" HEIGHT="254" SRC="./bsbdclo3.jpg" ALT="banner"></TD>' );
  document.write( '<TD CLASS="ban" WIDTH="541"><H1 align="center">Big Scioty Contra Dance</H1>' );
  document.write( ' ' );
  document.write( '<H3 align="center">Columbus Ohio</H3></TD>' );
  document.write( '</TR>' );
  document.write( '' );
  document.write( '</TABLE>' );
  document.write( '' );
  document.write( '<TABLE WIDTH="800" CELLSPACING="0" CELLPADDING="10">' );
  document.write( '<TR><!-- menu 1st level -->' );
  document.write( '<TD WIDTH="150" ALIGN="LEFT" VALIGN="TOP">' );
  document.write( '<A CLASS="Sidebar" HREF="./index.html"> Home</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./blurb.htm"> About Contra Dance</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./index.html"> Current Schedule</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./map.html"> Maps</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./contacts.html"> Contacts</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./email.html"> E-Mail Updates</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./newspaper.html"> Newspaper Article</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./olocal.html"> Other Local Dancing</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./regional.html"> Other Regional Dances</A><BR><HR CLASS="smallHR"> ' );
  document.write( '<A CLASS="Sidebar" HREF="./weekends.html"> Dance Weekends<BR>Music Festivals</A><BR><HR CLASS="smallHR">' );
  document.write( '<A CLASS="Sidebar" HREF="./national.html"> Nationwide Pages</A><BR><HR CLASS="smallHR">' );
  document.write( '</TD>' );
  document.write( '' );
  document.write( '<TD WIDTH="650" ALIGN="LEFT" VALIGN="TOP">' );
}

function pageDate() {
  var dd;
  dd = new Date(document.lastModified);
  dd = dd.toString();
  var iCol = dd.indexOf( ' GMT' );
  return dd.substr( 0, iCol );
}

function emitFrameworkEnd( lastUpdatePerson ) {
  document.writeln( '<P>This page was last updated on ' + pageDate() + ' by ' + lastUpdatePerson + '</P>' );
  document.write( '</TD>' );
  document.write( '</TR>' );
  document.write( '</TABLE>' );
}
