	function ConfirmaLogin()
	{
		if (Frm.txtLogin.value == "") 
		{
			alert("Informe o seu login.");
			Frm.txtLogin.focus();
			return;
		} 
		if (Frm.txtSenha.value == "") 
		{
			alert("Informe a Senha.");
			Frm.txtSenha.focus();
			return;
		} 
		document.getElementById('Frm').action = 'sql/login_sql.asp';
		document.getElementById('Frm').submit();
	}
	
	function SelPg(pConteudo,pPagina)
	{
		
		document.getElementById('hidConteudo').value = pConteudo;
		document.getElementById('Frm').action = pPagina;
		document.getElementById('Frm').submit();
	}
	
	function SelPgGlossario(pConteudo,pPagina,pBloco)
	{
		document.getElementById('hidConteudo').value = pConteudo;
		document.getElementById('hidBloco').value = pBloco;
		document.getElementById('Frm').action = pPagina;
		document.getElementById('Frm').submit();
	}
	
	function logoff() {
		if (confirm('Deseja realmente sair do sistema?')) 
		{
			window.location = 'home.asp?Sair=True';
		}
	}
	
	function ValidaData(day,month,year)
	{
		if(day == '0')
		{
			alert('Preencha o dia do seu nascimento!');
			return false;
		}
		if(month == '0')
		{
			alert('Preencha o mês do seu nascimento!');
			return false;
		}
		if(year == '0')
		{
			alert('Preencha o ano do seu nascimento!');
			return false;
		}
		if ((month==4 || month==6 || month==9 || month==11) && day==31) 
		{
			if (month==4)
			{
				alert("Abril não tem 31 dias!");
				return false;
			}
			
			if (month==6)
			{
				alert("Junho não tem 31 dias!");
				return false;
			}

			if (month==9)
			{
				alert("Setembro não tem 31 dias!");
				return false;
			}

			if (month==11)
			{
				alert("Novembro não tem 31 dias!");
				return false;
			}

		}
		if (month == 2) 
		{ // checa 29 de fevereiro
			var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
			if (day>29 || (day==29 && !isleap)) 
			{
				alert("Fevereiro de " + year + " não tem " + day + " dias!");
				return false;
			}
		}
		return true;
	}
	
	function CadastrarUsuario(pOp)
	{
		if (Frm.txtLoginCad.value=='') 
		{
			alert("Informe o seu Login.");
			Frm.txtLoginCad.focus();
			return;
		} 
		if (Frm.txtSenhaInclusao.value == "") 
		{
			alert("Informe a Senha.");
			Frm.txtSenhaInclusao.focus();
			return;
		} 
		if (Frm.txtConfirmaSenhaInclusao.value == "") 
		{
			alert("Por Favor Confirme a Senha.");
			Frm.txtConfirmaSenhaInclusao.focus();
			return;
		}
		if (Frm.txtSenhaInclusao.value != Frm.txtConfirmaSenhaInclusao.value) 
		{
			alert("A senha e a confirmação estão diferentes.");
			Frm.txtSenhaInclusao.value = '';
			Frm.txtConfirmaSenhaInclusao.value = '';
			Frm.txtSenhaInclusao.focus();
			return;
		}
		if (Frm.txtNome.value == "") 
		{
			alert("Informe o Seu Nome.");
			Frm.txtNome.focus();
			return;
		} 
		if (Frm.txtSobreNome.value == "") 
		{
			alert("Informe o Seu Sobre nome.");
			Frm.txtSobreNome.focus();
			return;
		} 
		if (Frm.txtEmail.value == "") 
		{
			alert("Informe o seu Email.");
			Frm.txtEmail.focus();
			return;
		} 
		else 
		{
			prim = Frm.txtEmail.value.indexOf("@")
			if(prim < 2) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("@",prim + 1) != -1) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf(".") < 1) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf(" ") != -1) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("zipmeil.com") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("hotmeil.com") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf(".@") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("@.") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf(".com.br.") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("/") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("[") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("]") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("(") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf(")") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtSenha.value = '';
				Frm.txtEmail.focus();
				return;
			}
			if(Frm.txtEmail.value.indexOf("..") > 0) {
				alert("O email informado não está correto.");
				Frm.txtEmail.value = '';
				Frm.txtEmail.focus();
				return;
			}
		}
		if (Frm.cboPais.value == "0") 
		{
			alert("Informe o País.");
			Frm.cboPais.focus();
			return;
		}
		if (Frm.optSexo[0].checked == false && Frm.optSexo[1].checked == false) 
		{
			alert("Informe o Sexo.");
			document.getElementById('optSexoM').focus();
			return;
		}
		
		var bol = ValidaData(Frm.cboDia.value,Frm.cboMes.value,Frm.cboAno.value);
		
		if (!bol)
		{
			return;
		}
		if(document.getElementById('cboDepartamento').value == 0) 
		{
				alert("Selecione o departamento.");
				document.getElementById('cboDepartamento').focus();
				return;
		}
		if(document.getElementById('txtFaturamento').value=="") 
		{
			alert("Informe o faturamento.");
			document.getElementById('txtFaturamento').value = '';
			document.getElementById('txtFaturamento').focus();
			return;
		}
		if(document.getElementById('txtFuncionarios').value=="") 
		{
			alert("Informe o numero de funcionários que trabalham na sua empresa.");
			document.getElementById('txtFuncionarios').value = '';
			document.getElementById('txtFuncionarios').focus();
			return;
		}
		
		
		Frm.hidOp.value = pOp;
		document.getElementById('Frm').action = 'pg_principal.asp?hidConteudo=confirmacao&OptConfirmacao=CadastroUsuario';
		document.getElementById('Frm').submit();
	}
	
	function FaleConosco(pFormulario)
	{
		var prim;
		if (Frm.txtNome.value == '')
		{
			alert('Preencha o Nome.');
			Frm.txtNome.focus();
			return;
		}
		if (Frm.txtEmail.value == "") {
			alert("Informe seu e-mail.");
			Frm.txtEmail.focus();
			
			return;
		} else {
			prim = Frm.txtEmail.value.indexOf("@")
			if(prim < 2) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("@",prim + 1) != -1) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(".") < 1) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(" ") != -1) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("zipmeil.com") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("hotmeil.com") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(".@") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("@.") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(".com.br.") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("/") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("[") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("]") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("(") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(")") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("..") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
		}

		if (Frm.txtAssunto.value == '')
		{
			alert('Preencha o Campo Assunto');
			Frm.txtAssunto.focus();
			return;
		}
		if (Frm.txtMsg.value == '')
		{
			alert('Preencha o Campo Menssagem');
			Frm.txtMsg.focus();
			return;
		}
		Frm.action = 'formulario.asp?MsgEmail='+pFormulario;
		Frm.submit();
	}
	function EsqueceuSenha()
	{
		var prim;
		if (Frm.txtEmail.value == "") {
			alert("Informe seu e-mail Cadastrado.");
			Frm.txtEmail.focus();
			
			return;
		} else {
			prim = Frm.txtEmail.value.indexOf("@")
			if(prim < 2) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("@",prim + 1) != -1) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(".") < 1) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(" ") != -1) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("zipmeil.com") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("hotmeil.com") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(".@") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("@.") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(".com.br.") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("/") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("[") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("]") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("(") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf(")") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
			if(Frm.txtEmail.value.indexOf("..") > 0) {
				alert("O e-mail Informado parece não estar correto.");
				Frm.txtEmail.focus();
				
				return;
			}
		}
		Frm.action = 'FormularioEsqueceuSenha.asp';
		Frm.submit();
	}
function checaSoNumero(texto)
{
   var first;

   //alert(window.event.keyCode);
   switch(window.event.keyCode) 
   {
       case 48: //0
       case 49: //1
       case 50: //2
       case 51: //3
       case 52: //4
       case 53: //5
       case 54: //6
       case 55: //7
       case 56: //8
       case 57: //9
       case 46: //.
       case 45: //-
           break;
       case 44: //,
       //case 46:
		   
			first = texto.value.indexOf(',', 0);
			//alert(first);
			if (first >= 0) {
			    event.returnValue = false;
			}  
			break;
			
			
       default:
           event.returnValue=false;
           return;    
   }
}

function tirarZerosEsquerda(STR){

  var sAux='';
  var i=0;
  STR=new String(STR);

  while (i < STR.length ){
    if ((STR.charAt(i)!='.') && (STR.charAt(i)!=',')){
	  sAux += STR.charAt(i);
    }
	i++
  }


  STR = new String(sAux);
  sAux = '';
  i=0;

  while (i < STR.length ){
    if (STR.charAt(i) != '0'){
      sAux = STR.substring(i,STR.length)
	  i = STR.length;
	}
    i++;
  }

  return  sAux;
}

var isNav4, isNav, isIE;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
  isNav = (navigator.appName=="Netscape") ? true : false;
  isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
}
if (navigator.appName=="Netscape") {
	isNav4 = (parseInt(navigator.appVersion.charAt(0))==4);
}


function limita(obj, max){
	if (obj.value.length > max){
		event.returnValue=false;
	}
}

function formatarOnKeyUp(OBJ)
{
  var decimal,inteiro;
  var i,count;
  STR = new String(OBJ.value);
  STR = tirarZerosEsquerda(STR);
  inteiro='';
  if (isIE) {
		if (STR.length == 1){
			  inteiro  = '0';
			  decimal = '0' + STR;
			}
			else {
			  if (STR.length == 2){
				  inteiro  = '0';
				  decimal = STR;
				}
				else{
				  decimal = STR.substring(STR.length-2,STR.length);
				  i=3;
				  count=0;
				  while (i<=STR.length){
			 		if (count==3) {
					  inteiro = '.' + inteiro;
					  count = 0;
					}
				    inteiro = STR.charAt(STR.length-i) + inteiro;
					count++;
					i++;
				  }
				}
			}


		if (inteiro == '') {
		  inteiro = '0';
		}

		if (decimal == '') {
		  decimal = '00';
		}
		OBJ.value = inteiro+','+decimal;
  }
  else
  {

	if (navigator.appName=="Netscape")
	{
		var versao = navigator.userAgent;
		versao=versao.toString();
		menorVersao = versao.search("/6.0");
		if (menorVersao>-1)
		{
			var isNS6="sim";
		}
	}

	if(isNS6=="sim")
		OBJ.style.textAlign	= "left";


	if(STR=="")
		OBJ.value = "0,00";
	if((STR.length==1 || STR.length==2 || STR.length==3) && OBJ.value.substr(0,1)=='0')
		OBJ.value = OBJ.value.substr(1,OBJ.value.length-1);
	if((STR.length==2) && OBJ.value.substr(0,1)!='0')
		OBJ.value = "0," + OBJ.value;
	if((STR.length==1) && OBJ.value.substr(0,1)!='0')
		OBJ.value = "0,0" + OBJ.value;


	if(isNS6=="sim")
		OBJ.style.textAlign	= "right";

  }

}

function checaTelefone(field)
{
   var tt=field.value;
   //alert(window.event.keyCode);
   switch(window.event.keyCode) 
   {
       case 40:
       case 41:
       case 45:
       case 48:
       case 49:
       case 50:
       case 51:
       case 52:
       case 53:
       case 54:
       case 55:
       case 56:
       case 57:
           break;
       default:
           event.returnValue=false;
           return;    
   }
}

function checaSoNumero(texto)
{
   var tt=texto.value;
   //alert(window.event.keyCode);
   switch(window.event.keyCode) 
   {
       case 48:
       case 49:
       case 50:
       case 51:
       case 52:
       case 53:
       case 54:
       case 55:
       case 56:
       case 57:
           break;
       default:
           event.returnValue=false;
           return;    
   }
}

function formataMoney (field) {  //VERIFICAR SE EH FLOAT PRIMEIRO

	var splitted;
	var inteira;
	var numDecimal;
	
	
	/*out = "."; // replace this
	add = ""; // with this
	temp = "" + field.value; // temporary holder

	while (temp.indexOf(out)>-1) {
	pos= temp.indexOf(out);
	temp = "" + (temp.substring(0, pos) + add + 
	temp.substring((pos + out.length), temp.length));
	}
	field.value = temp;*/
	
	if (field.value == '') return;  //Se campo esta em branco continua em branco
	
	splitted = field.value.split(',');

	if (splitted.length == 1) {  //Parte numDecimal estava faltando (virgula nao encontrada)...

		inteira = splitted[0];

		if ( parseInt(inteira) == 0 ) {
			field.value = '';
			return;
		} else {
		
			if ( isNaN(inteira) ) {
				field.value = '';
				return;
			}
			
			numDecimal = '00';
			field.value = inteira + ',' + numDecimal;
			return;
		}

	}

	//Se tem parte inteira e parte numDecimal

	//Verifica a parte inteira...
	if (splitted[0].length == 0)
		inteira = '0';
	else
		inteira = splitted[0];

	//Verifica a parte decimal...
	if (splitted[1].length == 0) numDecimal = '00';
	if (splitted[1].length == 1) numDecimal = splitted[1] + '0';
	if (splitted[1].length == 2) numDecimal = splitted[1];
	if (splitted[1].length > 2) numDecimal = splitted[1].substring(0,2);

	if ( isNaN(inteira) ) {
		field.value = '';
		return;
	}
	
	if ( isNaN(numDecimal) ) {
		field.value = '';
		return;
	}	
	if ( ( inteira + "," + numDecimal) == '0,00')
		field.value = '';
	else
		field.value = inteira + ',' + numDecimal;
		
}

function checkDecimal(campo) {
	if (campo.value.length == 2)
		campo.value = '0,' + campo.value;
	if (campo.value.length == 1)
		campo.value = '0,' + campo.value + '0';
}

function checaSoNumeroDecimal(texto)
{
   var first;

   //alert(window.event.keyCode);
   switch(window.event.keyCode) 
   {
       case 48:
       case 49:
       case 50:
       case 51:
       case 52:
       case 53:
       case 54:
       case 55:
       case 56:
       case 57:
       case 46:
           break;
       case 44:
       //case 46:
		   
			first = texto.value.indexOf(',', 0);
			//alert(first);
			if (first >= 0) {
			    event.returnValue = false;
			}  
			break;
       default:
           event.returnValue=false;
           return;    
   }
}
function ConfirmaParceria()
{
	if(Frm.txtNomeApoio.value == '')
	if(Frm.txtNomeApoio.value == '')
	{
		alert('Preencha o nome.');
		Frm.txtNomeApoio.focus();
		return;
	}
	if (Frm.txtEmailApoio.value == "") 
	{
		alert("Informe o seu Email.");
		Frm.txtEmailApoio.focus();
		return;
	} 
	else 
	{
		prim = Frm.txtEmailApoio.value.indexOf("@")
		if(prim < 2) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("@",prim + 1) != -1) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf(".") < 1) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf(" ") != -1) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("zipmeil.com") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("hotmeil.com") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf(".@") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("@.") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf(".com.br.") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("/") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("[") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("]") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("(") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf(")") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
		if(Frm.txtEmailApoio.value.indexOf("..") > 0) {
			alert("O email informado não está correto.");
			Frm.txtEmailApoio.value = '';
			Frm.txtEmailApoio.focus();
			return;
		}
	}
	Frm.action = 'pg_principal.asp?hidConteudo=faleConosco&MsgEmail=Apoio';
	Frm.submit();
}
function abrePopIndicar()
{
	window.opener = top;
	window.open('includes/pop_up/pop_email_indicar.asp','IndicacaoGerenteTI','width=500,height=440,top=30,left=30,scrollbars=no,resizable=no,location=no,menubar=no,toolbar=no');
}
function abrePopVantagensApoio()
{
	window.opener = top;
	window.open('includes/pop_up/pop_apoio.asp','ApoioGerenteTI','width=490,height=500,top=30,left=30,scrollbars=no,resizable=no,location=no,menubar=no,toolbar=no');
}
function abrePopVantagensParticipa()
{
	window.opener = top;
	window.open('includes/pop_up/pop_participa.asp','ParticipaGerenteTI','width=490,height=600,top=30,left=30,scrollbars=no,resizable=no,location=no,menubar=no,toolbar=no');
}
function abrePopVantagensGTI()
{
	window.opener = top;
	window.open('includes/pop_up/pop_gti.asp','VantagensGerenteTI','width=490,height=500,top=30,left=30,scrollbars=no,resizable=no,location=no,menubar=no,toolbar=no');
}
function MinhaConta()
{
	document.getElementById('hidOp').value = 'PA';
	document.getElementById('hidConteudo').value = 'Cadastro';
	document.getElementById('Frm').action = 'pg_principal.asp';
	document.getElementById('Frm').submit();
}


