function getElementsByName(collectionId, elementsType, name)
{
	var i;
	collection = document.getElementById(collectionId).getElementsByTagName(elementsType);

	for ( i = 0;  i < collection.length;  i++ )
		if ( collection[i].getAttribute('name') == name )
			return collection[i];
}
