function gs_change_params(form) {
    radioGroupObj = form.type;
    var type = 1;
    for (var i=0; i < radioGroupObj.length; i++)   {
        if (radioGroupObj[i].checked) {
            type = radioGroupObj[i].value;
            break;
        }
    }
    
    input_cr = document.getElementById('cr');
    if (type == 2) {
        if (!input_cr) {
            input_cr = document.createElement('input');
            input_cr.setAttribute('type','hidden');
            input_cr.setAttribute('name','cr');
            input_cr.setAttribute('value','countryUA');
            form.appendChild(input_cr);
        }
    } else {
        if (input_cr) form.removeChild(input_cr);
    }
}

function setStatClick(link) {
    JsHttpRequest.query("/_ajax/statistic/",{}, function(responseJS, error) {}, true);
    return true;    
}



//function getSearchInfoText() {
//   var div = document.getElementById('searchcontrol');
//   
//   var element = div.firstElementChild;
//    
//   alert(element);

//}

