GLB.namespace("GLB.util");
GLB.util.delegate = function(){
	/*
		.version: 1.0
		
		.date:
		20/09/2007
		
		.usage:
		obj1.function = GLB.util.Delegate.create(obj2, "method");
	*/
	return {
		create:function(obj, method){
			
			if(typeof(method) != "string" || typeof(obj) != "object" || typeof(obj[method]) != "function") return null;
			return function(){
				return obj[method].apply(obj, arguments);
			}			
		}
	}	
}();