function ecoPopup()
{
	var obj = getObjectFromEvent(arguments[0]);
	
	if(obj)
	{
		var val = getAttributeNS(obj,'http://www.w3.org/2002/06/xhtml2','property','xh2');
		
		if(val)
		{
			window.open('pop_eco.php?popId='+val,'popEco','width=400,height=400,scrollbars=yes');
		}
	}
}

function initEcoPopup()
{
	if(window.dhtmlLoad && document.getElementsByTagName)
	{
		var lEsp = getElementsByClassName(document,'esp-eco','p');
		
		for(var i=0; i<lEsp.length; i++)
		{
			addEvent(lEsp[i],'click',ecoPopup);
		}
	}
}
