//funcion encarga de crear el objeto
function ajaxInit(){
    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 hideShow(D_LI){
    //_id_cap=document.getElementById(D_A);
    _id_master=document.getElementById(D_LI);
    _id_master.style.display = (_id_master.style.display == "")?"none":"";
    //_id_master.style.fontWeight = (_id_cap.style.display == "")?"bold":"normal";
}

function maximize(_foto, _nro){
    ajax = ajaxInit();
	    ajax.open("GET","loadImagen.php?&foto="+_foto+"&id="+_nro,false);
    ajax.onreadystatechange=function(){
	    if (ajax.readyState==4){
			document.getElementById('foto').innerHTML=ajax.responseText;
		}
    }
    ajax.send(null);
    return;
}
