function eWorld_AddEvent(target, eventName, method) { if (target.addEventListener) { target.addEventListener(eventName, method, false); } else if (target.attachEvent) { target.attachEvent("on" + eventName, method); } } function eWorld_RemoveEvent(target, eventName, method) { if (target.removeEventListener) { target.removeEventListener(eventName, method, false); } else if (target.detachEvent) { target.detachEvent('on' + eventName, method); } } function eWorld_FindItem(array, id) { if (typeof array == "undefined" || array == null) { return null; } for (var i=0; i