function checkListAndShow(checkId, showId, moreThan)
{
	var myList = document.getElementById(checkId);
	if (myList.getElementsByTagName('li').length > moreThan)
		showContainer(showId)
}

function checkContentAndShow(checkId, showId)
{
	var myDiv = document.getElementById(checkId);
	var testString = myDiv.innerHTML.replace("\n", "").replace("\r", "").replace("\t", "").replace(" ", "");
	if (trimAll(testString).length > 0)
		showContainer(showId);
}

function trimAll(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}

function showContainer(showId)
{
	var myContainer = document.getElementById(showId);
	myContainer.style.display = "block";
}