function senha() {
	window.open("senha.php", "", "width=350,height=200");
}


function validaSenha() {
	var login = document.getElementById("edtlogin");
	
	if (Trim(login.value) == "") {
		alert("Informe o seu nome de usuário!");
		login.focus();
		return false;
	} else {
		return true;
	}
}


function irParaCompromisso(tr) {
	location.href = "comp/visu/cadastro.php?id="+tr.cells[0].innerHTML;
}


function irParaPessoa(tr) {
	location.href = "acnt/nome/index.php?id="+tr.cells[0].innerHTML;
}


function excluirAlerta(id) {
	if (confirm('Confirma a exclusão do alerta?')) {
		document.getElementById('codalerta').value = id;
		document.getElementById('falerta').submit();
	}
}

