if (typeof(eProductPanelObject) == 'undefined') 
{
    eProductPanelObject = function(objectName, ajaxEventUID)
    {
    	this.attrChoice      = new eAttrChoiceObject(objectName + '__ajaxEventUID', ajaxEventUID);  
    	this.wishlistManager = new eWishlistManagerObject(objectName + '__ajaxEventUID', ajaxEventUID);
        this.objectName = objectName;
    }
}
eProductPanelObject.prototype.addToCart = function(productId, quantity)
{
	quantity = $('#'+this.objectName+'ddlQuantity'+productId).length ? $('#'+this.objectName+'ddlQuantity'+productId).val():quantity;
    this.attrChoice.setProductID(productId);
	this.attrChoice.setQuantity(quantity);
    this.attrChoice.getAttributes();
}

eProductPanelObject.prototype.addToCartProduct = function(productId, quantity)
{
	this.attrChoice.setProductID(productId);
	this.attrChoice.setQuantity(quantity);
    this.attrChoice.getAttributes();
}
