
function merkliste(id){
  httpObject = ajaxInit();
  if (httpObject != null) {
    // parameter erstellen
    var param="id="+id;
	// übergeben
  httpObject.open("POST", "merkliste.asp?art=E", true);
	httpObject.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  httpObject.setRequestHeader("Content-length", param.length);
  httpObject.setRequestHeader("Connection", "close");
	httpObject.onreadystatechange = handle_anlegen;
  httpObject.send(param);
 } // IF
 window.location.reload()
}

function handle_anlegen() {
//  alert(httpObject.responseText);
}

function ajaxInit()
{
var xmlHttp=null;
try
  {  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return xmlHttp;
      }
    }
  }
	return xmlHttp;
}
