        function mostrarOcultarTablas(idMostrar, idControl){                     
            elem = document.getElementById(idMostrar);
            if (document.getElementById(idControl).checked){
                elem.style.display='block';               
            }else{
                elem.style.display='none';
            }
        }
        
        /* function validarExistePresolicitud_CallBack(response){                          
                   
                  if (response.error != null){
                      //alert("Se presentó un error ");
                      return;
                  }
                  target="ctl00_ContentPlaceHolder1_lblMensaje";
                  document.getElementById(target).innerHTML="";   
                             
                  if (response.value==-1){ 
                        document.getElementById(target).innerHTML = "<font color='#FF0000'>Verifique su n\xfamero de CI.</font>";
                        return;                  
                  }
                  if (response.value>0){ 
                        document.getElementById(target).innerHTML = "<font color='#FF0000'>Ya existe una presolicitud para la CI ingresada.</font>";
                        return; 
                  }                     
                             
          }
          */
          function mostrarOcultarCony(){                                 
                elem = document.getElementById('tblCony');
                if (document.getElementById('ctl00_ContentPlaceHolder1_chkConyuge').checked){
                    elem.style.display='block';               
                }else{
                    elem.style.display='none';
                }  
           }
           
          function msgError_CallBack(response){                      
                  if (response.error != null){
                      //alert("Se presentó un error ");
                      return;
                  }
                  target="ctl00_ContentPlaceHolder1_lblMensaje";
                  document.getElementById(target).innerHTML="";   
                             
                  document.getElementById(target).innerHTML = "<font color='#FF0000'>" + response.value + "</font>";
                  return;                 
          }
          
          function mostrarXOtros(id_combo, id_txt_otros){
                valor = document.getElementById(id_combo).value;
                elem = document.getElementById(id_txt_otros);                
                if (valor=='Otros') {                    
                    elem.style.display='block'; 
                }else{                    
                    elem.style.display='none';              
                }
          }
          
          function mostrarOtros(pag){                        
            if (pag=='form_mi'){
                mostrarXOtros('cbo_convive', 'txt_convive');
                mostrarXOtros('cbo_vivienda_busca', 'txt_vivienda_busca');
                mostrarXOtros('cbo_trabajo_actual', 'txt_trabajo_actual');                
                mostrarXOtros('cbo_relacion_1', 'txt_relacion_1');
                mostrarXOtros('cbo_relacion_2', 'txt_relacion_2');
                mostrarXOtros('cbo_relacion_3', 'txt_relacion_3');
                mostrarXOtros('cbo_relacion_4', 'txt_relacion_4');
                mostrarXOtros('cbo_relacion_5', 'txt_relacion_5');              
            }            

            if (pag=='form_en'){
//                mostrarXOtros('cbo_convive', 'txt_convive');
//                mostrarXOtros('cbo_vivienda_busca', 'txt_vivienda_busca');
//                mostrarXOtros('cbo_trabajo_actual', 'txt_trabajo_actual');                
//                mostrarXOtros('cbo_relacion_1', 'txt_relacion_1');
//                mostrarXOtros('cbo_relacion_2', 'txt_relacion_2');
//                mostrarXOtros('cbo_relacion_3', 'txt_relacion_3');
//                mostrarXOtros('cbo_relacion_4', 'txt_relacion_4');
//                mostrarXOtros('cbo_relacion_5', 'txt_relacion_5');              
            } 



          }
        
        /*  
          function mostrarCierre(id_combo){
            valor = document.getElementById(id_combo).value;           
            elem = document.getElementById('div_cierre');
            elem.innerHTML=""; 
            if (valor=='SI'){
                elem.style.display='block';
                elem.innerHTML = "De acuerdo a la informaci\xf3n que nos acaba de suministrar, usted podr\xeda calificar para acceder a la oferta de inmuebles de la Agencia Nacional de Vivienda. żLe interesa conocer nuestra oferta de inmubles?";
            }else{
                if (valor=='NO'){
                    elem.style.display='block';
                    elem.innerHTML = "De acuerdo a la informaci\xf3n que nos acaba de suministrar, en esta instancia no disponemos de una oferta adecuada para Usted. Hemos guardado sus datos para comunicarnos con Usted en caso de pr\xf3ximas oportunidades."
                }else{
                    elem.style.display='none';
                }
            }
          }*/
        
        function abrirPagina_CallBack(response){                      
                  if (response.error != null){
                      //alert("Se presentó un error ");
                      return;
                  }
                  var target="content";
                  document.getElementById(target).innerHTML="";                                
                  document.getElementById(target).innerHTML = response.value;
                  return;                                   
          }
          
