function mailProtect(id)
{
    var pref = '', ma = '', str;
    pref = 'ma';
    pref += 'il';
    pref += 'to';
    pref += ':';

    ma = 'bogd';
    ma += 'anov';
    ma += '#';

    ma += 'blog';
    ma += 'berg.';
    ma += 'ru';

    ma  = ma.replace(/#/, '@');
    str = pref + ma;

    var l = document.getElementById(id);
    l.innerHTML = ma;
    l.onclick = function()
    {
        this.href = str;
        return true;
        //top.location.href = str;
    }
}