function ecrirea( cour, txt ) { 
    var m=replaceall( cour, '_a_', '@'); 
    m=replaceall( m, '_ustl', '@univ-lille1.fr'); 
    m=replaceall( m, '_iemn', '@iemn.univ-lille1.fr'); 
    m=replaceall( m, '_polytech', '@polytech-lille.fr'); 
    m=replaceall( m, 'snesup59-62', 'christophe.seguinot@iemn.univ-lille1.fr'); 
    m=replaceall( m, 'webmestre', 'christophe.seguinot@iemn.univ-lille1.fr'); 
    m=replaceall( m, '_', '.'); 

    document.write('<a href="mailto:'+m+'">'); 
    if ( typeof txt=="undefined" ) 
    document.write(m); 
    else 
    document.write(txt); 
    document.write('</a>'); 
} 
function adresses( cour, txt ) { 
    var m=replaceall( cour, '_a_', '@'); 
    m=replaceall( m, '_ustl', '@univ-lille1.fr'); 
    m=replaceall( m, '_iemn', '@iemn.univ-lille1.fr'); 
    m=replaceall( m, '_polytech', '@polytech-lille.fr'); 
    m=replaceall( m, 'snesup59-62', 'christophe.seguinot@iemn.univ-lille1.fr'); 
    m=replaceall( m, '_', '.'); 
 
    if ( typeof txt=="undefined" ) 
    document.write(m); 
    else 
    document.write(txt); 

} 
function replaceall(string,text,by) {
// Replaces text with by in string
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;

    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;

    var newstr = string.substring(0,i) + by;

    if (i+txtLength < strLength)
        newstr += replaceall(string.substring(i+txtLength,strLength),text,by);

    return newstr;
}
