function runscript() {
    var url = ajaxUrl + '?process=years_set&botsid=' + botsid;
    loadXMLDoc(url);
}

function selectAllYears(allYears) {
    var url = ajaxUrl + '?process=years_set&allyears=' + allYears + '&botsid=' + botsid;
    loadXMLDoc(url);
}

function updateCheckBox(chbName, chbStatus, arrName) {
    var url = ajaxUrl + '?process=' + arrName + '&v=' + chbName + '&f=' + chbStatus + '&botsid=' + botsid;
    loadXMLDoc(url);
}

function checkBoxConfirm(ajaxResponse) 
{
    ajaxChboxList = ajaxResponse.getElementsByTagName("set");
    for (var i=0; i<ajaxChboxList.length; i++) {
        ajaxChboxName = ajaxChboxList[i].getAttribute("chbName");
        ajaxChboxSet  = ajaxChboxList[i].getAttribute("chbSet");
        document.getElementById('C' + ajaxChboxName).checked = eval(ajaxChboxSet);
    }
}

