function Add(Fce,Id,Url)
{
  var e = document.getElementById(Fce + 'Add' + Id);
	var Add = 0;
	if (e.className == 'Add') {
    Add = 1;
    e.className = 'Remove';
    e.innerHTML = 'Remove';
  }
  else {
    e.className = 'Add';
    e.innerHTML = 'Add';
  }

	var
		$http,
		$self = arguments.callee;

  if (window.XMLHttpRequest) {
		$http = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			$http = new ActiveXObject('Msxml2.XMLHTTP');
		} catch(e) {
			$http = new ActiveXObject('Microsoft.XMLHTTP');
		}
	}

	if ($http) {
		$http.onreadystatechange = function()
		{
			if (/4|^complete$/.test($http.readyState)) {
				document.getElementById('ShoppingCartOverview').innerHTML = $http.responseText;
			}
		};
		$http.open('GET', Url + 'tools/shopping_cart_overview.php?Fce=' + Fce + 'Add&Id=' + Id + '&Add=' + Add, true);
		$http.send(null);
	}
}

function UpdateFeedbacks(Url)
{
	var
		$http,
		$self = arguments.callee;

  if (window.XMLHttpRequest) {
		$http = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			$http = new ActiveXObject('Msxml2.XMLHTTP');
		} catch(e) {
			$http = new ActiveXObject('Microsoft.XMLHTTP');
		}
	}

	if ($http) {
		$http.onreadystatechange = function()
		{
			if (/4|^complete$/.test($http.readyState)) {
				document.getElementById('Feedbacks').innerHTML = $http.responseText;
			}
		};
		$http.open('GET', Url + 'tools/feedbacks.php', true);
		$http.send(null);
	}
}

function RunTimer(Url) {
  UpdateFeedbacks(Url)
  window.setInterval("UpdateFeedbacks('" + Url + "')", 15000); //1000 = 1 sekunda
}

