/* <![CDATA[ */

function addEvent(String_event, Object_instance, Object_functionInstance) {
	var instance = typeof(Object_instance) == "string"?window[Object_instance]:Object_instance;
	if(typeof(window.addEventListener) != "undefined") {
		instance.addEventListener(String_event, Object_functionInstance, false);
	}
	else if(typeof(window.attachEvent) != "undefined") {
		instance.attachEvent("on"+String_event, Object_functionInstance);
	}
	else {
		instance["on"+String_event] = Object_functionInstance;
	}
}

/* ]]> */