﻿function getElementById_s(id){
    var obj = null;
    if(document.getElementById){
        obj = document.getElementById(id);
    }
    else if (document.all)
    {
        obj = document.all[id];
    }
    return obj;
}

function afficherLiens()
{
    if (getElementById_s('persoLiens').className == 'actifPerso')
    {
        getElementById_s('persoLiens').className='inactif';
        getElementById_s('boiteLiens').className='inactif';
    }
    else
    {
        getElementById_s('persoLiens').className='actifPerso';
        getElementById_s('boiteLiens').className='actif';
    }
}

function addEvent(f)
{
    if (window.addEventListener)
    {
        window.addEventListener("load", f, false);
    }
    //window.onload=f()
    if (window.attachEvent)
    {
        window.attachEvent("onload", f); 
    }
}
