function onChangeLink(obj)
{
    if(checkCoderPresent!=1) return;

    marker = 2;

    if(!obj) return;
    img = obj.getElementsByTagName("img");
    if(!img[0]) return;

    str = img[0].src;

    reg = new RegExp("(/[a-z_]+)(["+marker+"]{0,1})(\.[a-z]{3,4})$","i");
    res = reg.exec(str);

    if(res == null)
    {
        alert('формат ссылки '+str+'не соответствуют требованиям функции onChangeLink');
        return;
    }
    else
    {
        if(res[2] == null || res[2] == "")
            str = str.replace(res[0], res[1]+marker+res[3]);
        else
            str = str.replace(res[0], res[1]+res[3]);
        img[0].src = str;
    }
}

function monaLight(id,act)
{
    if(checkCoderPresent!=1) return;

    i = document.getElementById("mona_cut"+id);
    if (!i) return;

    if (act == 1)
        i.src = "/i/mona_cut"+id+"2.gif";
    else
        i.src = "/i/mona_cut"+id+".gif";
}