/*

*******************************************************************
File: event.js
Date: 01/04/2005
Purpose: Provides cross-browser routines to identify the current event object and event target

HISTORY:
*******************************************************************

*/

function getEventTarget(e)
{
	// gets the event target object for the current event
	
	if (e)
		return e.target;
	else
		if (window.event)
			return window.event.srcElement;
}

function getEvent(e)
{
	// gets the event object for the current event
	
	if (e)
		return e;
	else
		return window.event;
}