
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function AbreImagem(imagem){
	var imagem;
	MM_openBrWindow('zoom.php?imagem='+imagem,'','toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes');
	
	
	}
function LoginEnter(evtKeyPress){
	
	 if(document.all) { // Internet Explorer
        nTecla = evtKeyPress.keyCode;
		 }
      else if(document.layers) { // Nestcape
        nTecla = evtKeyPress.which;
		
      }
	  
	  
	 if (nTecla==13){
		 Flogin.submit();
		 }
	
	}




function Aviso(texto){
	
	if (texto=='login'){
		alert('Login e/ou Senha Incorretos!');
	}
	if (texto=='expirou'){
		alert('Você foi desconectado por ter passado muito tempo inativo! Efetue seu login novamente!');
	}
	if (texto=='logoff'){
		alert('LOGOFF efetuado com sucesso!');
	}
	
}



function LoginExtranet(){
	login = document.getElementById('login').value;
	senha = document.getElementById('senha').value;
	
	
	if (login == '' || senha == ''){
		alert('ATENÇÃO! O campo Login e Senha são de preenchimento obrigatório!');
		
		}else{
			
			Flogin.submit();
			}
	
	
	}



function FontSize(num){
	
	var tamanhoatual,num,tam;
	tamanhoatual = document.getElementById('tamanhofonte').value;
	
	switch (num){
		case 'mais':
			if (tamanhoatual != '6'){
				tam= 1+parseInt(tamanhoatual);
				document.getElementById('tamanhofonte').value = tam;
				document.getElementById('texto').className = 'font'+tam;
			}
		break
		case 'menos':
			if (tamanhoatual != '1'){
				tam=parseInt(tamanhoatual) - 1;
				document.getElementById('tamanhofonte').value = tam;
				document.getElementById('texto').className = 'font'+tam;
			}
		break
		
		}
		
}

function Retorna(secao,modulo){
		
		window.location='index.php?secao='+secao+'&modulo='+modulo;
	}      


function AssinaNews(secao,modulo){
		
		window.location="index.php?secao=outros&modulo=assina&secao2="+secao+"&modulo2="+modulo;
	}      


function SolicitaContato(secao,modulo){
		
		window.location="index.php?secao=contato&modulo=formulario&secao2="+secao+"&modulo2="+modulo;
	}      


	
function IndiqueAmigo(secao,modulo){
		
		window.location="index.php?secao=outros&modulo=indiqueamigo&secao2="+secao+"&modulo2="+modulo;
	}  
	
function CartaoPrevisul(secao,modulo){
		
		window.location="index.php?secao=segurados&modulo=cartao&secao2="+secao+"&modulo2="+modulo;
	}  





function MenuAcessoRapido(modulo){
	
	switch (modulo){
		
		case 'mosquito':
			secao = 'diversos';		
		break
		case 'quem':
		case 'diretoria':
		case 'missao':
		case 'valores':
		case 'projetossociais':
		case 'homenagens':
		case 'etica':
		case 'fotolog':
		case 'coritiba':
			secao = 'empresa';		
		break
		case 'calculo':
		case 'ap':
		case 'empresarial':
		case 'vidaprevisul':
		case 'vidatoda':
		case 'rti':
		case 'rdih':
		case 'funeral':
		case 'global':
			secao = 'seguros';		
		break
		
		case 'sorteiomensal':
		case 'sorteiosemanal':
		case 'beneficio':
		case 'downloads':
		case 'condicoesgerais':
		case 'cartao':
		case 'glossario':
		case 'comemorativas':
		case 'faq':
		case 'solicitacartao':
		case 'relacaomedicos':
			secao = 'segurados';		
		break
		
	
		case 'contato':
		case 'previcor':
			secao = 'corretores';		
		break
		
		case 'links':		
			secao = 'links';		
		break
		
		case 'ddg':
		case 'formulario':
		case 'enderecos':		
			secao = 'contato';		
		break
		
		case 'ranking':
		case 'indiqueamigo':
		case 'leite':	
		case 'noticias':	
			secao = 'outros';		
		break
		
		
		
		}
	
	
	url = 'http://www.previsul.com.br/portal/index.php?secao='+secao+'&modulo='+modulo;
	
	
	
	GB_showCenter('',url,400,720, '');
	
	}
	
	
function FormularioContato(assunto){
	url = 'http://www.previsul.com.br/portal/index.php?secao=contato&modulo=formulario&assunto='+assunto;
	
	
	
	GB_showCenter('',url,400,720, '');
	
	}


