Estás identificando mal el form, debe ser
document.forms['f1']
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
/*<![CDATA[*/
/* estilos */
/*]]>*/
<script type="text/javascript"> //<![CDATA[
function visibleChecks(){
for (i=0;i < document.forms['f1'].elements.length;i++){
if(document.forms['f1'].elements[i].type == "checkbox"){
document.forms['f1'].elements[i].style.display = "inline";
}
}
}
//]]>
<form name="f1" action="#"> <input type="checkbox" style="display: none;" /> <input type="checkbox" style="display: none;" /> <input type="button" onclick="visibleChecks()" value="mostrar cb" />