//sans paramètre...
function fChangeUrl()
{

    //on récupère l'url de la page courante
    var mon_url = window.location.href;

    //on recherche l'occurence dans l'url en allemand
    var position_depart = mon_url.indexOf("/d/", 0);

    //si on trouve une occurence pour l'allemand
    if (position_depart != -1)
    {
        //on split la chaîne pour y insérer le répertoire de la langue choisie
        var chaine_une  = mon_url.substring(0, position_depart);
        var chaine_deux = mon_url.substring(position_depart + 3, mon_url.length);

        //on redirige le client
        window.location.href = chaine_une + "/f/" + chaine_deux;
    }
    else
    {

        //on recherche l'occurence dans l'url en allemand
        position_depart = mon_url.indexOf("/f/", 0);

        if(position_depart != -1)
        {
            //on split la chaîne pour y insérer le répertoire de la langue choisie
            var chaine_une  = mon_url.substring(0, position_depart);
            var chaine_deux = mon_url.substring(position_depart + 3, mon_url.length);

            //on redirige le client
            window.location.href = chaine_une + "/d/" + chaine_deux;
        }
    }

} //FIN fChangeUrl
