// Java Document
/*
   Function List:
   contact
      Used to create a href mailto:  to prevent spammers.

*/


/*

   Function List:
   stringReverse
      Used to reverse the order of characters in a text string

*/


function stringReverse(textString)
{
   if (!textString) return '';
   var revString='';
   for (i = textString.length-1; i>=0; i--)
       revString+=textString.charAt(i)
   return revString;
}



  function contact()
  {
    var to = 'mai' + 'lto:';
    var addr = 'in' + 'f' + 'o@th' + 'e-sit' + 'e-e' + 'ngi' + 'ne' + 'er.' + 'co' + 'm';


    document.write('<a href="' + to +  addr +'" id="contact">'+ ' email' + '</a>');
  }
  
  
  
  
      function showEM(userName, emServer)

      {

	/*The showEM() function displays a link to the user's e-mail address.  

          The text of the user and e-mail server names are entered in 

          reverse order to thwart e-mail harvesters.

        */



	    userName = stringReverse(userName);  // reverse the text of the userName parameter.

        emServer = stringReverse(emServer);  // reverse the text of the emServer parameter.



        var emLink = userName + "@" + emServer; // combine the text of userName and emServer

        document.write("<a href='mailto:" + emLink + "'>");

        document.write(emLink);

	document.write("</a>");

       }