
			function descargarEstadistica(doc) {
				ruta='/previsional/pdf/estadisticas/'+doc
				document.location.href=ruta;
			return false;

			}

		function solo_numeros(componente){
			componente.value = parseInt(componente.value)
			if (isNaN(componente.value))
				{
				return componente.value=" "
				}
			else{
				return componente.value
				} 
		}

//-------EFECTO DE CAMBIO DE COLOR DE LAS FILAS -------------------
			function mOvr(src) {
				src.style.cursor = 'pointer';
				src.bgColor = '#eeeeee';
			}

			function mOut(src){
				src.style.cursor = 'default';
				src.bgColor = '';
			}

//----------MUESTRO EL CUADRO DE BUSQUEDA DE BENEFICIARIO CUANDO SELECCIONO JUBILACION O PENSION----------------
			function muestroBusqueda(comp) {
				valor=comp[comp.selectedIndex].value;
				if (valor==2){//---el 2 es el indice de PENSION en la tabla de tipo de expedientes
					ocargo1				=document.getElementById('busq1');
					ocargo2				=document.getElementById('busq2');
						ocargo1.style.display	='inline';
						ocargo2.style.display	='inline';

				}else{
					ocargo1			= document.getElementById('busq1');
					ocargo2			= document.getElementById('busq2');
					oafi			= document.getElementById('afi');
					odoc_nroBusqueda	= document.getElementById('doc_nroBusqueda');
						ocargo1.style.display	= 'none';
						ocargo2.style.display	= 'none';
						oafi.innerHTML		= '';
					odoc_nroBusqueda.value='';
				}
			}


//----------CREO EL OBJETO AJAX----------------------------------------------------
				function ajaxobj() {
					try {
								_ajaxobj = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
								try {
											_ajaxobj = new ActiveXObject("Microsoft.XMLHTTP");
								} catch (E) {
											_ajaxobj = false;
								}
					}
					if (!_ajaxobj && typeof XMLHttpRequest!='undefined') {
								_ajaxobj = new XMLHttpRequest();
					}
					return _ajaxobj;
				}


		function validoenter(comp){
			tecla=(document.all) ? comp.keyCode : comp.which;
			if(tecla==13) {
				window.event.keyCode=0;
				alert("has apretado intro");
			}
		}


//----------BUSCO JUBILADO PARA CARGAR PENSIONES-------------
				function buscoResoluciones(pagina){
					oresoluciones	= document.getElementById('resoluciones');
					onro_res	= document.getElementById('nro_res');
					oanio		= document.getElementById('anio');
						oAjax=ajaxobj();
						funcion			= 'buscoResolucion';
						funcion_send		= 'funcion='+funcion;
						valores_send		= '&nro_res='+onro_res.value+'&anio='+oanio.value+'&pagina='+pagina;
						url			= '../includes/inc.resinternas.php?'+funcion_send+valores_send;
						oAjax.open('GET',url,true);
						valores='';
							oAjax.onreadystatechange=function(){
								if (oAjax.readyState==4){
										if(oAjax.status==200){
												valores			= oAjax.responseText;
												oresoluciones.innerHTML	= '';
												oresoluciones.innerHTML	= valores;
										}
										if(oAjax.status==404){
											alert ("no se encontro la URL");
										}

								}
							}
						oAjax.send(null);
				}
				 
