<script language="javascript" type="text/javascript"> function toggle(el) { el.style.display = (el.style.display == 'none') ? '' : 'none'; } </script>
function toggle( elem ) { var style = elem.style; if ( elem.ownerDocument && elem.ownerDocument.defaultView ) { style = elem.ownerDocument.defaultView.getComputedStyle( elem, null ); } else if ( elem.currentStyle ) { style = elem.currentStyle; } elem.style.display = (style.display == 'none') ? '' : 'none'; }
<a class="ot" onClick="toggle(img_z)">сылка</a> <br> <span id="img_z" style="display: none;"> <input type="file" name="uploadimg1" /><br> <input type="file" name="uploadimg2" /> </span>