/***********************
*	Decodage des emails 
***********************/
function hex2dec(hex) {
   if (hex == "A") dec = 10;
   else if (hex == "B") dec = 11;
   else if (hex == "C") dec = 12;
   else if (hex == "D") dec = 13;
   else if (hex == "E") dec = 14;
   else if (hex == "F") dec = 15;
   else dec = eval(hex);
   return dec;
}

function decodeEmail (coded) {
    ucoded = coded.toUpperCase()
    shift2 = (ucoded.length / 2) -1;
    link=""
    for (i = shift2; i >= 0; i--) {
        ltr1 = ucoded.charAt(2*i)
        ltr2 = ucoded.charAt(2*i+1)
        asc = hex2dec(ltr1)*16 + hex2dec(ltr2)
        ltr=String.fromCharCode(asc)
        link +=(ltr)
    }
    document.write("<a href='mailto:" + link + "'>")
    document.write ("<img border=0 width=300 height=15 alt='Ecrivez &agrave; ce correspondant' src='/bar/imgmail.php?e=")
    document.write (coded)
    document.write("'></a>")
}

function decodeEmail2 (coded) {
    ucoded = coded.toUpperCase()
    shift2 = (ucoded.length / 2) -1;
    link=""
    for (i = shift2; i >= 0; i--) {
        ltr1 = ucoded.charAt(2*i)
        ltr2 = ucoded.charAt(2*i+1)
        asc = hex2dec(ltr1)*16 + hex2dec(ltr2)
        ltr=String.fromCharCode(asc)
        link +=(ltr)
    }
    document.write("<a href='mailto:" + link + "'>")
}