function genKeywords(inCats, keywordCount) {
	var theKeywordPool = new Array();
	var theKeywords = new Array();
	for (var a=0; a<inCats.length; a++) {
		theKeywordPool = theKeywordPool.concat(inCats[a]);
	}
	for (var i=0; i<keywordCount && theKeywordPool.length>0; i++) {
		var rand = Math.floor(Math.random() * theKeywordPool.length);
		if (theKeywordPool[rand] != null && theKeywordPool[rand].length > 0) {
			theKeywords.push(theKeywordPool[rand]);
			theKeywordPool.splice(rand, 1);
		} else {
			i--;
		}
	}
	return theKeywords;
}
