//Readying the helpsupport functions
$(document).ready(function() {
    $('#keyword-list-search').keyup( function() { 
		helpsupport_keyword_filter('#keyword-list',$(this).val());
	});
	/*
	*/
	/*
	$('#keyword-list-search').bind("keyup",this,function(e){ helpsupport_keyword_filter(this,$(this).val(),e); })
	*/
});

function helpsupport_keyword_filter(id, txt, e) { 
	m='';
	/*
	if (e.type != "keyup" || (e.type == "keyup" && !txt) || (e.type == "keyup" && txt != this.lastFilterVal && _numCheck())){
		alert(e);
	}
	*/

	//$('#keyword-list span').hide(); 
	//$('#keyword-list span:contains(txt)').show();
	
	//alert('start'+$('#keyword-list span').length);
	/*
	*/
	/*
	$('div#keyword-list span').each(function(i){
		//alert "Item #" + i + ": " + n );
		if($(this).text().toLowerCase().indexOf(txt.toLowerCase()) >= 0 || txt == '') { 
			$(this).show();
		} else { 
			$(this).hide();
		}
		//m = m+$(this).text();
		m = m+i;
	});
	*/
	
	$('div#keyword-list span').hide();
	$('div#keyword-list span:contains('+txt+')').show();
	
	//alert(m);
} 