How you would do that would to first cycle through all the other divs and hide those before showing the correct one. If I'm right in assuming that you have very basic javscript skills, I'll run you through this step by step.
First, lets make the function
Code:
function show(div_id) {
it looks like the div "blank_space" is the parent of all those other divs, so we'll get that.
Code:
parent = document.getElementById("blank_space");
Next, we need to cycle though all the child divs of that object and hide that
Code:
i = 0;
while(cur_item = parent.childNodes[i]) {
cur_item.style.display = 'none';
i++;
}
Then lets unhide the div that you want to show.
Code:
document.getElementById(div_id).style.display = '';
Done! Let's put it all together
Code:
function show(div_id) {
parent = document.getElementById("blank_space");
i = 0;
while(cur_item = parent.childNodes[i]) {
cur_item.style.display = 'none';
i++;
}
document.getElementById(div_id).style.display = '';
}
Edit: I haven't tested this. Any errors just hit the "Post Reply" button.