/* Remove all child elements */
function removeChilds(element) {
	while (c = element.firstChild) {
		element.removeChild(c);
	}
}

function hideElement(element) {
	element.style.display="none";
}
function showElement(element, display) {
	if (!display) display="block";
	element.style.display=display;
}