var ultimo_menu=new Object();
var ultimo_cab=new Object();
var NNx=document.getElementById?1:0;
var IEx=document.all?1:0;

var IEx         = document.all?1:0;
var eData       = /^((0[1-9]|[12]\d)\/(0[1-9]|1[0-2])|30\/(0[13-9]|1[0-2])|31\/(0[13578]|1[02]))\/20\d{2}$/;
var eEmail      = /^[\w-]+(\.[\w-]+)*@(([A-Za-z\d][A-Za-z\d-]{0,61}[A-Za-z\d]\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])$/;
var eCEP        = /^[0-9]{5}-[0-9]{3}$/;
var eTelefone   = /^\([0-9]{2}\) [0-9]{3,4}-[0-9]{4}( [0-9]{1,4})?$/;

function FormataReais(nome, fld, milSep, decSep, e) {

   var objeto = eval("window.document.Form." + nome);

if ( objeto.value.length == 14 ) {
  alert("Este é o tamanho máximo do campo");
  document.Form.CodRecolhimento.focus();
  return false;
  }
var sep = 0;
var key = '';
var i = j = 0;
var len = len2 = 0;
var strCheck = '0123456789';
var aux = aux2 = '';
var whichCode = (window.Event) ? e.which : e.keyCode;
if (whichCode == 13) return true;
key = String.fromCharCode(whichCode); // Valor para o código da Chave
if (strCheck.indexOf(key) == -1) return false; // Chave inválida
len = fld.value.length;
for(i = 0; i < len; i++)
if ((fld.value.charAt(i) != '0') && (fld.value.charAt(i) != decSep)) break;
aux = '';
for(; i < len; i++)
if (strCheck.indexOf(fld.value.charAt(i))!=-1) aux += fld.value.charAt(i);
aux += key;
len = aux.length;
if (len == 0) fld.value = '';
if (len == 1) fld.value = '0'+ decSep + '0' + aux;
if (len == 2) fld.value = '0'+ decSep + aux;
if (len > 2) {
aux2 = '';
for (j = 0, i = len - 3; i >= 0; i--) {
if (j == 3) {
aux2 += milSep;
j = 0;
}
aux2 += aux.charAt(i);
j++;
}
fld.value = '';
len2 = aux2.length;
for (i = len2 - 1; i >= 0; i--)
fld.value += aux2.charAt(i);
fld.value += decSep + aux.substr(len - 2, len);
}
return false;
}
//Fim da Função FormataReais -->


function VerificaData(Hoje) {
  var Msg="";
  if ( document.Form.Vencimento.value.length > 0 ) {
     var vCampo=document.Form.Vencimento;
     if ( eData.test(vCampo.value) ) {
        var sHoje = Hoje.split("/");
        var datahoje   = new Date(sHoje[1] + "/" + sHoje[0] + "/" + String(Number(sHoje[2])));
        var sVencimento = document.Form.Vencimento.value.split("/");
        var datavencimento   = new Date(sVencimento[1] + "/" + sVencimento[0] + "/" + sVencimento[2])
        if  ( datavencimento < datahoje )
           Msg="Aviso:\nA data de Vencimento fornecida deve ser maior ou igual a data atual.";
     }
     else
       Msg="A data de Vencimento fornecida é inválida, deve estar no formato DD/MM/20AA";
  }
  if ( Msg.length > 0 ) {
     alert(Msg);
    vCampo.value="";
    vCampo.focus();
  }
}




function VerificaTelefone(campo) {
 var Msg="";
 var vObjetoAux=eval("document.Form." + campo);
 var vAux=vObjetoAux.value;
 if (vAux != "") {
   var splitBco = vAux.split(" ");
   var vCA       = splitBco[0];
   var vTelefone = splitBco[1];
   if (vTelefone.indexOf("--") > -1 )
     Msg="O Telefone é inválido, redigite conforme pedido";
   else {
     if ( splitBco.length == 3 )
        var vRamal    = splitBco[2];
     else
        var vRamal    = "";
     if (vCA.length < 4)
        Msg="O código de Área deve estar no formato (99)";
     else {
        if ( vTelefone.length < 8 )
           Msg="O telefone deve conter no mínimo 7 dígitos";
        else  {
           if ( vTelefone.length == 8 )
              vTelefone=vTelefone.substr(0,3) + "-" + vTelefone.substr(3,1) + vTelefone.substr(5,3)
           if ( vRamal == 0 )
              vRamal="";
           else
              vRamal=" " + vRamal;
              vObjetoAux.value= vCA + " " + vTelefone + vRamal;
           }
        }
     }
   }
if ( Msg != "") {
   alert(Msg);
   vObjetoAux.value="";
   vObjetoAux.focus();
}
}



/*





  if ( document.Form.TelefoneRes.value.length > 0 ) {
     var vCampo   = document.Form.TelefoneRes;
     vCampo.value = vCampo.value.toLowerCase();
     if ( eTelefone.test(vCampo.value) )
        return true;
     else {
        alert("A TELEFONE fornecido é inválido, deve estar no formato (99) 9999-9999 ou (99) 999-9999");
        vCampo.value="";
        vCampo.focus();
     }
  }
}


 */

function VerificaEmail() {
   if ( document.Form.Email.value.length > 0 ) {
      var vCampo   = document.Form.Email;
      vCampo.value = vCampo.value.toLowerCase();
      if ( eEmail.test(vCampo.value) )
         return true;
      else {
         alert("Email inválido!");
         vCampo.value="";
         vCampo.focus();
      }
   }
}



/***
* CEP -> 99999-999
* CPF -> 999.999.999-99
* CNPJ -> 99.999.999/9999-99
* C/C -> 999999-!
* Tel -> (99) 9999-9999
***/

function txtBoxFormat(objForm, strField, sMask, evtKeyPress) {
  var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;
  if (IEx) // Internet Explorer
     nTecla = evtKeyPress.keyCode;
  else if (NNx)  // Nestcape 6
     nTecla=(window.Event) ? evtKeyPress.which : evtKeyPress.keyCode;
  sValue = objForm[strField].value;

  // Limpa todos os caracteres de formatação que
  // já estiverem no campo.
  sValue = sValue.toString().replace( "-", "" );
  sValue = sValue.toString().replace( "-", "" );
  sValue = sValue.toString().replace( ".", "" );
  sValue = sValue.toString().replace( ".", "" );
  sValue = sValue.toString().replace( "/", "" );
  sValue = sValue.toString().replace( "/", "" );
  sValue = sValue.toString().replace( "(", "" );
  sValue = sValue.toString().replace( "(", "" );
  sValue = sValue.toString().replace( ")", "" );
  sValue = sValue.toString().replace( ")", "" );
  sValue = sValue.toString().replace( " ", "" );
  sValue = sValue.toString().replace( " ", "" );
  fldLen = sValue.length;
  mskLen = sMask.length;

  i = 0;
  nCount = 0;
  sCod = "";
  mskLen = fldLen;

  while (i <= mskLen) {
    bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/"))
    bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " "))
    if (bolMask) {
       sCod += sMask.charAt(i);
       mskLen++; }
       else {
          sCod += sValue.charAt(nCount);
          nCount++;
       }
       i++;
    }
    objForm[strField].value = sCod;
    if (nTecla != 8) { // backspace
       if (sMask.charAt(i-1) == "9") return ((nTecla > 47) && (nTecla < 58)); // apenas números...números de 0 a 9
       else return true; // qualquer caracter...
    }
    else return true;
}




function checkCPF() {
   var result = true;
   var digit;
   var calc;
   var vAux=window.document.Form.CPF.value;
   vAux=vAux.replace(".","");
   vAux=vAux.replace(".","");
   vAux=vAux.replace("-","");
   strNumber=vAux;
   if (strNumber != "") {
      strNumber = getNumber(strNumber);
      if (strNumber.length < 4) {
         result = false;
      }
      if (!parseInt(strNumber.substring(strNumber.length - 6 , strNumber.length))) {
         result = false;
      }
      digit = strNumber.substring(strNumber.length-2, strNumber.length);
      number = strNumber.substring(0 , strNumber.length - 2);
      calc = getCPFDigit(number);
      if ( digit != calc ) {
        alert("O CPF esta incorreto, por favor redigite!");
        window.document.Form.CPF.value="";
        window.document.Form.CPF.focus();
        result = false;
      }
      if (document.Form.CPF.value.length < 14) {
         alert("O CPF deve estar no formato 999.999.999-99");
         result = false;
      }
     return result;
   }
}




function getNumber(strNumber) {
   var number;
   var strRetNumber="";
   for (var i=0 ; i < strNumber.length ; i++) {
      number = parseInt(strNumber.charAt(i));
      if ( number ) {
         strRetNumber += strNumber.charAt(i)
      }
      else {
         if ( number == 0 ) {
            strRetNumber += strNumber.charAt(i)
         }
      }
   }
   return strRetNumber;
}




function getCPFDigit(strNumber) {
   var i;
   var digit1;
   var digit2;
   var total;
   var result;
   strNumber = '000000000' + getNumber(strNumber)
   strNumber = strNumber.substring(strNumber.length - 9, strNumber.length)
   total=0
   for (i = 1 ; i < 10; i++)
      total = total + strNumber.substring(i - 1 , i) * (11 - i);
   digit1 = total * 10 % 11;
   if (digit1 == 10) digit1 = 0;
   aux = digit1.toString(10);
   strNumber = strNumber + aux.substring(aux.length - 1 , aux.length);
   total=0;
   for (i = 1 ; i < 11 ; i++)
      total = total + strNumber.substring(i - 1 , i) * (12 - i);

   digit2 = total * 10 % 11;
   if (digit2 == 10) digit2 = 0;

   result = digit1.toString() + digit2.toString();
   return result;
}




function AcertaTexto(campo,espacos,tipo) {
   var objeto = eval("window.document.Form." + campo);
   var valor  = objeto.value.toLowerCase();
 /*
   ArrNome    = valor.split(" ");
   for ( var x=0; x<ArrNome.length; x++) {
      alert(ArrNome.join("*"));  }

   return;

*/

   var aux="",letra="";
   if ( objeto.value.length > 0 ) {
      if ( tipo == "AN" ) {
         for (var i=0;i<=valor.length-1;i++) {
            if ( ( valor.charCodeAt(i) == 32 ) || ( valor.charCodeAt(i) == 39 ) || ( valor.charCodeAt(i) >96 && valor.charCodeAt(i) <123 ) || ( valor.charCodeAt(i) >64 && valor.charCodeAt(i) <91 ) || ( valor.charCodeAt(i) >191 && valor.charCodeAt(i) < 256 ) || ( valor.charCodeAt(i) > 47 && valor.charCodeAt(i) < 58 ))
            aux=aux+valor.charAt(i);
         }
         valor=aux;
         aux="";
      }
      if ( tipo == "A" ) {
         for (var i=0;i<=valor.length-1;i++) {
            if ( ( valor.charCodeAt(i) == 32 ) || ( valor.charCodeAt(i) == 39 ) || ( valor.charCodeAt(i) >96 && valor.charCodeAt(i) <123 ) || ( valor.charCodeAt(i) >64 && valor.charCodeAt(i) <91 ) || ( valor.charCodeAt(i) >191 && valor.charCodeAt(i) < 256 ) )
            aux=aux+valor.charAt(i);
         }
         valor=aux;
         aux="";
      }
      for (var i=0;i<=valor.length-1;i++) {
         if (valor.charAt(i) != " ") {
            if ( i==0 || valor.charAt(i-1) == " " || ( valor.charAt(i-1) == "'" ) ) {
               if ( ( valor.substr(i-1,3) != " e " && valor.substr(i-1,4) != " da " && valor.substr(i-1,4) != " de " &&  valor.substr(i-1,7) != " xxiii " && valor.substr(i-1,4) != " di " && valor.substr(i-1,4) != " do "  &&  valor.substr(i-1,5) != " dos " && valor.substr(i-1,5) != " das " )  || ( valor.charAt(i-1) == "'" ) )
                  aux=aux+valor.charAt(i).toUpperCase();
               else
                  aux=aux+valor.charAt(i);
            }
            else
              aux=aux+valor.charAt(i);
         }
         else {
            if (valor.charAt(i+1) != " ")
               aux=aux+valor.charAt(i);
         }
     }
     valor=aux;
     aux="";
     if ( valor.charAt(0) == " " ) {
        aux=valor.substr(1,valor.length);
        valor=aux;
     }
     if ( valor.charAt(valor.length-1) == " " ) {
        aux=valor.substr(0,valor.length-1);
        valor=aux;
     }
     if ( valor.indexOf(" ") < espacos ) {
        alert("O "+ campo + " deve ter no mínimo 2 palavras.");
        objeto.focus();
        objeto.select();
     }
     else
        objeto.value=valor;
   }
}




function mudoucampo(campo) {
   var campocompara = eval("window.document.Form.h" + campo + ".value");
   var cepok        = eval("window.document.Form.CEP.value").replace("-","");
   if ( cepok.length == 8 && campocompara != "vazio" ) {
      alert('Este campo foi incluído pelo CEP e não deve ser alterado.\nVerifique o CEP e se necessário, faça a alteração.');
      window.document.Form.NrLogradouro.focus();
   }
}




function VerificaOrgExp() {
   var vAux = window.document.Form.OrgaoExpedidor.value.toUpperCase();
   vAux=vAux.replace("-RS","");
   vAux=vAux.replace(" RS","");
   vAux=vAux.replace("/RS","");
   vAux=vAux.replace("_RS","");
   vAux=vAux.replace("RS","");
   window.document.Form.OrgaoExpedidor.value = vAux;
}


function LocalizaEndereco() {
   var vAux = window.document.Form.CEP.value;
   cep      = vAux.replace("-","");
   if (cep.length == 8) {
      var result=window.open("../LocalizaEndereco.php?cep=" + cep,"Localizacao","dependent=true,width=1,height=1,scrollbars=0,toolbar=0,location=0,status=0,menubar=0,resizable=1");
      window.focus();
      return false;
   }
   else {
      alert("O CEP deve ser preenchido com 8 dígitos!");
      window.document.Form.CEP.focus();
      return true;
   }
}


function Esconde() {
   ultimo_menu.visibility="hidden";
}

function EscondeSelect() {
   if (NNx) {
      this.css2=document.getElementById("DivSelect2").style;
      this.css2.visibility='hidden';
    }
   if (IEx) {
       var thisspan2 = eval("window.document.all.DivSelect2.style");
       thisspan2.visibility='hidden';
   }
}

function EscondeDeficiente() {
   if (NNx) {
      this.css2=document.getElementById("DivSelect2").style;
      this.css2.visibility='visible';
    }
   if (IEx) {
       var thisspan2 = eval("window.document.all.DivSelect2.style");
       thisspan2.visibility='visible';
   }
   x1="DivDeficiente";
   if (NNx) {
      this.css=document.getElementById(x1).style;
      this.css.visibility='hidden';
    }
   if (IEx) {
     var thisspan = eval("window.document.all." + x1 + ".style");
     thisspan.visibility='hidden';
   }
}

function HotTipDeficiente() {
   if ( document.Form.Deficiente.selectedIndex == 0 ) {
      return false;
      }
   else {
   EscondeSelect();
   document.Form.Deficiente.selectedIndex = 0;
   ultimo_menu.visibility='hidden';
   x1="DivDeficiente";
   if (NNx) {
      this.css=document.getElementById(x1).style;
      this.css.visibility='visible';
    }
   if (IEx) {
     var thisspan = eval("window.document.all." + x1 + ".style");
     thisspan.visibility='visible';
   }
   }
}


function HotTip(campo) {
   ultimo_menu.visibility='hidden';
   ultimo_cab.color="black";
   x1="Div"+campo;
   x2="Cab"+campo;
   if (NNx) {
      this.css=document.getElementById(x1).style;
      this.cab=document.getElementById(x2).style;
      this.css.visibility='visible';
      this.cab.color="red";
      ultimo_menu=this.css;
      ultimo_cab =this.cab;
    }
   if (IEx) {
     var thisspan = eval("window.document.all." + x1 + ".style");
     var thiscab  = eval("window.document.all." + x2 + ".style");
     thisspan.visibility='visible';
     thiscab.color="red";
     ultimo_menu=thisspan;
     ultimo_cab =thiscab;
   }
}




function press(t1,t2,tam)
{
if (t1.value.length==tam)
    t2.focus();
}



function foco(campo)
{
campo2=eval("window.document.Form." + campo);
campo2.focus();
}


function Numerico(event)
{
    Tecla = event.which;
    if(Tecla == null)
    Tecla = event.keyCode;

    if(Tecla >57 || (Tecla > 32 && Tecla < 48))
        return false;
    return true;
}


function AlertaDeficiente2() {
if (document.Form.Deficiente.selectedIndex == 0) {
   window.document.Form.AtendimentoEspecial.selectedIndex = 0;
}
if (document.Form.Deficiente.selectedIndex == 1) {
   Def="___________\n\nA T E N Ç Ã O \n___________\n\n"
   + " O candidato que desejar concorrer às vagas reservadas à portadores de deficiência"
   + " deverá remeter à FAURGS - Setor de Concursos, Caixa Postal 15.039, CEP 91501-970,"
   + " Porto Alegre, RS, Atestado Médico, com indicação do número de inscrição do candidato"
   + " e atendendo às demais especificações constantes no item 4.4 do Edital, até 5 (cinco)"
   + " dias úteis após o término das inscrições\n\n\n"
   + " Caso você concorde clique em 'OK' caso contrário em 'CANCEL'\n";
var x=window.confirm(Def);
if (x)
return true;
else {
window.document.Form.Deficiente.selectedIndex = 0;
window.document.Form.AtendimentoEspecial.selectedIndex = 0;
}
}
}


function AlertaAtendimentoEspecial()  {
if (document.Form.Deficiente.selectedIndex == 0) {
   Def="___________\n\nA T E N Ç Ã O \n___________\n\n"
     + " Somente os candidatos que optarem pelas vagas para portadores de deficiência"
     + " poderão solicitar Atendimento Especial.\n";
alert(Def);
window.document.Form.AtendimentoEspecial.selectedIndex = 0;
}
}



/*
function AlertaAtendimentoEspecial()
{
if (document.Form.AtendimentoEspecial.selectedIndex == 1)
{
Def="\t\t\t___________\n\n";
Def=Def + "\t\t\tA T E N Ç Ã O \n";
Def=Def + "\t\t\t___________\n\n";
Def=Def + "O candidato que necessitar de algum atendimento especial  para  a  realização\n";
Def=Def + "das provas deverá solicitar POR ESCRITO,  à  FAURGS  -  Setor  de Concursos,\n";
Def=Def + "pessoalmente na Av. Bento Gonçalves, 9500, Prédio 43609, 3º andar, Campus do\n";
Def=Def + "Vale da Universidade Federal do Rio Grande do Sul, em Porto Alegre, RS, ou por\n";
Def=Def + "SEDEX, Caixa Postal 15.039, CEP 91.501-970, Porto Alegre, RS, até 05 (cinco)\n";
Def=Def + "dias úteis após o término das inscrições, para que sejam tomadas as providências\n";
Def=Def + "necessárias. O atendimento será feito na medida das possibilidades e levando em\n";
Def=Def + "consideração a razoabilidade do pedido.\n\n";
Def=Def + "Caso você concorde clique em 'OK' caso contrário em 'CANCEL'\n";
var x=window.confirm(Def);
if (x)
return true;
else
window.document.Form.AtendimentoEspecial.selectedIndex = 0;
}
}
*/


function DadosCampo(nomecampo,nomecorreto,obrigatorio,existe,tipo)
{
this.nomecampo = nomecampo;
this.nomecorreto = nomecorreto;
this.obrigatorio = obrigatorio;
this.existe = existe;
this.tipo = tipo;
}


function AlertaConferencia() {
var Campos    = new Array();

// "Nome do Campo","Nome correto","Obrigatorio","Existe","Tipo"

Campos[0]  = new DadosCampo("Nome",                "Nome do Candidato\t\t","Sim","","");
Campos[1]  = new DadosCampo("Nascimento",          "Data de Nascimento\t","Sim","","");
Campos[2]  = new DadosCampo("Identidade",          "Documento de Identidade\t","Sim","","");
Campos[3]  = new DadosCampo("OrgaoExpedidor",      "Orgão Expedidor\t\t","Sim","","");
Campos[4]  = new DadosCampo("UFOrgaoExpedidor",    "UF Orgao Expedidor\t","Sim","","");
Campos[5]  = new DadosCampo("CPF",                 "CPF\t\t\t","Sim","","");
Campos[6]  = new DadosCampo("Cargo",               "Cargo\t\t","Sim","","");
Campos[7]  = new DadosCampo("Local",               "Local da Prova\t\t","Sim","","");
Campos[8]  = new DadosCampo("Nacionalidade",       "Nacionalidade","Sim","","");
Campos[9]  = new DadosCampo("CEP",                 "CEP\t\t\t","Sim","","");
Campos[10] = new DadosCampo("Logradouro",          "Logradouro\t\t","Sim","","");
Campos[11] = new DadosCampo("NrLogradouro",        "Numero\t\t\t","Nao","","");
Campos[12] = new DadosCampo("Complemento",         "Complemento\t\t","Nao","","");
Campos[13] = new DadosCampo("Bairro",              "Bairro\t\t\t","Sim","","");
Campos[14] = new DadosCampo("Cidade",              "Cidade\t\t\t","Sim","","");
Campos[15] = new DadosCampo("UF",                  "UF Logradouro\t\t","Sim","","");
Campos[16] = new DadosCampo("TelefoneRes",         "Telefone Residencial\t","Nao","","");
Campos[17] = new DadosCampo("TelefoneCel",         "Telefone Celular\t\t","Nao","","");
Campos[18] = new DadosCampo("TelefoneCom",         "Telefone Comercial\t\t","Nao","","");
Campos[19] = new DadosCampo("TelefoneRec",         "Telefone Recados\t\t","Nao","","");
Campos[20] = new DadosCampo("Email",               "Email\t\t\t","Nao","","");
Campos[21] = new DadosCampo("Idioma",              "Idioma\t\t\t","Sim","","");
Campos[22] = new DadosCampo("Sexo",                "Sexo\t\t\t","Sim","","");
Campos[23] = new DadosCampo("Deficiente",          "Deficiente\t\t","Sim","","");
Campos[24] = new DadosCampo("Atendimento Especial","Atendimento Especial\t","Sim","","");
Campos[25] = new DadosCampo("Casado",              "Casado\t\t\t","Sim","","");
Campos[26] = new DadosCampo("ServidorPublico",     "Servidor Público\t\t","Sim","","");
Campos[27] = new DadosCampo("Regiao",              "Local da Vaga\t\t","Sim","","");
Campos[28] = new DadosCampo("Nome2",               "Qualquer\t\t\t","Sim","","");

var MsgAlertaObrigatorio = "";
var MsgAlertaConferencia = "";

for (x=0; x<Campos.length; x++)  {
  for (i=0; i<document.Form.elements.length; i++)  {
      if (Campos[x].nomecampo == document.Form.elements[i].name)   {
             Campos[x].tipo  =document.Form.elements[i].type;
             i=document.Form.elements.length;
             var valorcampo="";
             switch ( Campos[x].tipo ) {
             case "text":
                valorcampo=eval("document.Form." + Campos[x].nomecampo + ".value");
             break;
             case "radio":
                if ( document.Form.Cargo.value != undefined && document.Form.Cargo.checked == true ) {
                   valorcampo=eval("document.Form.Cargo" + document.Form.Cargo.value + ".value");
                }
                else {
                   var camporadio=eval("document.Form." + Campos[x].nomecampo);
                   for (z=0 ; z < camporadio.length; z++) {
                      if (camporadio[z].checked == true)  {
                         valorcampo=eval("document.Form.Cargo" + camporadio[z].value + ".value");
                         z=camporadio.length;
                      }
                   }
                }
                break;
                case "select-one":
                   valorcampo=eval("document.Form." + Campos[x].nomecampo + "[document.Form." + Campos[x].nomecampo + ".selectedIndex].text");
                break;
                case "hidden":
                   valorcampo=eval("document.Form." + Campos[x].nomecampo + ".value");
                break;
                default:
                   alert("Este objeto : " + Campos[x].tipo + " não esta relacionado no case.");
                   return false;
                   break;
             }
             if ( Campos[x].obrigatorio == "Sim" && valorcampo.length < 1 )
                MsgAlertaObrigatorio = MsgAlertaObrigatorio + Campos[x].nomecorreto + "\n";
                MsgAlertaConferencia = MsgAlertaConferencia + Campos[x].nomecorreto + ":\t"+ valorcampo + "\n";
             }
      }
  }

if ( MsgAlertaObrigatorio != "" )  {
   alert("As informações abaixo são obrigatórias:\n\n" + MsgAlertaObrigatorio);
   return false;
}
else if (document.Form.Concordo.selectedIndex == 0) {
        alert("Por favor leia o REQUERIMENTO e assinale a opção CONCORDO para prosseguir.")
        return false;
      }
      else  {
         var Msg="Confira as informações abaixo, para prosseguir clique em OK,\npara alterar clique em CANCELAR.\n\n\n";
         var x=window.confirm(Msg + MsgAlertaConferencia);
         if (x)
           return true;
         else
           return false;
      }
}
