//cross browser compliant addEvent
function addEvent(oObj, sEvt, fFunc, bCaptures) {
	if (!bCaptures) { bCaptures = false; } //set this to false by default
	if (oObj.attachEvent)
		{
		//must be IE	
		oObj.attachEvent("on" + sEvt,fFunc);
		}
		else
		{
		//must be dom compliant browser	
		oObj.addEventListener(sEvt,fFunc,bCaptures);
		}
}

function stopDefault(event) {
	if (typeof event == "undefined")
		{
		event = window.event; //must be IE, lets convert it to DOM	
		}
	
	if (typeof event.preventDefault == "undefined")
		{
		event.returnValue = false; //the IE way	
		}
		else
		{
		event.preventDefault(); // Dom Approach	
		}
}

function thisTarget(event) {
	if (typeof event == "undefined")
		{
		event = window.event; //must be IE, lets convert it to DOM	
		}
	
	if (event.currentTarget == "undefined")
		{
		return event.srcElement; //the IE way		
		}
		else
		{
		return event.currentTarget; // Dom Approach	
		}
	
}
