Hi tirza,
For your solution,
you can use style.visibility property to control the div's show and hidden instead of style.display property
I tested the code below, and it works fine on firefox 3.6
function hide()
{
var d1 = document.getElementById('div1');
if(d1.style.visibility == '')
{
d1.style.visibility = 'hidden';
}
else
{
d1.style.visibility = '';
}
}
Regards,
Jeff