function addItemToCart(){
	
	//alert('check');
	
	/*var name = document.getElementById('name');
	var nameError = document.getElementById('name-required');
	
	var country = document.getElementById('country');
	var countryError = document.getElementById('country-required');
	
	var stext = document.getElementById('shortText');
	var stextError = document.getElementById('stext-required');
	
	var ltext = document.getElementById('longText');
	var ltextError = document.getElementById('ltext-required');
	
	var errorCount = 0;
	
	nameError.innerHTML = "";
	if(name.value.length == 0){
		nameError.innerHTML = "- please enter a name";
		errorCount++;
		}
	
	countryError.innerHTML = "";
	if(country.value == 0){
		countryError.innerHTML = "- please select a country";
		errorCount++;
		}
		
	stextError.innerHTML = "";
	if(stext.value.length == 0){
		stextError.innerHTML = "- please enter a short text";
		errorCount++;
		}
	
	ltextError.innerHTML = "";
	if(ltext.value.length == 0){
		ltextError.innerHTML = "- please enter a long text";
		errorCount++;
		}
		
	if(errorCount == 0){*/
		
		
			var name = $("input#m").val();
			var productID = $("input#productID").val();
			var quantity = $("input#quantity").val();
			
			
			
			  var dataString = 'm='+ name + '&productID=' + productID + '&quantity=' + quantity;
			  //alert (dataString);
			  //return false;
			  //dataString = "";
			  //$('#popup > .product').html('<p style="padding:20px">Please wait while the product is added to the bag.</p>');
			  //$.fn.colorbox.close();
			  
			  $.ajax({
				type: "POST",
				url: "/cart.php",
				data: dataString,
				success: function() {
				  $('#footer > .wrapper').load('/cart.php?m=footeronly&rand='+Math.random());
				  
				}
			  });
			  return false;
		
		
		
	/*} else {
		return false;
		}*/
}
