
function insertWKB(artikel)
{if(window.XMLHttpRequest)
{http=new XMLHttpRequest();}
else if(window.ActiveXObject)
{http=new ActiveXObject("Microsoft.XMLHTTP");}
if(http!=null)
{var url="insert_warenkorb.php?insert="+artikel;http.open("GET",url,true);http.onreadystatechange=function()
{if(http.readyState==4)
{var anzahl=http.responseText;aktualisierung(anzahl,artikel);}}
http.send(null);}}
function insertWKBnoC(artikel,sid)
{if(window.XMLHttpRequest)
{http=new XMLHttpRequest();}
else if(window.ActiveXObject)
{http=new ActiveXObject("Microsoft.XMLHTTP");}
if(http!=null)
{var url="insert_warenkorb.php?insert="+artikel+"&PHPSESSID="+sid;http.open("GET",url,true);http.onreadystatechange=function()
{if(http.readyState==4)
{var anzahl=http.responseText;aktualisierung(anzahl,artikel);}}
http.send(null);}}
function aktualisierung(anzahl,artikel)
{document.getElementById("warenkorb").innerHTML=anzahl;document.getElementById("wkb_"+artikel).innerHTML="<img src=\"graphics/bereits_im_warenkorb.gif\" width=\"260\" height=\"30\" title=\"Artikel ist bereits im Warenkorb\" />";}
function removeWKB(artikel)
{if(window.XMLHttpRequest)
{http=new XMLHttpRequest();}
else if(window.ActiveXObject)
{http=new ActiveXObject("Microsoft.XMLHTTP");}
if(http!=null)
{var url="remove_warenkorb.php?remove="+artikel;http.open("GET",url,true);http.onreadystatechange=function()
{if(http.readyState==4)
{location.reload();}}
http.send(null);}}
function removeWKBnoC(artikel,sid)
{if(window.XMLHttpRequest)
{http=new XMLHttpRequest();}
else if(window.ActiveXObject)
{http=new ActiveXObject("Microsoft.XMLHTTP");}
if(http!=null)
{var url="remove_warenkorb.php?remove="+artikel+"&PHPSESSID="+sid;http.open("GET",url,true);http.onreadystatechange=function()
{if(http.readyState==4)
{location.reload();}}
http.send(null);}}
