/*
 * File: Enhancements.js
 *
 * Enhancements Utils library  v0.1  
 *
 * Development Started at: 10.10.2005
 *
 * <script SRC="Enhancements.js"></script>
 * 
 * Some usefull enhancements to base class prototypes
 *  
 */


/*
 * Implement array.push for browsers which don't support it natively.
 */ 
if(Array.prototype.push == null){
	Array.prototype.push = function(){
		for(var i = 0; i < arguments.length; i++){
			this[this.length] = arguments[i];
		};
		return this.length;
	};
}; 

Array.prototype.ContainsNamedObject = function( name )
{
    for ( var i = 0; i < this.length - 1; i++ )
        if ( this[i].name == name )
            return true;
    return false;
}


