function showDiv(button) {
        // hide all the divs...
        var spots = new Array("Map","Sits","Points","Request","InputResult","AddressBook","Settings", "AddNews");
        for (num=0;num<spots.length;num++) {
                if (document.getElementById(spots[num]))
                        document.getElementById(spots[num]).style.display='none';
        }
        // show the div with the same value as the button
        if (button && button.value) {
                var target = document.getElementById(button.value);
                target.style.display='block';

        } else {
                // or this function can be used to just pass a name and not a button...
                if (button) {
                        document.getElementById(button).style.display='block';
                }
        }
}

function toggle(id) {
        if (! document.getElementById(id))
                return false;
        var e = document.getElementById(id);
        if (e.style.display=='block')
                e.style.display='none';
        else
                e.style.display='block';
}

