
	/* generic function to add an event handler -
		
		arguments:
		eventObject: a reference to the object to which the event handler is attached
		event: name of the event - eg. load, click, release, press, etc.
		function: name of the callback function

		example call:
		addEvent(window, "load", init);
						
	*/

	function addEvent(elm, evType, fn, useCapture) {
			elm["on"+evType]=fn;return;
	}

