function Abrir(filename, windowname, L, A){
	JanelaPop = window.open(filename, windowname, "height="+A+", width="+L+", scrollbars=no, resizable=no");
	if ( JanelaPop.document.close() ) {
		JanelaPop.document.close()
	}
}

function switchMenu(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != "none" ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}

try {
	xmlhttp = new XMLHttpRequest();

} catch(ee) {

	try {
		xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
	} catch(e) {
		try {
			xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
		} catch(E) {
			xmlhttp = false;
		}
	}
}

function carrega(_idContainer, _endereco){

	xmlhttp.open('GET',_endereco,true);

	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4){
			//document.getElementById("mainbody").onchange = function() { setupZoom(); }
			retorno=xmlhttp.responseText;
			var tag_container = document.getElementById(_idContainer);
			tag_container.innerHTML=retorno;
			
		}
		setupZoom();
	}
	
	xmlhttp.send(null);
	
	return;
	
}

