if (typeof(eCartInfoPanelObject) == 'undefined') 
{
    eCartInfoPanelObject = function(objectName, ajaxEventUID)
    {
    	this.objectName       = objectName;
    	this.ajaxEventUID     = ajaxEventUID;
    	this.container        = '#' + this.objectName;
    }
}
eCartInfoPanelObject.prototype.loadInfo = function()
{    
	var currentObject = this;
	
	var postData = { __callHandler: 'getCartInfo' }; 
	
	postData[currentObject.objectName + '__ajaxEventUID'] = this.ajaxEventUID;
	
	$.post(selfUrl, postData,	
	function(responseData) { 
  		currentObject.onGetResponse(responseData); 
	},
	'json');	
}
eCartInfoPanelObject.prototype.onGetResponse = function(responseData)
{
    if ((typeof(showAJAXDebugInfo) != 'undefined') && responseData.PHPAJAXDebug != null) 
    {
        showAJAXDebugInfo(responseData.PHPAJAXDebug.Info, responseData.PHPAJAXDebug.Owner);
    }
	
	if (responseData.Response.Code != 0)
	{
		alert(responseData.Response.Message);
	}
	else
	{
    	$(this.container).html(responseData.Response.Message);    	    
	}
}
