<!--
	function alterapag(pag, sala, topico, oper){
		document.paginas.pag.value=pag;
		document.paginas.sala.value=sala;
		document.paginas.topico.value=topico;
		document.paginas.oper.value=oper;
		document.paginas.submit();
	} 

	function abredetalhespes(cod){
		window.open(cod,'detalhespes','toolbar=no,location=no,status=no,scrollbars=no,resizable=no,top=0,left=0,width=350,height=130');
	}

	function Valida(theForm,oper){
	try{
	  if (theForm.login.value == ""){
	    alert("Digite seu código de filiação");
	    theForm.login.focus();
	    return (false);
	  }
	  if (theForm.senha.value == ""){
	    alert("Digite sua senha");
	    theForm.senha.focus();
	    return (false);
	  }  
	}
	catch (e) {}
	 
	if (oper == "postar"){
	  if (theForm.titulo.value == ""){
	    alert("Digite o título da mensagem");
	    theForm.titulo.focus();
	    return (false);
	  }   
	}
	  if (theForm.mensagem.value == ""){
	    alert("Digite uma mensagem ou resposta");
	    theForm.mensagem.focus();
	    return (false);
	  }
	  //return (true);
	  theForm.submit();
	}
	
	function confirmaExclusao(string){
		if (confirm('Deseja realmente '+ string + ' a(s) sala(s) selecionada(s)?')){
			document.fExcluiSala.submit();
		}
	}
	
	function alteracampos(x) {
		if (x == 'ins')	{
			if (document.inserir.topicoorigem.value == '') {
				alert ('Selecione tópicos a mover');
			}
			else {
				document.inserir.submit();
			}
		}
		else {
			if (document.remover.topicodestino.value == '') {
				alert ('Selecione tópicos a retornar');
			}	
			else {
				document.remover.submit();
			}		
		}
	}	
//-->