//handle the Ajax response ...
/*local Path*/
//var path='http://localhost/sojourn/public/index/';
/*Live path */
//var path='http://www.sojournrecords.com/sojourn/public/index/';
var path='http://www.sojournrecords.com/index/';
function addtocart(id,name,type,price){
	var myAjax=new Ajax.Request(path+'addtocartajax',
			{method: 'get', parameters: {id:id,name:name,type:type,price:price},
		        onComplete: function handleResponse(transport)
		        {				
				  alert("Added to cart");
				  getcartstatus();
		        }}
			);
}
function getcartstatus(){
	var myAjax=new Ajax.Request(path+'getcartstatus',
			{method: 'get',
		        onComplete: function handleResponse(transport)
		        {			
				  $('cartStatus').innerHTML=transport.responseText;
		        }}
			);
}