// 2009-07-15 CBR deaktiviert wege prototype.js konflikten
/**
 * lang.js - manipuliert einige der eingebauten Javascript-Objekte
 *			 (f?gt neue Methoden bzw. ver?ndert diese)
 */
 
/**
 * clones an object 
 * @access	public
 * @param	boolean	deep	specifies, wether to create a shallow or deep clone
 * @return	object
 */
/*
Object.prototype.clone = function(deep)
{
    var newObject = new this.constructor();
    for (p in this) {
        if (deep && typeof(this[p]) == "object") {
            newObject[p] = this[p].clone();
        } else {
            newObject[p] = p;
        }
    }
    return newObject;
}
*/
/**
 * returns the runtime class name of an object
 * @access	public
 * @return 	String
 */
 /*
Object.prototype.getClass = function()
{
    return Object.getClass(this);
}
*/
/**
 * returns the runtime class name of the given object
 * @access	public
 * @static
 * @final
 * @param	Object	instance
 * @return	String	the class name
 */
/*
Object.getClass = function(instance)
{
    if (instance != undefined && typeof(instance) == "object") {
        var props = "";
        for (p in instance) {
            props += p + " = " + instance[p] + "; ";
        }
        if (instance.constructor) {
            var constr = instance.constructor.toString();
            var clazz = constr.substring(constr.indexOf(' '), constr.indexOf('('));
            if (clazz.length > 0) {
                return clazz
            } else {
                return constr;
            }
        }
    } else {
        return null;
    }
}
*/