function nuevo_ajax ()
{
	var xmlhttp = false;
	try
	{
		// Creación del objeto ajax para navegadores diferentes a Explorer
		xmlhttp = new ActiveXObject ("Msxml2.XMLHTTP");
	}
	catch (e)
	{
		// o bien
		try
		{
			// Creación del objet ajax para Explorer
			xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP");
		}
		catch (E)
		{
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined')
	{
		xmlhttp = new XMLHttpRequest ();
	}
	return xmlhttp;
}


function get_html (id_obj, destino, metodo)
{
	var ajax = false;
	var obj = document.getElementById (id_obj);
	ajax = nuevo_ajax ();
	ajax.open (metodo, destino+"&ms="+new Date().getTime());
	ajax.onreadystatechange = function ()
	{
		if (ajax.readyState == 4 && ajax.status == 200) 
		{
			txt = unescape (ajax.responseText);
			txt = txt.replace (/\+/gi, " ");
			obj.innerHTML = txt;
		}
	}
	ajax.send (null);
}

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function EmptyContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).innerHTML='';
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}