//looks for elements with a particular class and deletes them
//called from the end of a shoshkeles flash movie, for example,
//by passing in 'div' and 'shoshkeles'

function removeElements(el, elClass) {
	if (!document.getElementsByTagName) return;
	var theElements = document.getElementsByTagName(el);
	for (var i=0; i<theElements.length; i++) {
		if (theElements[i].className.match([elClass])) {
			var theChild = theElements[i];
			var theParent = theElements[i].parentNode;
			theParent.removeChild(theChild);
		}
	}
}
