function verificar_tipo_ins(obj){
		var tipo = obj.options[obj.selectedIndex].value;
		var input_nombre_tipo = document.getElementById('nombre_tipo');
		if(tipo==9){
			input_nombre_tipo.style.display = '';
		}else
			input_nombre_tipo.style.display = 'none';
	}
	function lookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post(URL, {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					var datos = unescape(data);
					datos = datos.replace(/\+/gi," ");
					$('#autoSuggestionsList').html(datos);
				}
			});
		}
	} // lookup
	
	function fill(thisValue) {
		$('#inputString').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
	}		
