function showHideStorePopup(eventSwitch, info, e) {

	var popup 	= document.getElementById('storePopup');
	var content = document.getElementById('storePopupContent');

	var yPosition = document.documentElement.scrollTop;
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	if (eventSwitch == 1 ){

		popup.style.display='block';
		var popLeft = (screenWidth/2) - 165;
		var popTop = yPosition + ((screenHeight/2) - (popup.offsetHeight/2))-100;
		popup.style.left = popLeft+'px';
		popup.style.top = popTop+'px';
		content.innerHTML = info;

	} else {
		popup.style.display='none';
	}

}

function addToStore(idCustomer, idProduct, idCategory) {
	advAJAX.get({
		url: "ajaxActions.php?ajax=4",
		parameters : {
		"idCustomer" : idCustomer,
		"idProduct"  : idProduct,
		"idCategory" : idCategory
		},
		onSuccess : function(obj) {
			var resp = obj.responseText;
			showHideStorePopup(1,resp);
		},

		onError : function(obj) { alert("Error: " + obj.status); }
	});
}