function valida(){
	with(document.cadastro){
		
		var txt = new Array();
		txt[0]  = gE('txt_titulo');
		txt[1]  = gE('txt_palavrachave');
		txt[2]  = gE('txt_link');
		txt[3]  = gE('txt_descricao');
		
		var forms = new Array();
		forms[0]   = vid_titulo.value;
		forms[1]   = vid_palavraschave.value;
		forms[2]   = vid_link.value;
		forms[3]   = vid_descricao.value;
		
		var i;
		var erro = 0;
		for(i=0; i<txt.length; i++){
			txt[i].style.color = !forms[i] ? "#FF0000" : "#666666";
			if(!forms[i]){
				erro = 1;
			}
		}
		
		if(erro){
			alert("Todos os campos em vermelho são de preenchimento obrigatório.");
			return false;
		}
		
	}
}
