// includes(letter, string)
// wnheader(words, width)
// wnfooter()


function includes(letter, string) {
returnthis = 0
for (i=1; i<=string.length; i++)
  if (letter == string.charAt(i))
    returnthis = returnthis + 1;
return returnthis
}

function wnheader(words, width) {

  borderbg='#000000'

  for (i=0; i<=words.length; i++)  // Replaces spaces with invisible underscores
    {
      if (words.substring(i, i+1) == ' ')
        {
          words = words.substring(0, i) + '<span id=\'headeri\'>_</span>' + words.substring(i + 1, words.length);
          i = i + 26;
        }
    }

  document.write('<center>');
  document.write('<table border=0 cellpadding=0 cellspacing=0 bgcolor="' + borderbg + '" width=' + eval(width + 32) + '>');
  document.write('<tr>');
  document.write('<td id=\'headert\'>');
  document.write(words);
  document.write('</font></b>');

  document.write('</tr>');

  document.write('<tr>');
  document.write('<td>');

}

function wnfooter() {

  document.write('</td>');
  document.write('</tr>');
  document.write('</table>');
  document.write('</center><br><br>');
}

function wnline() {
wordbg='0000FF'

document.write('</td></tr><tr>');
document.write('<td bgcolor="' + wordbg + '"><b>');
document.write('<font color="ffffff">');
document.write('</font></b></td>');

document.write('</tr>');

document.write('<tr>');
document.write('<td>');

}

width = '400';
