
<HTML>
<HEAD>
 <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10;"/> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
 
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="title" content="arba">
    <meta name="DC.title" content="arba">
    <meta http-equiv="title" content="arba">
    <meta http-equiv="keywords" content="arba" >
    <meta name="keywords" content="arba">
   
    <meta name="resource-type" content="document"/>
    <meta name="robots" content="all"/>
    <meta name="revisit" content="2 days"/>
    <meta name="revisit-after" content="2 days"/>
    <meta name="author" content="arba"/>
    <meta name="company" content="cc-aa" />
    <meta name="classification" content="web"/>
    <meta name="rating" content="general"/>
    <meta name="language" content="es" />
    <meta name="distribution" content="global"/>
    <meta name="geo.placename" content="Buenos Aires, Argentina"/>
    <meta name="geo.region" content="AR"/>
        
    <title>ARBA | Agencia de Recaudación de la Provincia de Buenos Aires</title>
    <!--Let browser know website is optimized for mobile-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
	

    <link href="/Recursos/lib/bootstrap/bootstrap-4.0.0-dist/css/bootstrap-theme-Arba.min.css" rel="stylesheet" media="all" />
    <link href="/Recursos/lib/plantillas/bootstrap-4.0.0-dist-Arba.min.css" rel="stylesheet" media="all" />
	<link href="/Recursos/css/encuestas.css" rel="stylesheet" media="all" />
 
    <link href="/Recursos/lib/scrollUp/scrollUp.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="/Recursos/Plantillas/ggti.css" rel="stylesheet" media="all" />
    <script type="text/javascript" src="/Recursos/lib/jQuery/jquery-3.4.1/jquery-3.4.1.min.js"> </script>
    <script  src="/Recursos/lib/jQuery/jquery-3.4.1/jquery-3.4.1.slim.min.js"></script>
    <script type="text/javascript" src="/Recursos/js/jquery-ui/js/jquery.js"></script>
	
    <script type="text/javascript" src="/Recursos/lib/popper/popper-js-1.16.0/popper.min.js" ></script>



  <script type="text/javascript" src="/Recursos/lib/bootstrap/bootstrap-4.0.0-dist/js/bootstrap.min.js"></script>
  <link href="/Recursos/lib/font-awesome/fontawesome-6.6.0/css/all.css" rel="stylesheet"/> 
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">

    <!--JS SELECT 2-->
    <!--select 2 css-->
    <link href="/Recursos/lib/select2/select2-4.0.3/css/select2.min.css" rel="stylesheet"/>
    <!--select 2 js-->
    <script src="/Recursos/lib/select2/select2-4.0.3/js/select2.full.min.js"></script>
    <script src="/Recursos/lib/select2/select2-4.0.3/js/i18n/es.js"></script>
	<link href="paginate.css" rel="stylesheet"/>
	
<script>
//$(function() { $('input, textarea').placeholder();});
</script>

<script type="text/javascript">

	if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
  	var msViewportStyle = document.createElement('style')
  	msViewportStyle.appendChild(
  	    document.createTextNode(
  	        '@-ms-viewport{width:auto!important}'
  	        )
  	    )
  	document.head.appendChild(msViewportStyle)
	}
</script>

<script>
    $(document).ready(function(){

        });
    /*scrollup subir*/
    jQuery( document ).ready(function( $ ) {
        $(window).scroll(function(){
            if ($(this).scrollTop() > 100) {
                $('.scrollup').fadeIn();
            } else {
                $('.scrollup').fadeOut();
            }
        });

        $('.scrollup').click(function(){
            $("html, body").animate({ scrollTop: 0 }, 600);
            return false;
        });

	}); 

</script>

<script type="text/javascript">

	$(document).ready(function() {

  	for(var i=0; i < frmDatos.elements.length; i++){
  	    var e = frmDatos.elements[i];

  	    if (e.nodeName == "TEXTAREA") {
  //	    	$("#"+e.idtextarea).ckeditor(config);
  	    }
  	    wClase = e.className;

  	    if (wClase.indexOf("COND") > -1) {
  	    	wClaseCOND = wClase.substring(wClase.indexOf("COND"));
  	    	if (wClaseCOND.indexOf(" ") > -1) {
  	    		wClaseCOND = wClaseCOND.substring(1, wClaseCOND.indexOf("COND") - 1);
  	    	}
  	    	$("."+wClaseCOND).css('background-color', '#D8D8D8');
  	    	$("."+wClaseCOND).attr('disabled', 'disabled');
  	    }	
  //	    console.log(e.name+"="+e.value);
  	}

  });

</script>



</HEAD>

		<!--encabezado sin SSO -->
			<body class="bd_aplicaciones"> 
		    	<nav class="navbar navbar-expand-lg navApps fixed-top bg-primary shadow-none">
					<a  title="ARBA Agencia de Recaudaci&oacute;n de la Provincia de Buenos Aires" class="navbar-brand marcaApp" href="https://www.arba.gov.ar/" target="_top">
						<img class="img-fluid" alt="Gobierno de la Provincia de Buenos Aires" src="/Recursos/Img/logoARBA-bl.svg">
					</a>
		        </nav>
		 

<div class="aplicacion-header">

 </div>	



<!--Nombre y descripcion de la encuesta-->

	<div class="container-fluid no-gutters p-0"> 

      	<div class="page-header py-5 m-0 shadow">
			<!--<div class="row justify-content-start">
				<div class="col-auto resaltado py-1">
					<i class="bi bi-clipboard2-check ml-5 my-0" style="font-size:2.4rem;"></i> <span class="h2 pl-2 mr-5"></span>
				</div>
			</div>-->
	
			<div class="row justify-content-center">
				<div class="col-10 col-xl-8 col-xxl-7">
						<h1 class="mt-3 font-weight-lighter"><p>Carg&aacute; tu CV</p>
</h1>
				</div>
				
				
			
				<div class="col-10 col-xl-8 col-xxl-7">
					<h2></h2>
				
					 <p><hr />
<p>&nbsp;</p>
</p>
				</div>
			</div>
       	</div>

		 <div class="row justify-content-center">
			<div class="col-11 col-sm-10 col-xl-8 col-xxl-7  small my-4 text-right">
				<p >Referencias: 
					<span class="h5 text-danger mt-3 ">*</span>  Datos obligatorios / 	
				    <span class="text-danger mt-3 "> <strong>^</strong></span>  Preguntas condicionales
				</p>
			</div>
		</div><!--FIN re-->

		<div class="row justify-content-center">
    		<div class="col-11 col-sm-10 col-xl-8 col-xxl-7"> 
				<FORM name="frmDatos" method="post" action="Enviar_Encuesta.asp" onSubmit="return validarEncuesta(this)" >
					<!-- NO AGREGAR CAMPOS HIDDEN- En caso de agregarse codificar en 
						ENVIAR_ENCUESTA -->
					

						<!--HAY PREGUNTAS ASOCIADAS -->
						<div class="row">  
			    			<div class="col-12"  > 
							
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">1</span> APELLIDO<span class="h5 text-danger"> *</span>
 			&nbsp;<INPUT class="camposFORMULARIO AlfaNumerico tipodato1324  REQUERIDA" value="" type="text" style="width:400px" name="1324" id="1324-5271" />
 		
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">2</span> NOMBRES<span class="h5 text-danger"> *</span>
 			&nbsp;<INPUT class="camposFORMULARIO SoloAlfabetico tipodato1325  REQUERIDA" value="" type="text" style="width:400px" name="1325" id="1325-5272" />
 		
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">3</span> GÉNERO<span class="h5 text-danger"> *</span>
</div>
<div class="card-body">
	<div class="col-12">
	<select class="form-control js-example-basic-single SELECT tipodato1326  REQUERIDA" name="1326" id="1326" ><OPTION value="-1111" selected>Seleccione...</OPTION>
		  <OPTION value ="5273">FEMENINO</OPTION>
		
		  <OPTION value ="5274">MASCULINO</OPTION>
		
		  <OPTION value ="5275">OTRAS IDENTIDADES</OPTION>
		
		</select>
	</div>

	
			<script>
				long = 17 * 30;
				longPX = long.toString().concat("px");
				$('#1326').attr("width", longPX );
			</script>
			
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">4</span> DNI<span class="h5 text-danger"> *</span>
	 			&nbsp;<INPUT class="camposFORMULARIO SoloNumerico tipodato1327  REQUERIDA" value="" type="text" style="width:96px" name="1327" id="1327-5276" maxlength="8"   />
	 		
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">5</span> FECHA DE NACIMIENTO<span class="h5 text-danger"> *</span>
	<INPUT class="camposFORMULARIO fecha tipodato1329  REQUERIDA" value="" type="date" name="1329" id="1329-5498" maxlength="12" placeholder="dd/mm/yyyy"  />
	<!-- <span class="texto11"><=textoRespuesta%></span>	-->
	
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">6</span> CELULAR<span class="h5 text-danger"> *</span>
 			&nbsp;<INPUT class="camposFORMULARIO SoloNumerico tipodato1330  REQUERIDA" value="" type="text" style="width:400px" name="1330" id="1330-5499" />
 		
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">7</span> MAIL<span class="h5 text-danger"> *</span>
	 			&nbsp;<INPUT class="camposFORMULARIO Email tipodato1331  REQUERIDA" value="" type="text" style="width:600px" name="1331" id="1331-5500" maxlength="50"   />
	 		
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">8</span> LOCALIDAD<span class="h5 text-danger"> *</span>
</div>
<div class="card-body">
	<div class="col-12">
	<select class="form-control js-example-basic-single SELECT tipodato1333  REQUERIDA" name="1333" id="1333" ><OPTION value="-1111" selected>Seleccione...</OPTION>
		  <OPTION value ="5511">Adolfo Alsina		</OPTION>
		
		  <OPTION value ="5512">Adolfo Gonzales Chaves	</OPTION>
		
		  <OPTION value ="5513">Alberti	</OPTION>
		
		  <OPTION value ="5514">Almirante Brown	</OPTION>
		
		  <OPTION value ="5515">Arrecifes	</OPTION>
		
		  <OPTION value ="5516">Avellaneda	</OPTION>
		
		  <OPTION value ="5517">Ayacucho	</OPTION>
		
		  <OPTION value ="5518">Azul	</OPTION>
		
		  <OPTION value ="5519">Bahía Blanca	</OPTION>
		
		  <OPTION value ="5520">Balcarce	</OPTION>
		
		  <OPTION value ="5521">Baradero	</OPTION>
		
		  <OPTION value ="5522">Benito Juárez	</OPTION>
		
		  <OPTION value ="5523">Berazategui	</OPTION>
		
		  <OPTION value ="5524">Berisso	</OPTION>
		
		  <OPTION value ="5525">Bolívar	</OPTION>
		
		  <OPTION value ="5526">Bragado	</OPTION>
		
		  <OPTION value ="5527">Brandsen	</OPTION>
		
		  <OPTION value ="5510">CABA
	  	 	    		</OPTION>
		
		  <OPTION value ="5528">Campana	</OPTION>
		
		  <OPTION value ="5529">Cañuelas	</OPTION>
		
		  <OPTION value ="5530">Capitán Sarmiento</OPTION>
		
		  <OPTION value ="5531">Carlos Casares	</OPTION>
		
		  <OPTION value ="5532">Carlos Tejedor	</OPTION>
		
		  <OPTION value ="5533">Carmen de Areco	</OPTION>
		
		  <OPTION value ="5534">Castelli	</OPTION>
		
		  <OPTION value ="5535">Chacabuco	</OPTION>
		
		  <OPTION value ="5536">Chascomús	</OPTION>
		
		  <OPTION value ="5537">Chivilcoy	</OPTION>
		
		  <OPTION value ="5538">Colón	</OPTION>
		
		  <OPTION value ="5540">Coronel Dorrego	</OPTION>
		
		  <OPTION value ="5541">Coronel Pringles	</OPTION>
		
		  <OPTION value ="5539">Coronel Rosales	</OPTION>
		
		  <OPTION value ="5542">Coronel Suárez	</OPTION>
		
		  <OPTION value ="5543">Daireaux	</OPTION>
		
		  <OPTION value ="5544">Dolores	</OPTION>
		
		  <OPTION value ="5545">Ensenada	</OPTION>
		
		  <OPTION value ="5546">Escobar	</OPTION>
		
		  <OPTION value ="5547">Esteban Echeverría	</OPTION>
		
		  <OPTION value ="5548">Exaltación de la Cruz	</OPTION>
		
		  <OPTION value ="5549">Ezeiza	</OPTION>
		
		  <OPTION value ="5550">Florencio Varela	</OPTION>
		
		  <OPTION value ="5551">Florentino Ameghino	</OPTION>
		
		  <OPTION value ="5552">General Alvarado	</OPTION>
		
		  <OPTION value ="5553">General Alvear	</OPTION>
		
		  <OPTION value ="5554">General Arenales</OPTION>
		
		  <OPTION value ="5555">General Belgrano</OPTION>
		
		  <OPTION value ="5556">General Guido	</OPTION>
		
		  <OPTION value ="5557">General Juan Madariaga</OPTION>
		
		  <OPTION value ="5558">General La Madrid	</OPTION>
		
		  <OPTION value ="5559">General Las Heras	</OPTION>
		
		  <OPTION value ="5560">General Lavalle		</OPTION>
		
		  <OPTION value ="5561">General Paz	</OPTION>
		
		  <OPTION value ="5562">General Pinto	</OPTION>
		
		  <OPTION value ="5563">General Pueyrredón</OPTION>
		
		  <OPTION value ="5564">General Rodríguez</OPTION>
		
		  <OPTION value ="5565">General San Martín</OPTION>
		
		  <OPTION value ="5566">General Viamonte</OPTION>
		
		  <OPTION value ="5567">General Villegas</OPTION>
		
		  <OPTION value ="5568">Guaminí	Partido	</OPTION>
		
		  <OPTION value ="5569">Hipólito Yrigoyen</OPTION>
		
		  <OPTION value ="5570">Hurlingham	</OPTION>
		
		  <OPTION value ="5571">Ituzaingó	</OPTION>
		
		  <OPTION value ="5572">José C. Paz	</OPTION>
		
		  <OPTION value ="5573">Junín	</OPTION>
		
		  <OPTION value ="5574">La Costa</OPTION>
		
		  <OPTION value ="5575">La Matanza</OPTION>
		
		  <OPTION value ="5577">La Plata</OPTION>
		
		  <OPTION value ="5576">Lanús	</OPTION>
		
		  <OPTION value ="5578">Laprida	</OPTION>
		
		  <OPTION value ="5579">Las Flores	</OPTION>
		
		  <OPTION value ="5580">Leandro N. Alem	</OPTION>
		
		  <OPTION value ="5581">Lincoln	</OPTION>
		
		  <OPTION value ="5582">Lobería	</OPTION>
		
		  <OPTION value ="5583">Lobos	</OPTION>
		
		  <OPTION value ="5584">Lomas de Zamora	</OPTION>
		
		  <OPTION value ="5585">Luján	</OPTION>
		
		  <OPTION value ="5586">Magdalena</OPTION>
		
		  <OPTION value ="5587">Maipú	</OPTION>
		
		  <OPTION value ="5588">Malvinas Argentinas</OPTION>
		
		  <OPTION value ="5589">Mar Chiquita	</OPTION>
		
		  <OPTION value ="5590">Marcos Paz	</OPTION>
		
		  <OPTION value ="5591">Mercedes	</OPTION>
		
		  <OPTION value ="5592">Merlo	</OPTION>
		
		  <OPTION value ="5593">Monte	</OPTION>
		
		  <OPTION value ="5594">Monte Hermoso	</OPTION>
		
		  <OPTION value ="5595">Moreno	</OPTION>
		
		  <OPTION value ="5596">Morón	</OPTION>
		
		  <OPTION value ="5597">Navarro	</OPTION>
		
		  <OPTION value ="5598">Necochea</OPTION>
		
		  <OPTION value ="5599">Nueve de Julio (9 de Julio)	</OPTION>
		
		  <OPTION value ="5600">Olavarría	</OPTION>
		
		  <OPTION value ="5601">Patagones	</OPTION>
		
		  <OPTION value ="5602">Pehuajó	</OPTION>
		
		  <OPTION value ="5603">Pellegrini</OPTION>
		
		  <OPTION value ="5604">Pergamino</OPTION>
		
		  <OPTION value ="5605">Pila	</OPTION>
		
		  <OPTION value ="5606">Pilar	</OPTION>
		
		  <OPTION value ="5607">Pinamar	</OPTION>
		
		  <OPTION value ="5608">Presidente Perón	</OPTION>
		
		  <OPTION value ="5609">Puan	</OPTION>
		
		  <OPTION value ="5610">Punta Indio	</OPTION>
		
		  <OPTION value ="5611">Quilmes		</OPTION>
		
		  <OPTION value ="5612">Ramallo	</OPTION>
		
		  <OPTION value ="5613">Rauch	</OPTION>
		
		  <OPTION value ="5614">Rivadavia	</OPTION>
		
		  <OPTION value ="5615">Rojas	</OPTION>
		
		  <OPTION value ="5616">Roque Pérez</OPTION>
		
		  <OPTION value ="5617">Saavedra</OPTION>
		
		  <OPTION value ="5618">Saladillo</OPTION>
		
		  <OPTION value ="5619">Salliqueló</OPTION>
		
		  <OPTION value ="5620">Salto	</OPTION>
		
		  <OPTION value ="5621">San Andrés de Giles</OPTION>
		
		  <OPTION value ="5622">San Antonio de Areco</OPTION>
		
		  <OPTION value ="5623">San Cayetano	</OPTION>
		
		  <OPTION value ="5624">San Fernando	</OPTION>
		
		  <OPTION value ="5625">San Isidro	</OPTION>
		
		  <OPTION value ="5626">San Miguel	</OPTION>
		
		  <OPTION value ="5627">San Nicolás	</OPTION>
		
		  <OPTION value ="5628">San Pedro	</OPTION>
		
		  <OPTION value ="5629">San Vicente	</OPTION>
		
		  <OPTION value ="5630">Suipacha	</OPTION>
		
		  <OPTION value ="5631">Tandil	</OPTION>
		
		  <OPTION value ="5632">Tapalqué	</OPTION>
		
		  <OPTION value ="5633">Tigre	</OPTION>
		
		  <OPTION value ="5634">Tordillo</OPTION>
		
		  <OPTION value ="5635">Tornquist	</OPTION>
		
		  <OPTION value ="5636">Trenque Lauquen	</OPTION>
		
		  <OPTION value ="5637">Tres Arroyos	</OPTION>
		
		  <OPTION value ="5638">Tres de Febrero	</OPTION>
		
		  <OPTION value ="5639">Tres Lomas	</OPTION>
		
		  <OPTION value ="5640">Veinticinco de Mayo (25 de Mayo)	</OPTION>
		
		  <OPTION value ="5641">Vicente López	</OPTION>
		
		  <OPTION value ="5642">Villa Gesell	</OPTION>
		
		  <OPTION value ="5643">Villarino	</OPTION>
		
		  <OPTION value ="5644">Zárate</OPTION>
		
		</select>
	</div>

	
			<script>
				long = 33 * 30;
				longPX = long.toString().concat("px");
				$('#1333').attr("width", longPX );
			</script>
			
				<script>
				$('#1333').select2({
	    			placeholder: "ingresar texto de busqueda"
	    		});
	    		</script>
			
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">9</span> DOMICILIO<span class="h5 text-danger"> *</span>
 			&nbsp;<INPUT class="camposFORMULARIO SoloAlfabetico tipodato1332  REQUERIDA" value="" type="text" style="width:400px" name="1332" id="1332-5502" />
 		
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">10</span> FORMACIÓN NIVEL ACADÉMICO.<span class="h5 text-danger"> *</span>
</div>
<div class="card-body">
	<div class="col-12">
	<select class="form-control js-example-basic-single SELECT tipodato1685  REQUERIDA" name="1685" id="1685" ><OPTION value="-1111" selected>Seleccione...</OPTION>
		  <OPTION value ="8809">Primario (completo)
	  	 	    		
	  	 	    		</OPTION>
		
		  <OPTION value ="8810">Secundario (completo)
	  	 	    		</OPTION>
		
		  <OPTION value ="8811">Terciario (completo)
	  	 	    		</OPTION>
		
		  <OPTION value ="8812">Universitario (completo)
	  	 	    		</OPTION>
		
		  <OPTION value ="8813">Universitario (en curso) </OPTION>
		
		</select>
	</div>

	
			<script>
				long = 47 * 30;
				longPX = long.toString().concat("px");
				$('#1685').attr("width", longPX );
			</script>
			
	</div>   <!-- cierro card-header o card-body -->
	
			<!-- llamo a recursion  -->   
				
		<div class="card-body">  <!-- cierra con zz77 -->		
	
	
		<span class="badge badge-pill badge-primary text-white">10.1</span> Carrera
</div>
<div class="card-body">
	<div class="col-12">
	<select class="form-control js-example-basic-single SELECT tipodato1336  " name="1336" id="1336" ><OPTION value="-1111" selected>Seleccione...</OPTION>
		  <OPTION value ="5468">Abogacía</OPTION>
		
		  <OPTION value ="5469">Agrimensura</OPTION>
		
		  <OPTION value ="5470">Arquitectura</OPTION>
		
		  <OPTION value ="5471">Contador Público</OPTION>
		
		  <OPTION value ="5472">Diseño en Comunicación Visual</OPTION>
		
		  <OPTION value ="5473">Ingeniería Civil</OPTION>
		
		  <OPTION value ="5474">Ingeniería Electromecánica</OPTION>
		
		  <OPTION value ="5475">Ingeniería Electrónica</OPTION>
		
		  <OPTION value ="5476">Ingeniería en Computación</OPTION>
		
		  <OPTION value ="5477">Ingeniería en Sistemas</OPTION>
		
		  <OPTION value ="5478">Ingeniería en Telecomunicaciones</OPTION>
		
		  <OPTION value ="5479">Ingeniería Industrial</OPTION>
		
		  <OPTION value ="5480">Ingeniería Informática</OPTION>
		
		  <OPTION value ="5481">Licenciatura en Administración</OPTION>
		
		  <OPTION value ="5482">Licenciatura en Administración de Empresas</OPTION>
		
		  <OPTION value ="5483">Licenciatura en Análisis de Sistemas</OPTION>
		
		  <OPTION value ="5484">Licenciatura en Antropología</OPTION>
		
		  <OPTION value ="5485">Licenciatura en Ciencias de la Computación</OPTION>
		
		  <OPTION value ="5486">Licenciatura en Ciencias de la Comunicación</OPTION>
		
		  <OPTION value ="5487">Licenciatura en Ciencias Políticas</OPTION>
		
		  <OPTION value ="5488">Licenciatura en Economía</OPTION>
		
		  <OPTION value ="5489">Licenciatura en Informática</OPTION>
		
		  <OPTION value ="5490">Licenciatura en Psicología</OPTION>
		
		  <OPTION value ="5491">Licenciatura en Recursos Humanos</OPTION>
		
		  <OPTION value ="5492">Licenciatura en Sistemas</OPTION>
		
		  <OPTION value ="5493">Licenciatura en Sistemas de Información</OPTION>
		
		  <OPTION value ="5494">Licenciatura en Sociología</OPTION>
		
		  <OPTION value ="5495">Licenciatura en Tecnología Informática</OPTION>
		
		  <OPTION value ="5496">Licenciatura en Trabajo Social</OPTION>
		
		  <OPTION value ="5497">Otra carrera de grado</OPTION>
		
		</select>
	</div>

	
			<script>
				long = 43 * 30;
				longPX = long.toString().concat("px");
				$('#1336').attr("width", longPX );
			</script>
			
				<script>
				$('#1336').select2({
	    			placeholder: "ingresar texto de busqueda"
	    		});
	    		</script>
			
	</div>   <!-- cierro card-header o card-body -->
	
			<!-- llamo a recursion  -->   
				
		<div class="card-body">  <!-- cierra con zz77 -->		
	 
			<!--Si pregunta madre es select o radio o grafico -->
			<strong>10.2</strong>. Si respondi&oacute; <strong class="text-danger">Universitario (en curso) </strong> en pregunta <strong>10</strong>: Especifique carrera en 10.1 y porcentaje de avance de la misma en 10.2
			  <span class="txtAdvertencia">^</span>
			
		
 			&nbsp;<INPUT class="camposFORMULARIO SoloNumerico tipodato1683 COND1685 " value="" type="text" style="width:400px" name="1683" id="1683-8807" disabled/>
 		
	</div>   <!-- cierro card-header o card-body -->
	
			<!-- llamo a recursion  -->   
				
		<div class="card-body">  <!-- cierra con zz77 -->		
	 
			<!--Si pregunta madre es select o radio o grafico -->
			<strong>10.3</strong>. Si respondi&oacute; <strong class="text-danger">Otra carrera de grado</strong> en pregunta <strong>10.1</strong>: Indique cuál
			  <span class="txtAdvertencia">^</span>
			
		<span class="h5 text-danger"> *</span>
 			&nbsp;<INPUT class="camposFORMULARIO AlfaNumerico tipodato1684 COND1336 REQUERIDA" value="" type="text" style="width:400px" name="1684" id="1684-8808" disabled/>
 		
	</div>   <!-- cierro card-header o card-body -->
	
			<!-- llamo a recursion  -->   
				
		<div class="card-body">  <!-- cierra con zz77 -->		
	
	
		<span class="badge badge-pill badge-primary text-white">10.4</span> Egresado o estudiante de (consignar nombre de la Institución Educativa)<span class="h5 text-danger"> *</span>
 			&nbsp;<INPUT class="camposFORMULARIO AlfaNumerico tipodato1796  REQUERIDA" value="" type="text" style="width:400px" name="1796" id="1796-9121" />
 		
	</div>   <!-- cierro card-header o card-body -->
	
			<!-- llamo a recursion  -->   
				
		<div class="card-body">  <!-- cierra con zz77 -->		
	
	
		<span class="badge badge-pill badge-primary text-white">10.5</span> En caso de contar con posgrados, especializaciones, maestrías y/o doctorados, detalle cuáles:
 			&nbsp;<INPUT class="camposFORMULARIO AlfaNumerico tipodato1362  " value="" type="text" style="width:400px" name="1362" id="1362-5507" />
 		
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">11</span> POSEE ALGUNA DISCAPACIDAD (Ley 10592)<span class="h5 text-danger"> *</span>
</div>
<div class="card-body">
	<div class="col-12">
	<select class="form-control js-example-basic-single SELECT tipodato1363  REQUERIDA" name="1363" id="1363" ><OPTION value="-1111" selected>Seleccione...</OPTION>
		  <OPTION value ="5509">NO</OPTION>
		
		  <OPTION value ="5508">SI</OPTION>
		
		</select>
	</div>

	
			<script>
				long = 13 * 30;
				longPX = long.toString().concat("px");
				$('#1363').attr("width", longPX );
			</script>
			
	</div>   <!-- cierro card-header o card-body -->
	
			<!-- llamo a recursion  -->   
				
		<div class="card-body">  <!-- cierra con zz77 -->		
	 
			<!--Si pregunta madre es select o radio o grafico -->
			<strong>11.1</strong>. Si respondi&oacute; <strong class="text-danger">SI</strong> en pregunta <strong>11</strong>: Identifique tipo de discapacidad
			  <span class="txtAdvertencia">^</span>
			
		
		<ul class="mt-4 pl-0">
	
		<li class="list-group-flush">
	
 
	<input value="8797" type="Checkbox" class="tipodato1680 COND1363  align-middle" name="1680" id="1680-8797" disabled='disabled'/>
		<label class="align-middle mb-0" >
			Sensorial Auditivo

		</label>  
		  
	</li>

		<li class="list-group-flush">
	
 
	<input value="8798" type="Checkbox" class="tipodato1680 COND1363  align-middle" name="1680" id="1680-8798" disabled='disabled'/>
		<label class="align-middle mb-0" >
			Sensorial Visual

		</label>  
		  
	</li>

		<li class="list-group-flush">
	
 
	<input value="8799" type="Checkbox" class="tipodato1680 COND1363  align-middle" name="1680" id="1680-8799" disabled='disabled'/>
		<label class="align-middle mb-0" >
			Motora

		</label>  
		  
	</li>

		<li class="list-group-flush">
	
 
	<input value="8800" type="Checkbox" class="tipodato1680 COND1363  align-middle" name="1680" id="1680-8800" disabled='disabled'/>
		<label class="align-middle mb-0" >
			Inmunodeficiencia

		</label>  
		  
	</li>

		<li class="list-group-flush">
	
 
	<input value="8801" type="Checkbox" class="tipodato1680 COND1363  align-middle" name="1680" id="1680-8801" disabled='disabled'/>
		<label class="align-middle mb-0" >
			Visceral
		</label>  
		  
	</li>

		<li class="list-group-flush">
	
 
	<input value="8802" type="Checkbox" class="tipodato1680 COND1363  align-middle" name="1680" id="1680-8802" disabled='disabled'/>
		<label class="align-middle mb-0" >
			Mental
		</label>  
		  
	</li>

		<li class="list-group-flush">
	
 
	<input value="8803" type="Checkbox" class="tipodato1680 COND1363  align-middle" name="1680" id="1680-8803" disabled='disabled'/>
		<label class="align-middle mb-0" >
			Otra
		</label>  
		  
	</li>

		</ul>  <!-- cerrando yy1 opciones RADIO-CHECKBOX  -->
	
			 </div> 
			
	</div>   <!-- cierro card-header o card-body -->
	
			<!-- llamo a recursion  -->   
				
		<div class="card-body">  <!-- cierra con zz77 -->		
	
	
		<span class="badge badge-pill badge-primary text-white">11.2</span> En caso de haber seleccionado : "Otra", indique cuál
 			&nbsp;<INPUT class="camposFORMULARIO AlfaNumerico tipodato1681  " value="" type="text" style="width:400px" name="1681" id="1681-8804" />
 		
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">12</span> EXPERIENCIA LABORAL
		</div>   <!-- cierro el header   -->
		 <div class="card-body">   
			<div class="col-12"> <!--first respuesta cada card-->
				
			
		<div class="mt-3">

			 

			<textarea  class="camposFormulario mb-3 mt-2  form-control tipodato1682  " name="1682-textarea" id="1682-9305" cols="80" rows="7" placeholder="Describir brevemente"></textarea>		
		

	
			 </div> 
			
	</div>   <!-- cierro card-header o card-body -->
	 
					        		</div>		<!-- cierro el div en cada nivel 1 -->
					        		
						        		<br>
						        	
				<div class="card my-3 px-2"><!-- Div Primer Nivel abro si tengo respuesta.. Cierra con zz2 -->
			
		<div class="card-header">   <!-- cierra con zz44 -->
			<h5 class="card-title mt-2"> 
	
	
		<span class="badge badge-pill badge-primary text-white">13</span> COMENTARIOS
		</div>   <!-- cierro el header   -->
		 <div class="card-body">   
			<div class="col-12"> <!--first respuesta cada card-->
				
			
		<div class="mt-3">

			 

			<textarea  class="camposFormulario mb-3 mt-2  form-control tipodato1365  " name="1365-textarea" id="1365-5645" cols="80" rows="7" placeholder="Indique"></textarea>		
		

	
			 </div> 
			
	</div>   <!-- cierro card-header o card-body -->
	
							</div>  <!-- cierro el div que seguro abri en funciones  -->
							
			<script>
			// $('#< %=idPregQueCondiciona%>-< %=idPrimerRespuesta%>').change(function(){
			
				$('select[name="1685"]').change(function(){
					valorSel = $('select[name="1685"]').val();
			
				
				// valorSel = $('#1685-8809').val();
				//	alert("2- quiere cambiar una pregunta condicionada, con respuesta:"+valorSel);
				wTipoDato = "";
				

					$('#1683-8807').css('background-color', '#BDBDBD');
					wTipoDato = 'Text'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1683-8807').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1683-8807').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1683-8807').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1683-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1683-8807').val("");
		    				}
	    				}
		    		}
		    		$('#1683-8807').attr("disabled","disabled");
	    			
					// if ($('#1685-8809').val() == '8813') {
					if (valorSel == '8813') {
						$('#1683-8807').css('background-color', '#FAFAFA');
						$('#1683-8807').removeAttr("disabled");
					}
					
			//	if ($('#-').attr('type').toUpperCase()=="RADIO"){
			//		$('#-textarea-otros').attr('disabled','disabled');
			//	}
			
				});
			
			</script>

			
			<script>
			// $('#< %=idPregQueCondiciona%>-< %=idPrimerRespuesta%>').change(function(){
			
				$('select[name="1336"]').change(function(){
					valorSel = $('select[name="1336"]').val();
			
				
				// valorSel = $('#1336-5468').val();
				//	alert("2- quiere cambiar una pregunta condicionada, con respuesta:"+valorSel);
				wTipoDato = "";
				

					$('#1684-8808').css('background-color', '#BDBDBD');
					wTipoDato = 'Text'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1684-8808').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1684-8808').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1684-8808').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1684-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1684-8808').val("");
		    				}
	    				}
		    		}
		    		$('#1684-8808').attr("disabled","disabled");
	    			
					// if ($('#1336-5468').val() == '5497') {
					if (valorSel == '5497') {
						$('#1684-8808').css('background-color', '#FAFAFA');
						$('#1684-8808').removeAttr("disabled");
					}
					
			//	if ($('#-').attr('type').toUpperCase()=="RADIO"){
			//		$('#-textarea-otros').attr('disabled','disabled');
			//	}
			
				});
			
			</script>

			
			<script>
			// $('#< %=idPregQueCondiciona%>-< %=idPrimerRespuesta%>').change(function(){
			
				$('select[name="1363"]').change(function(){
					valorSel = $('select[name="1363"]').val();
			
				
				// valorSel = $('#1363-5509').val();
				//	alert("2- quiere cambiar una pregunta condicionada, con respuesta:"+valorSel);
				wTipoDato = "";
				

					$('#1680-8797').css('background-color', '#BDBDBD');
					wTipoDato = 'Checkbox'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1680-8797').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1680-8797').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1680-8797').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1680-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1680-8797').val("");
		    				}
	    				}
		    		}
		    		$('#1680-8797').attr("disabled","disabled");
	    			

					$('#1680-8798').css('background-color', '#BDBDBD');
					wTipoDato = 'Checkbox'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1680-8798').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1680-8798').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1680-8798').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1680-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1680-8798').val("");
		    				}
	    				}
		    		}
		    		$('#1680-8798').attr("disabled","disabled");
	    			

					$('#1680-8799').css('background-color', '#BDBDBD');
					wTipoDato = 'Checkbox'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1680-8799').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1680-8799').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1680-8799').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1680-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1680-8799').val("");
		    				}
	    				}
		    		}
		    		$('#1680-8799').attr("disabled","disabled");
	    			

					$('#1680-8800').css('background-color', '#BDBDBD');
					wTipoDato = 'Checkbox'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1680-8800').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1680-8800').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1680-8800').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1680-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1680-8800').val("");
		    				}
	    				}
		    		}
		    		$('#1680-8800').attr("disabled","disabled");
	    			

					$('#1680-8801').css('background-color', '#BDBDBD');
					wTipoDato = 'Checkbox'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1680-8801').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1680-8801').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1680-8801').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1680-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1680-8801').val("");
		    				}
	    				}
		    		}
		    		$('#1680-8801').attr("disabled","disabled");
	    			

					$('#1680-8802').css('background-color', '#BDBDBD');
					wTipoDato = 'Checkbox'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1680-8802').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1680-8802').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1680-8802').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1680-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1680-8802').val("");
		    				}
	    				}
		    		}
		    		$('#1680-8802').attr("disabled","disabled");
	    			

					$('#1680-8803').css('background-color', '#BDBDBD');
					wTipoDato = 'Checkbox'.toUpperCase();
		    		if ((wTipoDato == "RADIO") || (wTipoDato == "CHECKBOX")) {
	    				$('#1680-8803').removeAttr("checked",false);
	    			}
	    			if (wTipoDato == "BUTTON") {  
	    				$('#1680-8803').removeAttr("selected");
	    			}
	    			if (wTipoDato == "SELECT") {
		    			$('#1680-8803').val(-1111);
		    		} else { 
		    			if (wTipoDato == "BUTTON") {  
	    					$('#1680-999').val("");
	    				}
		    			else {
		    				if ((wTipoDato != "RADIO") && (wTipoDato != "CHECKBOX")) { 
		    					$('#1680-8803').val("");
		    				}
	    				}
		    		}
		    		$('#1680-8803').attr("disabled","disabled");
	    			
					// if ($('#1363-5509').val() == '5508') {
					if (valorSel == '5508') {
						$('#1680-8797').css('background-color', '#FAFAFA');
						$('#1680-8797').removeAttr("disabled");
					}
					
					// if ($('#1363-5509').val() == '5508') {
					if (valorSel == '5508') {
						$('#1680-8798').css('background-color', '#FAFAFA');
						$('#1680-8798').removeAttr("disabled");
					}
					
					// if ($('#1363-5509').val() == '5508') {
					if (valorSel == '5508') {
						$('#1680-8799').css('background-color', '#FAFAFA');
						$('#1680-8799').removeAttr("disabled");
					}
					
					// if ($('#1363-5509').val() == '5508') {
					if (valorSel == '5508') {
						$('#1680-8800').css('background-color', '#FAFAFA');
						$('#1680-8800').removeAttr("disabled");
					}
					
					// if ($('#1363-5509').val() == '5508') {
					if (valorSel == '5508') {
						$('#1680-8801').css('background-color', '#FAFAFA');
						$('#1680-8801').removeAttr("disabled");
					}
					
					// if ($('#1363-5509').val() == '5508') {
					if (valorSel == '5508') {
						$('#1680-8802').css('background-color', '#FAFAFA');
						$('#1680-8802').removeAttr("disabled");
					}
					
					// if ($('#1363-5509').val() == '5508') {
					if (valorSel == '5508') {
						$('#1680-8803').css('background-color', '#FAFAFA');
						$('#1680-8803').removeAttr("disabled");
					}
					
			//	if ($('#-').attr('type').toUpperCase()=="RADIO"){
			//		$('#-textarea-otros').attr('disabled','disabled');
			//	}
			
				});
			
			</script>

			
							</div> 
						</div>	
						</div>
						
						<div class="row">  
			    			<div class="col-12 justify-content-center"  > 
						<div class="btn-group m-2 abs-center" role="group" >
							
						    	<span id="botonesPaginaTotal">
									&nbsp;
											
										&nbsp;
										<input id="botonEnviarTotal" value="Enviar" type="submit" class="btn btn-primary btn-lg px-4"/>
			    				</span>
							
					  	</div>
					</div>
						</div>

					
			
			</FORM>				


			</div><!--fin col-->   
  		</div><!--fin row-->
	</div>  <!-- DIV CONTAINER -->
 

</footer> 
	


 <script type="text/javascript" src="/Recursos/lib/jQuery/jquery-3.2.1/jquery-3.2.1.min.js"> </script> 
   
    <script type="text/javascript" src="/Recursos/lib/scrollUp/scrollUp.js"></script>
    <script type="text/javascript" src="/Recursos/lib/js/mostrarOcultarMenuDatosSesion.js"></script>

    <!--datatables-->
    <script type="text/javascript" src="/Recursos/lib/datatables.net/dataTablesBootstrap4/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="/Recursos/lib/datatables.net/dataTablesBootstrap4/js/dataTables.bootstrap4.min.js"></script>

    <!--popover js-->
    <script src="/Recursos/lib/popper/popper-js-1.11.0/popper.min.js"></script>

    
    
    <script type="text/javascript" src="/Recursos/lib/bootstrap/bootstrap-4.0.0-dist/js/bootstrap.min.js"></script> 
    <script src="/Recursos/bootstrap-3.3.7-dist/js/bootstrap-toggle.min.js"></script>
    <script src="/Recursos/lib/font-awesome/font-awesome-5.9.0/js/all.js" defer></script>
    <!--IE-->

    
    <script type="text/javascript">
    // Copyright 2014-2017 The Bootstrap Authors
// Copyright 2014-2017 Twitter, Inc.
// Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
    var msViewportStyle = document.createElement('style')
    msViewportStyle.appendChild(
        document.createTextNode(
            '@-ms-viewport{width:auto!important}'
            )
        )
    document.head.appendChild(msViewportStyle)
}
</script>




<script>
    $(document).ready(function(){
            // in another js file, far, far away
            $('header').on('classChange', function() {
                console.log("change");
            });
            $('[data-toggle="popover"]').popover(); 

            $('[data-toggle="tooltip"]').tooltip();   

           
            $('[data-toggle="popover"]').popover(); 
        });
    /*scrollup subir*/
    jQuery( document ).ready(function( $ ) {
        $(window).scroll(function(){
            if ($(this).scrollTop() > 100) {
                $('.scrollup').fadeIn();
            } else {
                $('.scrollup').fadeOut();
            }
        });

        $('.scrollup').click(function(){
            $("html, body").animate({ scrollTop: 0 }, 600);
            return false;
        });

//dropdown Menu
$('.navbar .dropdown-item').on('click', function (e) {
    var $el = $(this).children('.dropdown-toggle');
    var $parent = $el.offsetParent(".dropdown-menu");
    $(this).parent("li").toggleClass('open');

    if (!$parent.parent().hasClass('navbar-nav')) {
        if ($parent.hasClass('show')) {
            $parent.removeClass('show');
            $el.next().removeClass('show');
            $el.next().css({"top": -999, "left": -999});
        } else {
            $parent.parent().find('.show').removeClass('show');
            $parent.addClass('show');
            $el.next().addClass('show');
            $el.next().css({"top": $el[0].offsetTop, "left": $parent.outerWidth() - 4});
            e.preventDefault();
        }
        e.stopPropagation();
    }
});

$('.navbar .dropdown').on('hidden.bs.dropdown', function () {
    $(this).find('li.dropdown').removeClass('show open');
    $(this).find('ul.dropdown-menu').removeClass('show open');
});

}); 
</script>




    <script type="text/javascript">
    // Copyright 2014-2017 The Bootstrap Authors
// Copyright 2014-2017 Twitter, Inc.
// Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
    var msViewportStyle = document.createElement('style')
    msViewportStyle.appendChild(
        document.createTextNode(
            '@-ms-viewport{width:auto!important}'
            )
        )
    document.head.appendChild(msViewportStyle)
}
</script>


<script>
    $(document).ready(function(){
            // in another js file, far, far away
            $('header').on('classChange', function() {
                console.log("change");
            });
            $('[data-toggle="popover"]').popover(); 

            $('[data-toggle="tooltip"]').tooltip();   
           
            $('[data-toggle="popover"]').popover(); 
    });

    /*scrollup subir*/
    jQuery( document ).ready(function( $ ) {
        $(window).scroll(function(){
            if ($(this).scrollTop() > 100) {
                $('.scrollup').fadeIn();
            } else {
                $('.scrollup').fadeOut();
            }
        });

        $('.scrollup').click(function(){
            $("html, body").animate({ scrollTop: 0 }, 600);
            return false;
        });

		//dropdown Menu
		$('.navbar .dropdown-item').on('click', function (e) {
		    var $el = $(this).children('.dropdown-toggle');
		    var $parent = $el.offsetParent(".dropdown-menu");
		    $(this).parent("li").toggleClass('open');

		    if (!$parent.parent().hasClass('navbar-nav')) {
		        if ($parent.hasClass('show')) {
		            $parent.removeClass('show');
		            $el.next().removeClass('show');
		            $el.next().css({"top": -999, "left": -999});
		        } else {
		            $parent.parent().find('.show').removeClass('show');
		            $parent.addClass('show');
		            $el.next().addClass('show');
		            $el.next().css({"top": $el[0].offsetTop, "left": $parent.outerWidth() - 4});
		            e.preventDefault();
		        }
		        e.stopPropagation();
		    }
		});

		$('.navbar .dropdown').on('hidden.bs.dropdown', function () {
		    $(this).find('li.dropdown').removeClass('show open');
		    $(this).find('ul.dropdown-menu').removeClass('show open');
		});

	}); 
</script>


<!-- <script type="text/javascript" src="validacion1.asp"></script> -->
<script type="text/javascript" src="paginate.js"></script>
<script>
	if ("N"=="S") {
		$('#encuesta').paginate();
		a = 1;
	}
</script>
<!--font-awesome -->

<SCRIPT language="JavaScript">

	var wMostrarDeUnaPregunta = "N"
	var wTotalPreguntas = 0

	$(document).ready(function() {

		//datatable
		$('#encuestasD').DataTable( {
			"language": {
				"lengthMenu": "Mostrar _MENU_ por p&aacute;gina",
				"zeroRecords": "No se ha encontrado nada",
				"search": "Buscar:",
				"paginate": {
					"first":      "Primera",
					"last":       "Última",
					"next":       "Siguiente",
					"previous":   "Anterior"
				},
				"info": "Mostrando p&aacute;gina _PAGE_ de _PAGES_",
				"infoEmpty": "No hay registros disponibles",
				"infoFiltered": "(Filtrado de _MAX_ registros totales)"
			}
		} );


		// alert("estamos adentro wMostrarDeUnaPregunta"+wMostrarDeUnaPregunta);
		if ( wMostrarDeUnaPregunta == "SI"  ) {
			// wMostrarDeUnaPregunta == "S") {
			$("#botonesPaginaTotal").hide();
			wPregActual = 1;
			controlPaginado();
		} else {
			$("#botonesPorPregunta").hide();
		}

    var config = {
		//skin:'v2'
		language: 'es'
	};
	config.toolbar = 'Full';

	config.toolbar_Full =
	[
		{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
		{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
		{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
		'/',
		{ name: 'paragraph', items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },
		{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
		{ name: 'colors', items : [ 'TextColor','BGColor' ] }
	];
	config.removePlugins = 'elementspath';


	for(var i=0; i < frmDatos.elements.length; i++){
	    var e = frmDatos.elements[i];

	    if (e.nodeName == "TEXTAREA") {
	    }
	    wClase = e.className;
	    if (wClase.indexOf("COND") > -1) {
	    	wClaseCOND = wClase.substring(wClase.indexOf("COND"));
	    	if (wClaseCOND.indexOf(" ") > -1) {
	    		wClaseCOND = wClaseCOND.substring(1, wClaseCOND.indexOf("COND") - 1);
	    	}
	    	$("."+wClaseCOND).css('background-color', '#D8D8D8');
	    	$("."+wClaseCOND).attr('disabled', 'disabled');
	    }	
	}

  if ($('.js-example-basic-single').length > 0) {
      $('.js-example-basic-single').select2();
  }

    });



	function controlPaginado() { 
		if (wPregActual <= 1) {
			$("#botonAnterior").hide();
		} else {
			$("#botonAnterior").show();
		}
		if (wPregActual >= wTotalPreguntas) {
			$("#botonSiguiente").hide();
		} else {
			$("#botonSiguiente").show();
		}
		if (wPregActual >= wTotalPreguntas) {
			$("#botonConfirmar").show();
		} else {
			$("#botonConfirmar").hide();
		}

		$(".card").hide();
		idPreg = "pregunta" + wPregActual;
		console.log("pregunta"+wPregActual+" -- "+idPreg);
		$("."+idPreg).show();
	}	

	function preguntaAnterior() { 
		if (wPregActual > 1) {
			wPregActual = wPregActual - 1
		}
		controlPaginado()
	}	

	function preguntaSiguiente() { 
		if (wPregActual < wTotalPreguntas ) {
			wPregActual = wPregActual + 1
		}
		controlPaginado()
	}	

</SCRIPT>

<script type="text/javascript">
function validarEncuesta(form) {
	var total, wEsRequerida;

	total = true;
	var otra;
	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1324'.toLowerCase().indexOf("textarea") >= 0){
					if (('1324'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1324']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1324").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1324']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1324");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1324");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1324");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1324");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1324",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1324",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1324");
				}

				if (!total) {
					var texto = '1 APELLIDO'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1324']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1324']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1324",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '1 APELLIDO'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1324']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1325'.toLowerCase().indexOf("textarea") >= 0){
					if (('1325'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1325']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1325").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1325']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1325");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1325");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1325");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1325");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1325",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1325",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1325");
				}

				if (!total) {
					var texto = '2 NOMBRES'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1325']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1325']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1325",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '2 NOMBRES'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1325']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1326'.toLowerCase().indexOf("textarea") >= 0){
					if (('1326'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1326']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1326").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1326']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1326");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1326");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1326");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1326");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1326",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1326",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1326");
				}

				if (!total) {
					var texto = '3 GÉNERO'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1326']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1326']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1326",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '3 GÉNERO'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1326']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1327'.toLowerCase().indexOf("textarea") >= 0){
					if (('1327'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1327']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1327").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1327']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1327");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1327");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1327");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1327");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1327",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1327",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1327");
				}

				if (!total) {
					var texto = '4 DNI'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1327']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1327']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1327",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '4 DNI'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1327']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1329'.toLowerCase().indexOf("textarea") >= 0){
					if (('1329'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1329']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1329").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1329']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1329");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1329");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1329");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1329");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1329",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1329",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1329");
				}

				if (!total) {
					var texto = '5 FECHA DE NACIMIENTO'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1329']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1329']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1329",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '5 FECHA DE NACIMIENTO'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1329']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1330'.toLowerCase().indexOf("textarea") >= 0){
					if (('1330'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1330']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1330").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1330']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1330");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1330");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1330");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1330");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1330",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1330",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1330");
				}

				if (!total) {
					var texto = '6 CELULAR'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1330']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1330']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1330",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '6 CELULAR'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1330']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1331'.toLowerCase().indexOf("textarea") >= 0){
					if (('1331'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1331']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1331").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1331']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1331");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1331");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1331");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1331");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1331",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1331",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1331");
				}

				if (!total) {
					var texto = '7 MAIL'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1331']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1331']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1331",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '7 MAIL'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1331']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1333'.toLowerCase().indexOf("textarea") >= 0){
					if (('1333'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1333']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1333").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1333']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1333");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1333");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1333");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1333");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1333",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1333",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1333");
				}

				if (!total) {
					var texto = '8 LOCALIDAD'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1333']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1333']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1333",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '8 LOCALIDAD'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1333']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1332'.toLowerCase().indexOf("textarea") >= 0){
					if (('1332'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1332']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1332").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1332']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1332");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1332");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1332");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1332");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1332",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1332",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1332");
				}

				if (!total) {
					var texto = '9 DOMICILIO'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1332']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1332']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1332",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '9 DOMICILIO'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1332']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1685'.toLowerCase().indexOf("textarea") >= 0){
					if (('1685'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1685']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1685").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1685']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1685");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1685");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1685");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1685");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1685",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1685",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1685");
				}

				if (!total) {
					var texto = '10 FORMACIÓN NIVEL ACADÉMICO.'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1685']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1685']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1685",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '10 FORMACIÓN NIVEL ACADÉMICO.'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1685']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("SI" == "SI") {
			
				
			
				if ($("select[name='1336']").val() == '5497' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1684'.toLowerCase().indexOf("textarea") >= 0){
					if (('1684'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1684']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1684").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1684']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1684");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1684");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1684");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1684");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1684",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1684",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1684");
				}

				if (!total) {
					var texto = '10.3 Indique cuál'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1684']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1684']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1684",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '10.3 Indique cuál'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1684']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1796'.toLowerCase().indexOf("textarea") >= 0){
					if (('1796'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1796']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1796").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1796']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1796");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1796");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1796");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1796");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1796",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1796",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1796");
				}

				if (!total) {
					var texto = '10.4 Egresado o estudiante de (consignar nombre de la Institución Educativa)'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1796']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1796']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1796",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '10.4 Egresado o estudiante de (consignar nombre de la Institución Educativa)'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1796']").focus();
						return false;
					}
				}
			}

	
		
			wEsRequerida = "NO"; 
			if ("NO" == "SI") {
			
				
			
				if ($("select[name='.']").val() == '.' ) {
					wEsRequerida = "SI";
				}
			} else {
				wEsRequerida = "SI";
			}

			if (wEsRequerida == "SI") {
				var tipo;
				var clase;
		
				//al para obtener la validacion de un textarea no se puede preguntar por un input...
				if ('1363'.toLowerCase().indexOf("textarea") >= 0){
					if (('1363'.toLowerCase().indexOf("otros") >= 0)){
						tipo = 'otros';				
					}else{
						if ($("textarea[name='1363']") != undefined){//si devuelve algo es textarea
							tipo = 'textarea';
						}
					}

				}else{
					<!-- tipo = $("input[name='< %=idsPreguntas(i)%>']").attr('type'); -->
					tipo = $(".tipodato1363").attr('type');
				}
				//si no es un input, tal vez es un combo
				if (tipo == undefined) {
					tipo = "select";   //$("select[name='1363']").attr('type');
				}
				if (tipo.toUpperCase() == "OTROS"){
					total = total && validarCampoOtros("1363");
				}
				if (tipo.toUpperCase()=="CHECKBOX") {
					total = total && validarRadioOCheckbox("1363");
				}
				if (tipo.toUpperCase()=="RADIO") {
					total = total && validarRadioOCheckbox("1363");
				}
				if (tipo.toUpperCase()=="BUTTON") {
					total = total && validarRadioGrafico("1363");
				}
				if (tipo.toUpperCase()=="TEXT" || tipo.toUpperCase()=="PASSWORD") {
					total = total && validarInputText("1363",tipo);
				}
				if (tipo.toUpperCase()=="TEXTAREA") {
					total = total && validarInputTextarea("1363",tipo,4000);
					if (total == -1){
						return false;
					}
				}

				if (tipo.toUpperCase()=="SELECT-ONE" || tipo.toUpperCase()=="SELECT-MULTIPLE" || tipo.toUpperCase()=="SELECT") {
					total = total && validarSELECT("1363");
				}

				if (!total) {
					var texto = '11 POSEE ALGUNA DISCAPACIDAD (Ley 10592)'
					var texto2 = texto.replace('&','');
					var texto3 = texto2.replace('acute','');
					alert("La pregunta \""+texto3+"\" es requerida");
					$("input[name='1363']").focus();
					return false;
				}

				if (tipo.toUpperCase()=="TEXT") {
					clase = $("input[name='1363']").attr('class').toUpperCase();
					wResp = validarClaseInputText("1363",tipo,clase);
					if (!(wResp == "OK")) {
						var texto = '11 POSEE ALGUNA DISCAPACIDAD (Ley 10592)'
						var texto2 = texto.replace('&','');
						var texto3 = texto2.replace('acute','');
						alert("La pregunta \""+texto3+"\" "+ wResp);
						$("input[name='1363']").focus();
						return false;
					}
				}
			}

	
			return le_parece(this);
		

	return total;
}


function le_parece(formObj) { 

        if (!confirm("Confirma que desea enviar la encuesta ?")) { // hizo click en cancelar
           return false;
       }else{// hizo click en aceptar
           return true;
       }
 
}	

function validarRadioOCheckbox(name) {
	//pregunto cuantos hay chequeados:
	var chequeados;

	chequeados = $("input:checked[name^='"+name+"']").length;

	return (chequeados>0);
}
//*gus
function validarRadioGrafico(name) {
	//pregunto cuantos hay chequeados:
	if( !($(".tipodato"+name).hasClass("marcado"))) {
      if( !($("#"+name).val()=="")) {
         return true;
      } else {
         return false;
      }
	} else {
		//var xval = $(".tipodato"+name+".marcado")[0].value;
		//$("#pepe").val(xval);
		//alert(xval);
		//return false;
		return true;
	}
}


function validarRadioOCheckboxOtros(name) {
	//pregunto cuantos hay chequeados:
	var chequeados;

	//$("input:checked[id^='185-']").length
	chequeados = $("input:checked[id^='"+name+"']").length;

	return (chequeados>0);
}

function validarCampoOtros(name) {
	//si hay un campo otro chequeado, el textarea debe ser distinto de ""
	if (!($('#'+name).is(":disabled"))){
		if ($.trim($('#'+name).val())!= ""){
			return true;
		}else{
			return false;
		}
	}else{//si el textarea del campo otros esta deshabilitado es que no se eligio el campo otros
		
		// $("input[name="*name"])
		var myArray = name.split('-');
		if (validarRadioOCheckboxOtros(myArray[0]+'-')){
			return true;
		}
	}
}

function consultarTextoRespuesta(tipoElemento,nombreElemento) {
    var request = $.ajax({
        url: "hacerConsultaTextoRespuesta.asp",
        type: "POST",
        contentType: "application/x-www-form-urlencoded;charset=ISO-8859-1",
        data: { tipoElemento: tipoElemento, nombreElemento:nombreElemento  },
        dataType: "text",
        async: false,
        error: function(xhr, ajaxOptions, thrownError) {
            //alert(xhr.statusText);
            alert(thrownError);
        },
        success: function(request) { return request.responseText }
    });
    if ($.trim(request.responseText) != ""){
    	return (request.responseText);
    }else{
    	return "";
	}
}


function validarInputText(nameElemento,tipoElemento) {
	var texto;
	texto = $("input[name='"+nameElemento+"']").val();
	
	var textoElemento ;
	textoElemento = consultarTextoRespuesta(tipoElemento,nameElemento);

	if (tipoElemento.toUpperCase() == "TEXTAREA"|| tipoElemento.toUpperCase() == "TEXT"){
		if (textoElemento == texto){

			return false;
		}else{
			return (texto!="");
		}
	}
}

function validarClaseInputText (nameElemento,tipoElemento, clase) {
	var texto;
	texto = $("input[name='"+nameElemento+"']").val();

	var textoElemento ;
	textoElemento = consultarTextoRespuesta(tipoElemento,nameElemento);

	wResp = "OK"



	if (clase.indexOf("FECHA") >= 0) {
		if (!isDate(texto)) {
			wResp = "requiere una fecha correcta";
		}
	}
	if (clase.indexOf("CUIT") >= 0) {
		if (!isCuit(texto)) {
			wResp = "requiere un cuit correcto (nn-nnnnnnnn-n)";
		}
	}

	if (clase.indexOf("EMAIL") >= 0) {
		if (!isEmail(texto)) {
			wResp = "requiere un email correcto";
		}
	}
	if (clase.indexOf("SOLONUMERICO") >= 0) {
		if (!isSoloNumerico(texto)) {
			wResp = "requiere solo ingresar numeros";
		}
	}
	if (clase.indexOf("SOLOALFABETICO") >= 0) {
;
        	for (x of texto) {
        		wCaracter = x;
        		if (/^([0-9])*$/.test(wCaracter)) {
        			wMensaje = "NO ingresar numeros, es campo puramente alfabetico.";
        			break;
        		}
        	}	
        	wResp = wMensaje;			
	}

	if (clase.indexOf("ALFANUMERICO") >= 0) {

	}	
	return wResp;
}


function validarInputTextarea(nameElemento,tipoElemento) {

	var texto;
	texto = $("textarea[name='"+nameElemento+"']").val();

	if (texto == ""){
		return false;
	}

	if (texto.length > 4000){
		alert("Debe ingresar menos de 4000 caracteres para poder enviar la encuesta.");
		return -1;
	}else{
		return true;
	}

	var textoElemento ;
	
	textoElemento = consultarTextoRespuesta(tipoElemento,nameElemento);

	if (tipoElemento.toUpperCase() == "TEXTAREA"|| tipoElemento.toUpperCase() == "TEXT"){
		if (textoElemento == texto){
			return false;
		}else{
			return (texto!="");
		}
	}
}

function validarSELECT(name) {
	var opcion;

	opcion = $("select[name='"+name+"']").val();

	return (opcion!="-1111");
}

function isDate (txtDate) {
    var currVal = txtDate;
    if (currVal == '')
       return false;

  var rxDatePattern = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/;
  var dtArray = currVal.match(rxDatePattern); 

  if (dtArray == null)
      return false;


   var dtDay = dtArray[1];
   var dtMonth = dtArray[3];
   var dtYear = dtArray[5];

  if (dtMonth < 1 || dtMonth > 12)
      return false;
  else if (dtDay < 1 || dtDay > 31)
      return false;
  else if ((dtMonth == 4 || dtMonth == 6 || dtMonth == 9 || dtMonth == 11) && dtDay == 31)
      return false;
  else if (dtMonth == 2) {
      var isleap = (dtYear % 4 == 0 && (dtYear % 100 != 0 || dtYear % 400 == 0));
      if (dtDay > 29 || (dtDay == 29 && !isleap))
          return false;
  }

  return true;
}

function isCuit (txtCuit) {
    var cuitReg = /^[2-3]{1}\d{1}-\d{8}-\d{1}$/;
    if(!cuitReg.test(txtCuit)) {
       return false;
    }
    return true;
}

function isDni (txtDni) {
    var dniReg = /^d{8}$/;
    if(!dniReg.test(txtDni)) {
       return false;
    }
    return true;
}

function isEmail (txtEmail) {
    var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
    if(!emailReg.test(txtEmail)) {
       return false;
    }
    return true;
}

function isSoloNumerico (txtNumerico) {
    var numeroReg = /\s*[0-9,\s]+\s*$/;
    if(!numeroReg.test(txtNumerico)) {
       return false;
    }
    return true;
}

function isSoloAlfabetico (txtAlfabetico) {

    return true;
}

function isAlfaNumerico (wTexto) {

    return true;
}

</script>
<script>
	setTimeout(function () {
		try {
		   cantLlamadas = 0;
		   llamadorAlServidor (cantLlamadas);
	   } catch {
	   	alert("error dentro del try-catch");
	   }
	}, 100);

	function llamadorAlServidor (cantLlamadas) {
		cantLlamadas = cantLlamadas + 1;
   	param="q="+cantLlamadas;
      Xurl = "mantenerConexion.asp?"+param; 
      var request = $.ajax({
         url: Xurl,
         type: "POST",
         contentType:"application/x-www-form-urlencoded;charset=UTF-8",
         data: { },
         dataType: 'text',
         // crossOrigin: true,
         async: false,
         error: function(xhr, ajaxOptions, thrownError) {
            console.log("xhr:" + xhr +"\najaxOptions:" + ajaxOptions +"\nthrownError:" + thrownError);
            alert("Se ha producido un Error. La informacion pueda estar incompleta.\nReportar los siguientes datos:\nUrl:"+Xurl+"\nDatos del Error: xhr" + xhr + ' - thrownError:' + thrownError + " - ajaxOptions:" + ajaxOptions);
         },
         success: function(datosRta) { 
            //alert(datosRta);
            // console.log("llamada:" + datosRta);
            if (cantLlamadas < 360) {
	            setTimeout(function () {
	            	llamadorAlServidor (cantLlamadas);
	            }, 10000);
         	} else {
         		alert("Ha caducado el tiempo de carga");
         		window.location.reload();
         	}
        }
      });
}
</script>

<script>
$(document).ready(function() {
	$('.estrella').click(function() {
		asignarValorYClases(this);
    });

// LO SACO. QUEDA SOLAMENTE CUANDO SE HACE CLICK SOBRE LA ESTRELLA
//    $('.estrella').hover(function() {
//		asignarValorYClases(this);
//    });


    function asignarValorYClases(objeto) {
	
		wId = $(objeto).attr("id");
    
		var myArray = wId.split('-');
		var miPregunta = myArray[0];
    

	
		xRespuesta = $(objeto).val();
	
		$('#'+miPregunta+'-999').val(xRespuesta);
		xTitle = $(objeto).attr("title");

	
		wName = $(objeto).attr("name");
		


		$('[name="'+wName+'"].estrella svg').each( function() {
			$(this).removeClass('marcado');
		});
    
		// Agregar la clase "marcado" al SVG del botón clickeado
		$(objeto).find('svg').addClass('marcado');
		$('[name="'+wName+'"].estrella').each( function() {
			titleHermano = $(this).attr("title");
			if (parseInt(titleHermano) < parseInt(xTitle)) {
				$(this).find('svg').addClass('marcado');
			}
		});
    }
});

</script>

</body>
</HTML>