var retorno = "";
var cuantas = 0 ;

function getxmlhttp (){

var xmlhttp = false;

try {

xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {

try {

xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {

xmlhttp = false;
}
}

if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}

function processajax (obj, serverPage){

var theimg;
xmlhttp = getxmlhttp ();
xmlhttp.open("POST", serverPage);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
if (cuantas == 0){ 
	retorno = document.getElementById(obj).innerHTML;
	cuantas = 1;
}
document.getElementById(obj).innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}

function cerrar_amenu(obj){
document.getElementById(obj).innerHTML = retorno;
}