//função mostra texto 

function showSub(lugar,obj){
	base = document.getElementById(lugar).getElementsByTagName("ul")
	for(i=0;i<base.length;i++){
		base[i].style.display="none";
	}
	document.getElementById(obj).style.display = "block";
}



//funcão mostra radio

function validaradio (obj){
	
if (obj=='Sim')

	{

	document.getElementById('box2').style.display='block';

	}

	else

	{

	document.getElementById('box2').style.display='none';

	}

}


window.onload=function(){

	

	if (document.getElementById('pessoa').checked==true)

	{

	document.getElementById('box2').style.display='block';

	}

	else

	{

	document.getElementById('box2').style.display='none';

	}

}

//função menu popup

function init(){
document.getElementById("sac").onmouseover = function(){document.getElementById("sub_sac").style.display='block';};
document.getElementById("sac").onmouseout = function(){document.getElementById("sub_sac").style.display='none';};
document.getElementById("sub_sac").onmouseout = function(){document.getElementById("sub_sac").style.display='none';};
document.getElementById("sub_sac").onmouseover = function(){document.getElementById("sub_sac").style.display='block';};

document.getElementById("btInst").onmouseover = function(){document.getElementById("subInst").style.display='block';};
document.getElementById("btInst").onmouseout = function(){document.getElementById("subInst").style.display='none';};
document.getElementById("subInst").onmouseout = function(){document.getElementById("subInst").style.display='none';};
document.getElementById("subInst").onmouseover = function(){document.getElementById("subInst").style.display='block';};

}

 window.onload=init
 
//função janela popup 
 
function abre(url,janela,larg,alt,scroll,pos1,pos2){

 window.open(url,janela,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroll+',resizable=no,copyhistory=no,top='+pos1+',left='+pos2+',screenY='+pos1+',screenX='+pos2+',width='+larg+',height='+alt);

}




