	function popup(link,largura,altura){
		w=',width=' +largura;
		h=',height='+altura;
		windowfeatures='status=no,menubar=no,scrollbars=yes,resizable=no' +w + h;
		Janela=window.open(link,"janelin",windowfeatures);
		Janela.focus();
	}


	function changeLocation(menuObj) {
	var i = menuObj.selectedIndex;
	if(i > 0) {
	   window.location = menuObj.options[i].value;
		}
	}
	
	function mostraLayer( whichLayer )
	{
	  var elem, vis;
	  if( document.getElementById ) // this is the way the standards work
	    elem = document.getElementById( whichLayer );
	  else if( document.all ) // this is the way old msie versions work
	      elem = document.all[whichLayer];
	  else if( document.layers ) // this is the way nn4 works
	    elem = document.layers[whichLayer];
	  vis = elem.style;
	  // if the style.display value is blank we try to figure it out here
	  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
	    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
	  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
	}


	function fecharpopup(id)
	{
		if (!document.getElementById) {	return;	}
		var el = document.getElementById('popup');
		if (el.style.display == '')
		{
			el.style.display = 'none';
		}
		else
		{
			el.style.display = '';
		}
	}

// questionario	
        function validar_cadastro(obj){

		if(obj.pais.value == ""){ 
			alert("Você precisa informar seu país."); 
			obj.pais.focus(); 
			return false; 
		} 
		else 
		if(obj.estado.value == ""){ 
			alert("Você precisa informar o estado onde mora."); 
			obj.estado.focus(); 
			return false;  
		} 
		else 
		if(obj.nacionalidade.value == ""){ 		
			alert("Você precisa informar o estado onde nasceu."); 
			obj.nacionalidade.focus(); 
			return false; 
		} 
		else 
		if(obj.idade.value == ""){ 		
			alert("Você precisa informar sua idade."); 
			obj.idade.focus(); 
			return false; 
		} 
		else 
		if(obj.sexo.value == ""){ 		
			alert("Homem ou mulher? Preencha o campo."); 
			obj.sexo.focus(); 
			return false; 
		} 
		else 
		if(obj.estcivil.value == ""){ 		
			alert("Qual seu estado civil? Preencha o campo."); 
			obj.estcivil.focus(); 
			return false; 
		} 
		else 
		if(obj.etnia.value == ""){ 		
			alert("Você precisa informar sua etnia."); 
			obj.etnia.focus(); 
			return false; 
		} 
		else 
		if(obj.atividade.value == ""){ 		
			alert("Você precisa informar sua área de atividade"); 
			obj.atividade.focus(); 
			return false; 
		} 
		else 
		if(obj.profissao.value == ""){ 		
			alert("Você precisa informar sua profissão"); 
			obj.profissao.focus(); 
			return false; 
		} 
		else 
		if(obj.num_pessoas.value == ""){ 		
			alert("Quantas pessoas trabalham com você? Preencha o campo."); 
			obj.num_pessoas.focus(); 
			return false; 
		} 
		else 
		return confirm("Deseja enviar dados?"); 
		} 	
// fim do questionario 	
	
//dropdown ie6

<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>

function vai(){
if (document.seletor.subseletor.options[document.seletor.subseletor.selectedIndex].value != "none")
   {
   location = document.seletor.subseletor.options[document.seletor.subseletor.selectedIndex].value
   }
}
