function setSubLevels(id) {
    var el = document.getElementById(id);
    var cur;
    if ( el!=null ) {
        var li = el.getElementsByTagName('li');
        for (var i=0, sz=li.length; i<sz; ++i) {
            cur = li[i]; 
            if ( cur.getElementsByTagName('ul').length ) {
                cur.className += " dive";
            }
        }
    }
}
function openWindow(title, width, height, content)
{
    ScrWindow=window.open(content,title,"toolbar=no,location=no,left=0,top=0,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width="+width+",height="+height+"");
}

g_bLoc = false;
function JEnter(domLi)
{
    if(g_bLoc)
        return;
    var aLinks = domLi.getElementsByTagName("A");
    if(aLinks && aLinks.length && aLinks.length>=1)
        window.location.href = aLinks[0].href;
    g_bLoc = true;
}
