Can you do something like
function showDiv()
{
[DIV].visible = true;
//or something
}
You can use the DOM functions: setAttribute and removeAttribute. In the following link you have an example of how to use them.
setAttribute and removeAttribute functions
A quick view:
hide: document.getElementById("myDiv").setAttribute("hidden","");
unhide: document.getElementById("myDiv").removeAttribute("hidden");