// tady se nam budou taky menit parametry u GET, ttakze PHPSESSID musime prenaset dal...

function showSubcategories(idcko,phpsessid) {
        var xmlHttp;
        try {
                //non-IE
                xmlHttp=new XMLHttpRequest();
        } catch (e) {
                try {
                        xmlHttp=new ActiveXObject("MSxml2.XMLHTTP"); //IE 6
                } catch (e) {
                        alert('Your browser does not support AJAX!');
                        return false;
                }
        }
        xmlHttp.onreadystatechange=function() {
                if (xmlHttp.readyState==4) {
                        var contentDiv=document.getElementById('div_'+idcko);
                        var toWrite="<ul>";
                        toWrite+=xmlHttp.responseText;
                        toWrite+="</ul>";
                        contentDiv.innerHTML=xmlHttp.responseText;
                }
        }
        xmlHttp.open('POST','../united/scripts/do_getSubCats.php?idcislo='+idcko+'&PHPSESSID='+phpsessid,true);
        xmlHttp.send(null);
}

