function AjaxCell(leCellAjax){

	var ajaxRequest = leCellAjax;
	var cellDivID = null;
	
	this.sendAJAXRequest = function(cgiArray, responseContainerId) {
		cellDivID = responseContainerId;
		this.cellDivID = responseContainerId;
		for(var i = 0; i < cgiArray.length; i++){
			leCellAjax.addRequestCGI(cgiArray[i].name, cgiArray[i].value);
		}
		leCellAjax.setCallbackFunction(getAJAXResponse);				
		leCellAjax.sendAJAXGETRequest();
	}

 	// make sure the ajaxData is base64-decoded
	this.send = function(ajaxParamName, ajaxData, customActionParamName, ajaxAction, containerParamName, divIdentifier){
		ajaxCellManager.sendAJAXRequest(new Array(	new ajaxCGIParameter(ajaxParamName, theOdeUtils.decode64(ajaxData)), 
													new ajaxCGIParameter(customActionParamName, ajaxAction), 
													new ajaxCGIParameter(containerParamName, divIdentifier)), divIdentifier);
	}
	
	function getAJAXResponse(){
		responsText = ajaxRequest.getResponseText();
		if(responsText != null){
			document.getElementById(cellDivID).innerHTML = ajaxRequest.getResponseText();
		}
	}
}

function ajaxCGIParameter(paramName, paramValue){
	this.name = paramName;
	this.value = paramValue;
}

