function addEvent(obj, evt, func){
	if(obj.attachEvent){
		return obj.attachEvent(("on"+evt), func);
	}else if(obj.addEventListener){
		obj.addEventListener(evt, func, true);
		return true;
	}
	
	return false;
}

function XMLHTTPRequest(){
	try{
		return new XMLHttpRequest();
	}catch(ee){
		try{
			return new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				return new ActiveXObject("Microsoft.XMLHTTP");
			}catch(E){
				return false;
			}
		}
	}
}
