function check_login() {
   var fr = document.frmLogForum;
   if (fr.IdForum.value.length == 0) {
      alert("O login é um campo obrigatório !");
      fr.IdForum.focus();
      return false;
   }
   if (fr.IdForum.value.indexOf('@', 0) == -1 || fr.IdForum.value.indexOf('.', 0) == -1) {
      alert("Por favor, preencha corretamente o campo login."); 
      fr.IdForum.focus();
      return false;
   }
      if (fr.SenhaForum.value.length == 0) {
         alert("A senha é um campo obrigatório !");
         fr.SenhaForum.focus();
         return false;
      }
   return true;
}
function valida_pergunta() {
   var fr = document.frmPergunta;
   if (fr.TextoPergunta.value.length == 0) {
      alert("A pergunta é um campo obrigatório !");
      fr.TextoPergunta.focus();
      return false;
   }
   return true;
}
function mostraObj(pri) {
	var textview = document.getElementById(pri);
		if (textview.style.display=='none') {
			textview.style.display='block';
			} else {
			textview.style.display='none';
	}
function escondeObj(pri) {
	var textview = document.getElementById(pri);
			textview.style.display='none';
	}
}