<!--//--><![CDATA[//><!--
function getHTTPObject() {   
	var xmlhttp=null;
   	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   	} catch (_e) {
		try {
         	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
       	} catch (_E) { }
   }
   if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
     	try {
        	xmlhttp = new XMLHttpRequest();
     	} catch (e) {
        	xmlhttp = false;
   	 	}
   }
   return xmlhttp;
}

function handleHttpResponse(http,destino) {
	var objeto = window.document.getElementById(destino);
	if (http.readyState == 4) {				
		if (http.status == 200) {
			objeto.innerHTML = http.responseText;
			enProceso = false;
		}
	}
}

function validaObj(destino){
	if(document.getElementById(destino) == null){
		var mensaje = 'El objeto detino \"' + contenedor + '\" no es valido.\n';
			mensaje += 'Verifique que no lo haya digitado mal o \nque no este en blanco.'
		window.alert(mensaje);
		return false;
	}	
	return true;
}

var enProceso = false; // lo usamos para ver si hay un proceso activo
//--><!]]>