function emptybag() {
var url = "http://www.pazoen.com/js/emptybag.php";
var str = "";
// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	{
		xmlhttp22=new XMLHttpRequest();
		xmlhttp22.onreadystatechange = resChange;
		xmlhttp22.open("POST", url, true);
		xmlhttp22.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
		xmlhttp22.send(str);
	}
	// code for IE
	else if (window.ActiveXObject)
	{
		xmlhttp22=new ActiveXObject("Microsoft.XMLHTTP");
		if (xmlhttp22)
		{
			xmlhttp22.onreadystatechange = resChange;
			xmlhttp22.open("POST", url, true);
			xmlhttp22.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
			xmlhttp22.send(str);
		}
	}
      
    }

function resChange()
{

if (xmlhttp22.readyState==4)
  {
  if (xmlhttp22.status==200)
    {
data = xmlhttp22.responseText;
if (parseInt(data) == 1) {
	document.getElementById("bagnr").innerHTML = 0;
	document.getElementById("cc").innerHTML = "&nbsp;";
}
	}
  }
}