// JavaScript Document

function Core()
{
	this.addEventListener=function(element,eventName,functionName)
	{
		if(typeof element.addEventListener !='undefined'){ //checks which browser to use this function, HANDY
			element.addEventListener(eventName,functionName,false);
		}else if(typeof element.attachEvent !='undefined'){
			var IEListener=function()
			{
				var event=window.event;
				if(Function.prototype.call)
					functionName.call(element,event);
				else{
					target._currentListener=functionName;
					target._currentListener(event);
					target._currentListener=null;
				}
			};
			element.attachEvent("on"+eventName,IEListener);
		}
	}
	
	this.getAJAXRequest=function()
{
	var http_request;
	
	if(typeof window.XMLHttpRequest != 'undefined')
		http_request=new XMLHttpRequest();
	else if(typeof window.ActiveXObject != 'undefined')
	{
	
	if(!http_request)
		http_request=new ActiveXObject("Microsoft.XMLHTTP");
}

	return http_request;
}
	
	
	
}
