  // Funciones para consultas y descargas de usuarios SINLI
  // ======================================================

  function consultar()
	 {   
	  var opciones="toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=Yes, width=700, height=490, top=50, left=50";
     window.open('/asp-bin/Sinli/Consulta/UsrSinli.asp?'
	         + 'razon_social=' + document.getElementById ('n_empresa_cons').value + '&'
			 + 'sector=' + document.getElementById('cmbSector').value + '&'
			 + 'Provincia=' + document.getElementById('cmbProvincia').options[document.getElementById('cmbProvincia').selectedIndex].text	 + '&'
			 + 'Buzon_SINLI=' + document.getElementById ('buzon_SINLI').value ,"",opciones); 
		
    }
	
	function camposNoNulos()
	{
		 if ((document.getElementById('n_empresa_des').value == "")
	        || (document.getElementById('persona').value == "")
		       || (document.getElementById('codSINLI').value == ""))
		 {
			alert("La solicitud está incompleta. Los campos señalados con '*' deben contener algun valor...\n");
			document.getElementById('n_empresa_des').focus();
			return false;
          }

	   return true;
   }
   
    function descargar()
	{
		   if (camposNoNulos())
            {
			   window.location='/asp-bin/Sinli/SINLI-Libros.asp?' 
			  + 'Destino=/Descargas/Sinli/Descarga_Usr_SINLI.asp' + '&'
			  + 'n_empresa=' + document.getElementById('n_empresa_des').value + '&'
			  + 'persona=' +  document.getElementById('persona').value + '&'
			  + 'telefono=' + document.getElementById('telefono').value + '&'
			  + 'BuzonSINLI=' + document.getElementById('codSINLI').value + '&'
			  + 'Observaciones=' + document.getElementById('observaciones').value;
			}
	}