var active = '';

function dopinfo(nm, ac){
        var dop = document.getElementById(nm);
        if(dop){
                if((dop.style.display == "none") || (dop.style.display == "")){
                        dop.style.display = "block";
                        if((active != '') && (ac == true)){
                                var act = document.getElementById(active);
                                act.style.display = "none";
                        }
                        active = nm;
                }else{
                        dop.style.display = "none";
                        if(active == nm) active = '';
                }
        }
}

function Open(url, w, h){
        var l = (screen.width / 2) - (w / 2);
        var t = (screen.height / 2) - (h / 2);
        h += 40;
        w += 40;
        windop = window.open(url,'','left='+l+', top='+t+', height='+h+', width='+w+', status=no, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=no');
}