// JavaScript Document

function zoomImagem(vImg){

	window.open("janela_imagem.asp?ArqImg=" + vImg, "zoom_imagem", "width=100,height=100,statusbar=false,menubar=false,scrollbars=false");
		
}

function ajustarRodape(){
	
	var objCorpo = document.getElementById("divCorpoDaPagina");
	var objRodape = document.getElementById("divRodape");
	var objBgRodape = document.getElementById("divBgRodape");
	var objLateral = document.getElementById("divLateral");
	
	if(objCorpo.offsetHeight < 800) { objCorpo.style.height = "800px"; }
	
	objBgRodape.style.top = (objCorpo.offsetTop + objCorpo.offsetHeight) + "px";
	objRodape.style.top = (objCorpo.offsetTop + objCorpo.offsetHeight + 20) + "px";
	objLateral.style.height = (objBgRodape.offsetTop - objLateral.offsetTop) + "px";	
	
}

function montarBarraNavegacao(linkPaginas){
	
	if (linkPaginas != "")

		document.getElementById("divNavegacaoRodape").innerHTML = "<p align='center'>" + linkPaginas + "</p>";
				
}

function execAcessarEmail(){

	var frm = document.login;
	var usuario = frm.username.value;
	
	if(usuario.search("@igrejametodistarenovada.com.br") < 0)
		
		frm.username.value = frm.username.value + "@igrejametodistarenovada.com.br";
	
	frm.action = "http://mail.igrejametodistarenovada.com.br/mail/login.html";
	frm.onSubmit = "sha1sumbit()";
	frm.method = "Post";
	frm.submit();

}

function execAssinar(){

	var frm = document.frmNews;
	
	frm.action = "newsletter.asp?acao=continuar";
	frm.method = "Post";
	frm.submit();

}

function execVotar(){

	var frm = document.frmEnquete;
	
	frm.action = "index.asp?acao=votar";
	frm.method = "Post";
	frm.submit();

}

function exibirResultado(){

	var url, IDJanela, opcoes;
	
	url = "resultado.asp";
	IDJanela = "janVotar";
	opcoes = "top=250,left=300,width=350,height=200,menubar=false,toolbar=false,scrollbars=false";
	
	window.open(url, IDJanela, opcoes);
	
}


function abrirRadio(){
	
	window.open("radio.asp","radio","width=400,height=175");
	
}
