function uzXmlHttp(){
    var xmlhttp = false;
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(e){
            xmlhttp = false;
        }
    }

    if(!xmlhttp && document.createElement){
        xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
}

function switchLang(lang) {
	document.languageBar.language.value = lang;
	document.languageBar.submit();
}

function opensub(no, path) {
    var current = document.getElementById('subCate'+no);
    var img = document.getElementById('imgbullet'+no);
    if (current.style.display == "none") {
        current.style.display = '';
        img.src = path+'images/bullet_minus.gif';
    } else {
        current.style.display = 'none';
        img.src = path+'images/bullet_plus.gif';
    }
}