var dir = 'http://www.bios.unc.edu/~lin/';


/********//********//********//********//********//********//********//********/
function pfv( file )
{
    var features  = "titlebar=yes,menubar=yes,resizable=yes,scrollbars=yes,";
        features += "directories=no,location=no,status=yes,toolbar=yes,";
        features += "width=700,top=0,left=0";

    var w = window.open( dir + file,
                         'pwin',
                         features );

    w.focus();
    if( window.print )
    {
        w.print();
    }

    return false;
}
/********//********//********//********//********//********//********//********/



/********//********//********//********//********//********//********//********/
/******************************************************************************
 * original javascript by tim williams
 *                        email obfuscator script 2.1 (freeware)
 *
 * modified by tammy bailey 04/2007
 ******************************************************************************/
/********//********//********//********//********//********//********//********/
function contact( name )
{
    ecode  = "wdnfbyaqbtsy"
    cipher = "jbdvtalgouqzmwsp.ixenyhkrcf"
    shift  = ecode.length
    addr   = name + "<span class = 'at'>@</span>";

    for( i = 0;  i < ecode.length; i++ )
    {
        if( cipher.indexOf( ecode.charAt(i) ) != -1 )
        {
            ch = ( cipher.indexOf(ecode.charAt(i)) - shift + cipher.length );
            addr += ( cipher.charAt( ch % cipher.length ) );
        }
        else {}
    } 
    
    return( addr );
}
/********//********//********//********//********//********//********//********/
