// JavaScript Document
<!--EScrambled Email Address Code-->
<!--Original code from:-->
<!--http://innerpeace.org/escrambler.shtml-->
<!--Modified by: Takis Benos, University of Pittsburgh, 2002-->

<!--Usage: escrble3 ( 'username', 'prefix' )-->
<!--Output: username@prefix.pitt.edu -->
<!--   if no prefix, then 'username@pitt.edu' will be print -->

function escrble3 ( uname, pref ) {

  var a, b, c, d, e, f, g, h, i ;

  a  = '<a href=\"mai' ;
  b  = uname ;
  c  = '\">' ;
  a += 'lto:' ;
  b += '@' ;
  e  = '</a>' ;
  b += pref ;
  f  = 'Send Email' ;   // any text you want to be included;
              // empty for same address
              // "NO_CLOSE_TAG" for ommitting "</A>"
  g  ='<img src=\"'
  b += 'pitt.' ;
  h  ='' ;    // the image name goes here
  b += 'ed' ;
  i  ='\" alt=\"Email us.\" border=\"0\">' ;
  b += 'u' ;

  if ( f ) {
    if ( f == "NO_CLOSE_TAG" ) {
      d = '' ;
    }else {
      d = f + e ;
    }
  }else if ( h ) {
    d = g + h + i + e ;
  }else {
    d = b + e ;
  }

  document.write ( a + b + c + d ) ;

}
