
function getlink()
{
     var purse_select = document.getElementById('purse');
     var purse = purse_select.options[purse_select.selectedIndex].value;
     var amount = document.getElementById('amount').value;
     lnk = 'wmk:payto?Purse=' + purse + '&Amount=' + amount + '&Desc=Пожертвования%20на%20развитие%20проекта&BringToFront=Y';
     document.getElementById('button').href = lnk;
}

function toggleItem(id)
{
    var displayvalue;
    if (browser.isFirefox || browser.isOpera)
        displayvalue = 'table-row';
    else if (browser.isIE)
        displayvalue = 'inline';
    else
        displayvalue = 'table-row';
 

 
    if (document.getElementById)
    {
        var rowComment = document.getElementById(id)
        if (rowComment.style.display == 'none')
            rowComment.style.display = displayvalue;
        else
            rowComment.style.display = 'none';
    }
}


var timer;
function scrolltop(id)
{
    //document.getElementById(id).style.left = document.body.scrollLeft + 20;
    //document.getElementById(id).style.top=screen.availHeight - 250;
    document.getElementById(id).style.top=document.body.scrollTop + 700;
    timer=setTimeout('scrolltop(\'' + id + '\')',1);
}

function stoptimer()
{
    clearTimeout(timer);
}


