function showSuggestions(){
	var suggestions = document.getElementById('searchSuggestions');
	suggestions.style.display = 'block';
}
function hideSuggestions(){
	var suggestions = document.getElementById('searchSuggestions');
	suggestions.style.display = 'none';
}

function updateSuggestions(txt){
	var list = document.getElementById('words');
	list.innerHTML = "";
	if(txt==""){
		for(i=0;i<originalSuggestions.length;i++){		
			list.innerHTML += "<li>"+originalSuggestions[i]+"</li>";
		}
		return true;
	}
	matchFound = false;
	for(i=0;i<allKeywords.length;i++){
		if(allKeywords[i].charAt(0).toLowerCase()==txt.charAt(0).toLowerCase()){
			//alert(allKeywords[i].charAt(0).toLowerCase()+"=="+txt.charAt(0).toLowerCase());
			matchFound = true;
			list.innerHTML += "<li>"+allKeywords[i]+"</li>";
		}
	}
	if(!matchFound){
		list.innerHTML = "<br />no suggested words beginning with '"+txt.charAt(0)+"'<br />";
	}
	return true;
}