function nuevoAjax()
{ 
	/* Crea el objeto AJAX. Esta funcion es generica para cualquier utilidad de este tipo, por
	lo que se puede copiar tal como esta aqui */
	var xmlhttp=false; 
	try 
	{ 
		// Creacion del objeto AJAX para navegadores no IE
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
	}
	catch(e)
	{ 
		try
		{ 
			// Creacion del objet AJAX para IE 
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
		} 
		catch(E) { xmlhttp=false; }
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp=new XMLHttpRequest(); } 

	return xmlhttp; 
}


function MuestraFoto(foto,img_codigo) {
	//alert(condicion)
	if(foto!="") {
	urlFoto="http://192.168.0.4/vitnik/catalogo/"+foto;
	//MM_swapImage('ImagenCatalogo','"+urlFoto+"','"++"',1);
	document.getElementById("ImagenCatalogo").src=urlFoto;
	}
	/*
	id_layer="CatalogoFoto"
	var ajax
	ajax=nuevoAjax();
	ajax.open("GET", "catalogo_foto.php?img_codigo="+img_codigo+"&algo="+Math.random(), true);
	ajax.onreadystatechange=function()
	{ 
		if (ajax.readyState==1)
		{ 
			document.getElementById(id_layer).innerHTML="Cargando...";
		}
		if (ajax.readyState==4)
		{ 
			
			document.getElementById(id_layer).innerHTML=ajax.responseText;			
			Dibuja();
		} 
	}
	ajax.send(null);
	delete(ajax);
	*/
}

