function ValidarBusquedaIndex(){
    var busqueda=$("#inputString").val();

	if(busqueda==""){
		jAlert('Por favor ingrese el campo de busqueda', 'PlazaVip');
	}else if(busqueda.length<3){
		jAlert('La busqueda no puede ser menor a 3 caracteres', 'PlazaVip');		
	}else{
		document.busqueda.submit();
	}

}

	function lookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("buscarCoincidencias.php", 
			       {queryString: ""+inputString+"",
			        loadingText: 'Cargando...'
			       }, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	} // lookup
	
	function fill(thisValue) {
		$('#inputString').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
	}