<!--
//Função Transparencia efeito Imagem
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

/* object - image to be faded (actual object, not name);
 * destop - destination transparency level (ie 80, for mostly solid)
 * rate   - time in milliseconds between trasparency changes (best under 100)
 * delta  - amount of change each time (ie 5, for 5% change in transparency)
 */

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }

    clearTimeout(nereidFadeTimers[object.sourceIndex]);

    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

///Evita seeção de Texto
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}



////Pula Automatico Campo
 function pular(){
     if(window.event.srcElement.type == 'text'){
       var ele = window.event.srcElement;
       var index = ele.sourceIndex;
       if(ele.value.length == ele.getAttribute('maxlength')){
         document.all.item(index + 1).focus();
       }
     }
   }

   document.onkeyup = pular;

//MÁSCARA DE VALORES

function txtBoxFormat(objeto, sMask, evtKeyPress) {
    var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;


if(document.all) { // Internet Explorer
    nTecla = evtKeyPress.keyCode;
} else if(document.layers) { // Nestcape
    nTecla = evtKeyPress.which;
} else {
    nTecla = evtKeyPress.which;
    if (nTecla == 8) {
        return true;
    }
}

    sValue = objeto.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( ")", "" );
    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) == "/") || (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++;
    }

    objeto.value = sCod;

    if (nTecla != 8) { // backspace
      if (sMask.charAt(i-1) == "9") { // apenas números...
        return ((nTecla > 47) && (nTecla < 58)); }
      else { // qualquer caracter...
        return true;
      }
    }
    else {
      return true;
    }
  }
///Função Valida
function valida(Form){
  if (isBlank(Form.nome)){
    alert("Preencha o campo \"Texto\".");
    return false;
  }
  if (isBlank(theForm.email)){
    alert("Preencha o campo \"E-mail\".");
    return false;
  }
  else if (!isMail(theForm.email)) {
    alert("Formato incorreto de e-mail.");
    return false;
  }
  if (maxLen(theForm.tamMaximo, 300)){
    alert("Preencha o campo \"Tamanho máximo\"\ncom no máximo 300 caracteres.");
    return false;
  }
  if (minLen(theForm.tamMinimo, 20)){
    alert("Preencha o campo \"Tamanho mínimo\"\ncom pelo menos 20 caracteres.");
    return false;
  }
  if (!isNumber(theForm.valNumerico)){
    alert("O campo \"Valor numérico\"\nsó pode ser preenchido com números.");
    return false;
  }
  if (!isCPF(theForm.CPF)){
    alert("Digite um CPF válido.");
    return false;
  }
  if (isSelectedZero(theForm.opcao)){
    alert("Selecione uma das opções.");
    return false;
  }
  return true;
}

////Mensagem Status

function Msg(msgStr)  { //v3.0
	status=msgStr; document.Msg_returnValue = true;
}


//NAVEGAÇÃO

function rs()
{
if (parent.window.screen) {
var aw = screen.availWidth;
var ah = screen.availHeight;
parent.window.moveTo(0, 0);
parent.window.resizeTo(aw, ah);}
}
function gothere(mname)
{
var thisform = mname
 if (thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value != "nolink") location.href=thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value
}

// FUNÇÃO PARA EVITAR ERROS DE SCRIPT;

  function stopError() {
   return true;
}
  window.onerror = stopError;


// FUNÇÃO PARA CHAMAR UMA NOVA JANELA;

  function openWindow(jan) { 
   window.open(jan,"window",'width=340,height=240,top=50,left=50,scrollbars=no,scrollbars=no,status=no');

}
//FUNÇÃO IMAGEM

	function Img(img,pos) {
         document.images[pos].src = img + '.jpg';}




// FUNÇÃO PARA ADICIONAR AOS FAVORITOS;

  function Favoritos(Url,Tit) {
   window.external.AddFavorite(Url,Tit);
}



//FUNÇÃo DETALHES

	function detalhe(url) {
		 var win = null;
		 win = window.open(url,'_new','width=660,height=490,left=250,top=50,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no');
}

// FUNÇÃO PARA ABRIR UMA NOVA JANELA;

function Nova_Janela7() {
   window.open('autori.htm','janela','toolbar=0,location=0,scroll=no,width=350,height=330,top=80,left=100,resizable=0');}


function Nova_Janela6() {
   window.open('autori.htm','janela','toolbar=0,location=0,scroll=no,width=350,height=130,top=80,left=100,resizable=0');}


function Nova_Janela5() {
   window.open('sessao.htm','janela','toolbar=0,location=0,scroll=no,width=550,height=150,top=80,left=100,resizable=0');}


function Nova_Janela4() {
   window.open('anuncio.htm','janela','toolbar=0,location=0,scroll=no,width=550,height=150,top=80,left=100,resizable=0');}


function Nova_Janela3() {
   window.open('capa.htm','janela','toolbar=0,location=0,scroll=no,width=550,height=150,top=80,left=100,resizable=0');}


function Nova_Janela2() {
   window.open('cad.asp','janela','toolbar=0,location=0,scroll=no,width=550,height=350,top=80,left=100,resizable=0');}

 
function Nova_Janela1() {
   window.open('busca1.asp','janela','toolbar=0,location=0,scroll=no,width=550,height=150,top=80,left=100,resizable=0');}

function Nova_Janela() {
   window.open('tab_anu.asp','janela','toolbar=0,location=0,scroll=no,width=300,height=280,top=80,left=100,resizable=0');}

// SCRIPT MENU;

  function Over(Obj,Txt,Descr,Img,Link) {
   Obj.style.cursor = 'hand';
   Obj.style.border = '1 solid #000000';
   Obj.style.background = '#F0F0F0';
   Obj.title = Descr;
//   Img.style.display = '';
   Link.style.color = '#00008B';
   window.status = Txt;

}

  function Out(Obj,Img,Link) {
   Obj.style.cursor = 'default';
   Obj.style.border = 'rgb(200,204,51)';
   Obj.style.background = 'rgb(153,204,51)';
//   Img.style.display = 'none';
   Link.style.color = '#000000';
   window.status = '';

}

  function Des(Tp,Url) {
   if (Tp == 'l') {
       if (Url == '') {
           return false;}
       else {
           Url += '.html';
           window.open(Url,'p');}}
   else if (Tp == 'e') {
            if (Url == '') {
                return false;}
            else {
                window.location = Url;}}
   else if (Tp == 'i') {
            Imprimir(Url);}
   else if (Tp == 'f') {
            if (Url == '0') {
                Favoritos('http://','Pousada Rêmora');}}
}

// FUNÇÃO DO MENU COMBO;

  function Combo_URL() {
   var URL = document.frmCombo.cmbURL.options[document.frmCombo.cmbURL.selectedIndex].value;
   if (URL == '0') {
       return false;}
   else {
   window.open(URL,'me');
   frmCombo.cmbURL.selectedIndex = 0;}
}

// FUNÇÃO PARA IMPRIMIR UM DOCUMENTO;

  function Imprimir(Alvo) {
   window.parent.Alvo.focus();
   window.parent.Alvo.print();
}


///Conta caracter textarea
function vigiaTextarea()
{
    limite = 50;
    myTextArea = document.forms[0].txt_mens;
    myTextField = document.forms[0].contagem;

    if (myTextArea.value.length > limite) {
        myTextArea.value = myTextArea.value.substr(0, (myTextArea.value.length - 1));
    } else {
        myTextField.value=(limite - myTextArea.value.length);
    }
}

//FUNÇÃO SEJA CRIATIVO
function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert("A WCT - Tecnologia & Consultoria em WEB adverte:\nPara maiores informações ligue:+55(51)\n3348-7862 \n 8433-6646 - Oi\n 9108-9454 - Claro\n 9745-5433 - Vivo \n 8273-6572 - Tim \n 7812-2035 - Nextel \n 643*11506 - Rádio Nextel.\nAcesse www.WCT.eti.br ou MSN: wct_web@hotmail.com!\nObrigado.\nThe WCT - Technology & Consulting WEB warns: \nFor more information call:+55(51) \n3348-7862 \n 8433-6646 - Oi\n 9108-9454 - Claro\n 9745-5433 - Vivo \n8273-6572 - Tim \n 7812-2035 - Nextel \n 643*11506 - Rádio Nextel \nSign www.WCT.eti.br or MSN: @ wct_web hotmail.com!\nThanks");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("A WCT - Tecnologia & Consultoria em WEB adverte:\nPara maiores informações ligue:+55(51)\n3348-7862 \n 8433-6646 - Oi\n 9108-9454 - Claro\n 9745-5433 - Vivo \n 8273-6572 - Tim \n 7812-2035 - Nextel \n 643*11506 - Rádio Nextel.\nAcesse www.WCT.eti.br ou MSN: wct_web@hotmail.com!\nObrigado.\nThe WCT - Technology & Consulting WEB warns: \nFor more information call:+55(51) \n3348-7862 \n 8433-6646 - Oi\n 9108-9454 - Claro\n 9745-5433 - Vivo \n8273-6572 - Tim \n 7812-2035 - Nextel \n 643*11506 - Rádio Nextel \nSign www.WCT.eti.br or MSN: @ wct_web hotmail.com!\nThanks");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;



//FUNÇÃO JANELA NOVA

	function Mostra(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=640,height=480,top=10,left=50,resizable=0');}

        function Mostrar(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=800,height=600,top=10,left=50,resizable=0');}
 function Plano(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=900,height=400,top=10,left=50,resizable=0');}

        function Tela(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=800,height=600,top=10,left=20,resizable=0');}


        function Janela1(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=550,height=400,top=10,left=50,resizable=0');}

	function Janela2(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=580,height=480,top=10,left=150,resizable=0');}

	function Janela3(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=500,height=250,top=10,left=150,resizable=0');}

	function Janela4(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=390,height=300,top=10,left=150,resizable=0');}

	function Janela5(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=500,height=400,top=10,left=150,resizable=0');}
	
	function Janela6(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=369,height=275,top=10,left=150,resizable=0');}

   	function Janela7(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=660,height=350,top=10,left=50,resizable=0');}

	function Janela8(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=250,height=120,top=10,left=50,resizable=0');}
	
	function Janela9(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=620,height=520,top=10,left=150,resizable=0');}

	function site(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=580,height=480,top=10,left=150,resizable=0');}

	function monitor(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=160,height=160,top=10,left=50,resizable=0');}

	function cd(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=160,height=160,top=10,left=50,resizable=0');}

	function hd(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=160,height=160,top=10,left=50,resizable=0');}

    function soft(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=300,height=120,top=10,left=50,resizable=0');}

    function template(URL) {
  	window.open(URL,'janela','toolbar=0,location=0,scrollbars=1,width=1280,height=880,top=0,left=0,resizable=0');}


//FUNÇÃO JANELA POP

   function Max() {
   window.open('anuncio.htm','win','width=400,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}


//FUNÇÃO STATUS

  function Eins()

    {window.status = "                  W C T - Tecnologia & Consultoria em WEB - Sites Institucionais, Corporativos, e-Business, e-Commerce, Hospedagens, Manutenção!  ";

    setTimeout("Zwei()",60);

    }

   Eins();

///SCROLL

function scroll()

	{

		document.all.ultimas.scrollTop = document.all.ultimas.scrollTop + 3



		if (document.all.ultimas.scrollTop >= document.all.ultimas.scrollHeight-document.all.ultimas.style.height.replace('px', ''))

		{

			document.all.ultimas.scrollTop = 0

		}

	}



	function iniciaScroll()

	{

		IntervaloUltimas=setInterval('scroll()', 100)

	}

												

	function paraScroll()

	{

		clearInterval(IntervaloUltimas)

	}

												

	var altura = 0

	iniciaScroll()


// FUNÇÃO PARA EXIBIR DATA;

  function Data() {

   Hoje = new Date();

   var DiaMes = Hoje.getDate();
   var Dia = Hoje.getDay() + 1;
   var Mes = Hoje.getMonth() + 1;
   var Ano = Hoje.getFullYear();

   if (Dia == 1) Dia = "Domingo";
   if (Dia == 2) Dia = "Segunda - feira";
   if (Dia == 3) Dia = "Terça - feira";
   if (Dia == 4) Dia = "Quarta - feira";
   if (Dia == 5) Dia = "Quinta - feira";
   if (Dia == 6) Dia = "Sexta - feira";
   if (Dia == 7) Dia = "Sábado";

   if (Mes == 1) Mes = "Janeiro";
   if (Mes == 2) Mes = "Fevereiro";
   if (Mes == 3) Mes = "Março";
   if (Mes == 4) Mes = "Abril";
   if (Mes == 5) Mes = "Maio";
   if (Mes == 6) Mes = "Junho";
   if (Mes == 7) Mes = "Julho";
   if (Mes == 8) Mes = "Agosto";
   if (Mes == 9) Mes = "Setembro";
   if (Mes == 10) Mes = "Outubro";
   if (Mes == 11) Mes = "Novembro";
   if (Mes == 12) Mes = "Dezembro";

   var DataC = ("Porto Alegre/RS" + ", " + DiaMes + " de " + Mes + " de " + Ano + "&nbsp;&nbsp;" + "-" + "&nbsp;&nbsp;"+ Dia);
   document.write(DataC);

}

///Troca de campo
    isNS = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
    isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;

    function sendForm(valSubmitForm) {

        // ********* Identificação *******************************
       
        // ********** Tipo de conta ***************************
        if (document.inscricao_add.pessoa[0].checked == false && document.inscricao_add.pessoa[1].checked == false) {
            alert ("É necessário escolher o tipo de Pessoa.")
            return;
        }
        if (document.inscricao_add.pessoa[1].checked == true) { // **** Pessoa Jurídica
            if (document.inscricao_add.name_business.value == "") {
                alert ("Preencha o campo: NOME EMPRESARIAL.")
                document.inscricao_add.name_business.focus();
                return;
            }
            if (document.inscricao_add.name_fantasy.value == "") {
                alert ("Preencha o campo: TÍTULO.")
                document.inscricao_add.name_fantasy.focus();
                return;
            }
            if (document.inscricao_add.num_cnpj.value == "") {
                alert ("Preencha o campo: CNPJ.")
                document.inscricao_add.num_cnpj.focus();
                return;
            }
        }
        // ****************************************************

        // ********** Dados Pessoais **************************
        if (document.inscricao_add.name.value == "") {
            alert ("Preencha o campo: NOME.")
            document.inscricao_add.name.focus();
            return;
        }
        
        // ****************************************************


        //if (isIE) window.external.AutoCompleteSaveForm(ClientRegistryBegin);
        document.inscricao_add.submitForm.value = valSubmitForm;
        document.inscricao_add.submit();
    }

    function mostraJan(parametro) {
	if (parametro == '1') {
	    if (isIE) {
                document.all.Layer1.style.visibility = "visible";
                document.all.LayerSel.style.visibility = "hidden";
                //document.all.LayerSel2.style.visibility = "hidden";
            } else if (isNS) {
                document.getElementById("Layer1").style.visibility = "visible";
                document.getElementById("LayerSel").style.visibility = "hidden";
                //document.getElementById("LayerSel2").style.visibility = "hidden";
            }
	} else {
            if (isIE) {
                document.all.Layer1.style.visibility = "hidden";
                document.all.LayerSel.style.visibility = "visible";
                //document.all.LayerSel2.style.visibility = "visible";
            } else if (isNS) {
                document.getElementById("Layer1").style.visibility = "hidden";
                document.getElementById("LayerSel").style.visibility = "visible";
                //document.getElementById("LayerSel2").style.visibility = "visible";
            }
        }
    }

    hoje = new Date();
    d_hoje = hoje.getDate();
    m_hoje = hoje.getMonth()+1;
    y_hoje = hoje.getYear();
    function verificaIdade(dia, mes, ano) {
        ver_dia = eval("document.forms[0]."+dia+".value")
        ver_mes = eval("document.forms[0]."+mes+".value")
        ver_ano = eval("document.forms[0]."+ano+".value")
        if (ver_dia != "" && ver_mes != "" && ver_ano != "") {
            if ((y_hoje - ver_ano) < 18) {
                SwitchMenu("responsavel");
            } else {
                if ((y_hoje - ver_ano) == 18) {
                    if ((ver_mes - m_hoje) > 1) {
                        SwitchMenu("responsavel");
                    } else {
                        SwitchMenu("nresponsavel");
                    }
                } else {
                    SwitchMenu("nresponsavel");
                }
            }
        }
    }

    function SwitchMenu(obj){
        if(document.getElementById){
            var el = document.getElementById("juridica");
            var elResp = document.getElementById("responsavel");
            var elCorr = document.getElementById("correspondencia");
            var elEspec = document.getElementById("especificacao");
            var ar = document.getElementById("masterdiv").getElementsByTagName("span");
            if (obj == "juridica") {
                if (el.style.display != "block"){
                    for (var i=0; i < ar.length; i++){
                        if (ar[i].className=="submenu")
                            ar[i].style.display = "none";
                    }
                    el.style.display = "block";
                }
            } else if (obj == "fisica") {
                el.style.display = "none";
            }
            if (obj == "responsavel") {
                if (elResp.style.display != "block"){
                    for (var i=0; i < ar.length; i++){
                        if (ar[i].className=="submenu")
                            ar[i].style.display = "none";
                    }
                    elResp.style.display = "block";
                }
            } else if (obj == "nresponsavel") {
                elResp.style.display = "none";
            }
            if (obj == "correspondencia") {
                if (elCorr.style.display != "block"){
                    for (var i=0; i < ar.length; i++){
                        if (ar[i].className=="submenu")
                            ar[i].style.display = "none";
                    }
                    elCorr.style.display = "block";
                }
            } else if (obj == "ncorrespondencia") {
                elCorr.style.display = "none";
            }
            if (obj == "especificacao") {
                cod_activity = document.forms[0].cod_activity.options[document.forms[0].cod_activity.selectedIndex].value

                // **************************************************************************
                // *************************** Títulos **************************************
                // **************************************************************************
                var elTituloEspec = document.getElementById("tituloEspec");
                var elTituloProduto = document.getElementById("tituloProduto");
                var elTituloServico = document.getElementById("tituloServico");
                var elTituloEspecializacao = document.getElementById("tituloEspecializacao");
                var elTituloEspec = document.getElementById("tituloEspec");

                elTituloEspec.style.display = "none";
                elTituloProduto.style.display = "none";
                elTituloServico.style.display = "none";
                elTituloEspecializacao.style.display = "none";

                if (",49,3,50,15,25,26,27,31,45,46,48,".indexOf(','+cod_activity+',') >= 0) {
                    if (elTituloEspec.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elTituloEspec.style.display = "block";
                    }
                }
                if (",7,51,".indexOf(','+cod_activity+',') >= 0) {
                    if (elTituloProduto.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elTituloProduto.style.display = "block";
                    }
                }
                if (",52,".indexOf(','+cod_activity+',') >= 0) {
                    if (elTituloServico.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elTituloServico.style.display = "block";
                    }
                }
                if (",39,".indexOf(','+cod_activity+',') >= 0) {
                    if (elTituloEspecializacao.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elTituloEspecializacao.style.display = "block";
                    }
                }
                // **************************************************************************
                // ************************* Campos *****************************************
                // **************************************************************************
                var elSelEspec = document.getElementById("selEspec");
                var elSelEducacao = document.getElementById("selEducacao");
                var elSelInformatica = document.getElementById("selInformatica");
                var elSelInternet = document.getElementById("selInternet");
                var elSelSaude = document.getElementById("selSaude");

                elSelEspec.style.display = "none";
                elSelEducacao.style.display = "none";
                elSelInformatica.style.display = "none";
                elSelInternet.style.display = "none";
                elSelSaude.style.display = "none";

                if (",49,3,50,25,31,45,46,48,51,52,7,".indexOf(','+cod_activity+',') >= 0) {
                    if (elSelEspec.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elSelEspec.style.display = "block";
                    }
                }
                if (",15,".indexOf(','+cod_activity+',') >= 0) {
                    if (elSelEducacao.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elSelEducacao.style.display = "block";
                    }
                }
                if (",26,".indexOf(','+cod_activity+',') >= 0) {
                    if (elSelInformatica.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elSelInformatica.style.display = "block";
                    }
                }
                if (",27,".indexOf(','+cod_activity+',') >= 0) {
                    if (elSelInternet.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elSelInternet.style.display = "block";
                    }
                }
                if (",39,".indexOf(','+cod_activity+',') >= 0) {
                    if (elSelSaude.style.display != "block"){
                        for (var i=0; i < ar.length; i++){
                            if (ar[i].className=="submenu")
                                ar[i].style.display = "none";
                        }
                        elSelSaude.style.display = "block";
                    }
                }

                if (elEspec.style.display != "block"){
                    for (var i=0; i < ar.length; i++){
                        if (ar[i].className=="submenu")
                            ar[i].style.display = "none";
                    }
                    elEspec.style.display = "block";
                }
            } else if (obj == "nespecificacao") {
                elEspec.style.display = "none";
            }
        }
    }

    function copyEnd() {
        if (document.forms[0].chkCopy[0].checked == true) {
            document.forms[0].name_address_c.value = document.forms[0].name_address.value;
            document.forms[0].num_address_c.value = document.forms[0].num_address.value;
            document.forms[0].name_address_complement_c.value = document.forms[0].name_address_complement.value;
            document.forms[0].name_city_district_c.value = document.forms[0].name_city_district.value;
            document.forms[0].cod_zipcode_c.value = document.forms[0].cod_zipcode.value;
            document.forms[0].name_city_c.value = document.forms[0].name_city.value;
            document.forms[0].cod_state_c.value = document.forms[0].cod_state.value;
        } else {
            document.forms[0].name_address_c.value = "";
            document.forms[0].num_address_c.value = "";
            document.forms[0].name_address_complement_c.value = "";
            document.forms[0].name_city_district_c.value = "";
            document.forms[0].cod_zipcode_c.value = "";
            document.forms[0].name_city_c.value = "";
            document.forms[0].cod_state_c.value = "";
        }
    }

//-->

