/**
 * Contains Javascript functionality for extending MochiKit behaviour.
 *
 * @copyright		2000-2006 CARE Internet Services B.V. All Rights Reserved
 * @internal		$Workfile: MochiKitFix.js$
 * @internal		$Date: 03-08-07 08:19:15 AM$
 * @author			$Author: robert$
 * @version			$Revision: 1$
 *
 * $NoKeyword$
 */

/**
 * If the MochiKit function for removing an element
 * does not exists, create it here.
 * Function was taken from the MochiKit 1.4 source.
 */
if (!MochiKit.DOM.removeElement)
{
	/*
	 * Remove and return node from a DOM tree.
	 *
	 * @param node The DOM element (or string id of one) to be removed
	 * @return The removed element
	 */
	MochiKit.DOM.prototype.removeElement = function(node)
	{
		var e = MochiKit.DOM.getElement(node);
		e.parentNode.removeChild(e);
		return e;
	} // function removeElement
}