function adBannerOnOff(obj_id, on_off, db_id) {
	var obj = document.getElementById(obj_id);
	if (on_off == "off") obj.style.display = "none";
	else if (on_off == "on") {
		obj.style.display = "";
		if (db_id != undefined) adBannerAddAppearances(db_id);
	}
}

function adBannerAddAppearances(id) {
	var xmlhttp = false;
	if (window.ActiveXObject) xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	else if (window.XMLHttpRequest) xmlhttp = new XMLHttpRequest();
	xmlhttp.open('GET', id, true);
	xmlhttp.onreadystatechange = function() {
		/*if (xmlhttp.readyState == 1) // Loading
			document.getElementById('main_container').innerHTML = '<div class="loader"></div>';
		else if (xmlhttp.readyState == 4 && xmlhttp.status == 200) // Loaded
		{
			var content = xmlhttp.responseText;
			document.getElementById('main_container').innerHTML = content;
		}*/
	}
	xmlhttp.send(null);
	return;
}

