function showInfo(id,tpl){
    var req = new JsHttpRequest("windows-1251");
    req.onreadystatechange = function(){
        if(req.readyState == 4) {
            if(req.responseJS){
                document.getElementById(id).innerHTML = req.responseJS.q;
                document.getElementById('view_info'+id).innerHTML = req.responseText;
               // document.getElementById('view_info'+id).innerHTML = '00000000';
            }
        }
    }
        req.caching = true;
        req.open("POST",window.location.protocol + '//' + window.location.host + '/com/ajax_news.php?act=view_id&id='+id+'&tpl='+tpl, true);
        req.send(null);
}


function ShowExtInfo(blockid,tpl){
                document.getElementById("info-block" + blockid).style.display = 'block';
                document.getElementById("info_" + blockid).style.display = 'none';
                showInfo(blockid,tpl);
                return false;
}

function HideExtInfo(blockid){
                document.getElementById("info-block" + blockid).style.display = 'none';
                document.getElementById("info_" + blockid).style.display = 'block';
                return false;
}
