document.write(''); document.write(''); document.write(''); document.write(''); var browsername = navigator.userAgent.toLowerCase(); function getParentId(el, tagName){ var parentname = el.parentNode.parentNode; var idname = parentname.id.split('_'); return idname[1]; } function Werteliste(querystring) { if(querystring == '') return; var wertestring = unescape(querystring); wertestring = wertestring.slice(1); var paare = wertestring.split("&"); for (var i=0; i < paare.length; i++) { var name = paare[i].substring(0, paare[i].indexOf("=")); var wert = paare[i].substring(paare[i].indexOf("=")+1, paare[i].length); this[name] = wert; } } function addArticle(id, anzeigeid){ /* var liste = new Werteliste(window.location.search); var dssid =''; for( eigenschaft in liste ) { if(eigenschaft =='dssid'){ var dssid =liste[eigenschaft]; } }*/ var url = 'frontend/warenkorbfunctions.cfm?AddArticle='+id+'&dssid='+DSSID; var myAjax = new Ajax.Request( url, {method: 'POST', onSuccess: function(response){ var response = response.responseText Element.update(anzeigeid,response); new Effect.Appear(anzeigeid); new Effect.Fade(anzeigeid,{delay:3.0}); updateArticleList(); }, onFailure: function(){alert('da ist etwas schief gegangen...'+response)} }); } function updateArticleList(){ /* var liste = new Werteliste(window.location.search); var dssid =''; for( eigenschaft in liste ) { if(eigenschaft =='dssid'){ var dssid =liste[eigenschaft]; } } */ var url = 'frontend/warenkorbfunctions.cfm?getItemsAsTextlist&dssid='+DSSID; var myAjax = new Ajax.Request( url, {method: 'POST', onSuccess: function(response){ var response = response.responseText //alert(response); Element.update('warenbody',response); /*if(response.length !=0){ $('kasse').style.display='block'; } if (response.length ==0){ $('kasse').style.display='none'; }*/ }, onFailure: function(){alert('da ist etwas schief gegangen...'+response)} }); } function deleteArticle(idx){ /* var liste = new Werteliste(window.location.search); var dssid =''; for( eigenschaft in liste ) { if(eigenschaft =='dssid'){ var dssid =liste[eigenschaft]; } }*/ var url = 'frontend/warenkorbfunctions.cfm?deleteArticle='+idx+'&dssid='+DSSID; var myAjax = new Ajax.Request( url, {method: 'POST', onSuccess: function(response){ var response = response.responseText Element.update('messagex',response); new Effect.Appear('messagex'); new Effect.Fade('messagex',{delay:3.0}); updateArticleList(); }, onFailure: function(){alert('da ist etwas schief gegangen...'+response)} }); }