function swapVisibility(id) {
	if (document.getElementById(id) != null) {
		if (document.getElementById(id).style.display != 'block')
			showElement(id);
		else
			hideElement(id);
	}
}

function hideElement(id) {
	document.getElementById(id).style.display = 'none';
}

function showElement(id) {
	document.getElementById(id).style.display = 'block';
}