/* GENERAL FUNCTIONS */
function keepAlive() {
	if (typeof(interval_id) != "undefined") {
		clearInterval(interval_id);
	}
}

function keepAliveSub() {
	if (typeof(sub_interval_id) != "undefined") {
		clearInterval(sub_interval_id);
	}
}

function hideDiv(nm) {
	document.getElementById(nm).style.display = 'none';
}

function showDiv(nm) {
	document.getElementById(nm).style.display = 'block';
}
