//alert('entrou no js');
function MaxLenTextArea(max,campo,mostraCont) {
        if (mostraCont) {
                var spanCont = document.getElementById('spanContagem');
        }
        var texto = campo.value;
        var cont = max - texto.length;
        if (cont < 0) {
                texto = texto.substr(0,max);
                campo.value = texto;
                cont = max - texto.length;
        }
        if (mostraCont) {
                spanCont.innerHTML = cont;
        }
}

function verifica(form){

        if ( document.getElementById('nome').value == "" ){
                alert('Preencha o campo Nome!');
                document.getElementById('nome').focus();
                return false;
        }
        if(document.getElementById('cometario').value == ""){
                alert('Preencha o campo Comentario!');
                document.getElementById('comentario').focus();
                return false;
        }

}


	
	


