document.getElementById('err_codigo').style.visibility='visible'; existe_erro = true; window.alert('Existem erros nos dados introduzidos !!!');