function highlightWordGroups(showWords, highlightWords){
	highlightWords = highlightWords.split(',');

	for(j = 0; j < highlightWords.length; j++){
		re = new RegExp('\\b(' + highlightWords[j] + ')\\b', "ig")

		/* snippets */
		spans = document.getElementsByTagName("span");
	   for(i = 0; i < spans.length; i++){
			if(spans[i].className == 'snippet' || spans[i].className == 'highlightedWords') {
				spans[i].innerHTML = spans[i].innerHTML.replace(re, '<b>$1</b>');
			} else if(spans[i].className == 'downloadUrl') {
				spans[i].innerHTML = spans[i].innerHTML.replace(re, '<b>$1</b>');
			}
		}

		/* names */
		anchors = document.getElementsByTagName("a");
	   for(i = 0; i < anchors.length; i++) if(anchors[i].className == 'productName') {
			anchors[i].innerHTML = anchors[i].innerHTML.replace(re, '<b>$1</b>');
		}
	}
}
