function getAnonymousElementByAttribute(Element, attr, value, intDeeper, onlyOne)
	{
	if (intDeeper == undefined)
		intDeeper = 1;
	
	if (onlyOne == undefined)
		onlyOne = true;
		
	var Elements = new Array();
	var children = Element.childNodes;
	var i;
	for (i = 0; i < children.length; i++)
		{
		if (children[i].getAttribute)
		    childAttribute = children[i].getAttribute(attr);
		else
		    childAttribute = null;
		    
		if (childAttribute == value)
			{
		    Elements[Elements.length] = children[i];
			if (onlyOne)
				{
			    return Elements;
				}
			}
		if ((intDeeper != 1)&&(children[i].tagName)&&(children[i].childNodes.length > 1))
			{
			Elements = Elements.concat(getAnonymousElementByAttribute(children[i],attr,value,intDeeper - 1,onlyOne));
			}
		if (Elements.length > 1 && onlyOne)
			{
		    return Elements;
			}
		}
	return Elements;
	}