// ABAS NAVEGAÇÃO
function stAba(menu,conteudo)
{
	this.menu = menu;
	this.conteudo = conteudo;
}

var arAbas = new Array();
arAbas[0] = new stAba('td_1','div_1');
arAbas[1] = new stAba('td_2','div_2');
arAbas[2] = new stAba('td_3','div_3');
arAbas[3] = new stAba('td_4','div_4');
arAbas[4] = new stAba('td_5','div_5');
arAbas[5] = new stAba('td_6','div_6');
arAbas[6] = new stAba('td_7','div_7');
arAbas[7] = new stAba('td_8','div_8');
	
function AlternarAbas(menu,conteudo)
{
	for (i=0;i<arAbas.length;i++)
	{
		m = document.getElementById(arAbas[i].menu);
		m.className = 'menu';
		c = document.getElementById(arAbas[i].conteudo)
		c.style.display = 'none';
	}
	m = document.getElementById(menu)
	m.className = 'menu-sel';
	c = document.getElementById(conteudo)
	c.style.display = '';
}
// END ABAS

function janNotify(URL,SCROLL,WIDTH,HEIGHT){
	window.open(
	URL,"fotos","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+ SCROLL +",resizable=no,top=50,left=180,width="+ WIDTH +",height="+ HEIGHT
	);
}

// AVISO NOTIFICA
function showHide(id) {
	var obj = document.getElementById(id);
	if(obj.style.display == "") {
		obj.style.display = "block";
	} else {
		obj.style.display = "";
	}
}

// valida nome resp relatorio excedentes
function valida_rel_exced(){
	var resp = document.frm_rel_exced.resp;
	if(resp.value.length==0){
	alert('Digite o nome do responsável!');
	resp.focus();
	return false;
	} else {
	return true;
	}
}

//encerra instalação
function encerrar(idinstalacao)
{
	if(confirm("Tem certeza que deseja encerrar a instalação?")){
		document.frm_encerrar.id_install.value = idinstalacao;
		document.frm_encerrar.controle.value = 1;
		document.frm_encerrar.submit();
	}
}
