// =========================================================================================
// ================================================================================= AJAX ==
//==========================================================================================

// instancia do objeto XMLHTTP
//============================================================================================
	function openAjax() {
		var ajax;
		try {
			ajax = new XMLHttpRequest();} 
		catch(ee) {
			try {
				ajax = new ActiveXObject("Msxml2.XMLHTTP");} 
			catch(e) {
				try {
					ajax = new ActiveXObject("Microsoft.XMLHTTP");} 
				catch(E) {
					ajax = false; }	} }
		return ajax;}

// captura elemento pelo ID
//============================================================================================
	function getID(ID) {
			return document.getElementById(ID);}

// captura elemento pela TAG NAME
//============================================================================================
	function getTN(tagname) {
		return document.getElementsByTagName(tagname);}
