function contentDisp(id, item)
{
	var size = $('#prod_size' + id).get(0).selectedIndex;
	var sizedes = $('#prod_size' + id).val();
	
	$.ajax({
		type: 'GET',
		context: document.body,
		url : 'managecart.php?id=' + id + '&size=' + size,
		beforeSend: function() {
			var top = ($(window).height()/2)-100;
			$('BODY').append("<div id='msgbox'><p style='line-height:32px;font-size:14px; '>Processing request. Please wait...</p></div>");
			$('#msgbox').css('left', $(document).width() / 2 - (150));
			$('#msgbox').animate({top:$(window).scrollTop()+top+'px' },{queue: false, duration: 0});  
			$('#msgbox').fadeIn('fast');
			$(window).scroll(function(){
				$('#msgbox').animate({top:$(window).scrollTop()+top+'px' },{queue: false, duration: 0});  
			});		
		},
		success : function (data) {
			$('#cartsimple').html(data);
			$('#msgbox').fadeOut('fast');
			var msg = '<p>1 x ' + item + ' - ' + sizedes + ' has been added to your shopping cart.</p><p>To add, edit, view, or purchase items click on the buy now button located at the top right hand side of this page.</p>'
			jAlert('success', msg, 'Shopping Cart');
		},
		error: function (xhr, ajaxOptions, thrownError){
			$('#msgbox').fadeOut('fast');	
			alert(thrownError);
		}
	});
}

function priceDisp(id, size)
{
	$.ajax({
		type: 'GET',
		url : 'prices.php?size=' + size + '&id=' + id,
		success : function (data) {
			$('#prodprice'+ id).html(data);
		}
	});	
}
