function addToCart(prodId, manualShip)
{
	// Pathman 03-Mar-2007 Added logic to show alert on a manual shipping item [Begin]
	if(manualShip == 'Y')
		alert('This product needs the shipping cost calculated manually depending on your delivery location. Please note that you will be contacted by Living Morocco shortly, after placing the order, with the actual shipping charges (Payable Separate).');
	// Pathman 03-Mar-2007 Added logic to show alert on a manual shipping item [End]

	fieldList = document.getElementById('prop_tag_list').value;

	arrayOfFields = fieldList.split(',');
    nameValuePairs ='';
    aLength = arrayOfFields.length; 

    if(fieldList != '')
	{
		for (var i=0; i < aLength; i++) 
		{
		   nameValuePairs = nameValuePairs +'&prop' + arrayOfFields[i] +'=' + document.getElementById('prop'+arrayOfFields[i]).value;
		}
	}
	url = 'index.php?preq=shoppingcart&action=add&productId='+prodId+nameValuePairs;
	location.href = url;
}
function submitForm(postaction)
{
	document.form1.__postaction.value = postaction;
	document.form1.submit();
}

function confirmClear()
{
	if(confirm('Do you really want to clear all the items from your cart?'))
	{
		document.form1.__postaction.value = 'clear';
		document.form1.submit();
	}

}