ajaxHtml = function()
{
	this.ajaxHtml = this;
	
	this.zoneId = null;
	this.isAdmin = null;
	this.url = null;
	
	this.OnSuccess = function()
	{
		var reponse = this.GetResponseText();
		
		if (this.zoneId != null)
			document.getElementById(this.zoneId).innerHTML = reponse;
		
		if (!this.isAdmin)
		{
			loadTitre(this.url);
		}
	}
	
	this.OnFailure = function() 
	{
		var reponse = this.GetResponseText();
		AfficherPnlReponse("Erreur...", "Erreur : La page n'a pu &ecirc;tre charg&eacute;e.  Si le probl&egrave;me persiste, veuillez communiquer avec l'administrateur du site : <a href='mailto:admin@axeti.com'>admin@axeti.com</a>");
		//document.getElementById("reponse").innerHTML = "Une erreur est survenue : " + reponse;
	}

	this.Load = function(_url, _zone, _admin, async)
	{
		this.zoneId = _zone;
		this.isAdmin = _admin;
		this.url = _url;

		var noCache=(_url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime();
		this.InitializeRequest("GET", _url+noCache, async);
		this.Commit();
	}
}
ajaxHtml.prototype = new ajax();

objLoadHtml = new ajaxHtml();
