Ho questa istruzione che non funchia su FF

document.getElementById("MyDiv").style.visibility= "visible";

come posso fare?