/**
 * @author rmitrica
 */

divHandler = function(){
	
	var div;
	
	this.getDiv = function(divName){
		if (divName) div = divName;
	}
	
	this.OnSuccess = function(){
		document.getElementById(div).innerHTML = this.GetResponseText();
	}

	this.GetData = function(url,divName){
		
			this.getDiv(divName)
			this.InitializeRequest('GET', url);
			this.Commit(null);
		
	}
}
divHandler.prototype = new ajax(); 
 
