
	
	
		function showItemsWEB()
	 {
		index = document.cookie.indexOf("TheBasket");
		countbegin = (document.cookie.indexOf("=", index) + 1);
        	countend = document.cookie.indexOf(";", index);
        	if (countend == -1) {
            		countend = document.cookie.length;
        	}
		fulllist = document.cookie.substring(countbegin, countend);
		subtotal = 0;
		subtot = 0;
		itemlist = 0;
		theitem = 0;
		theoption = 0;
		document.writeln('<Table width=90% align=center>');
		for (var i = 0; i <= fulllist.length; i++) {
			if (fulllist.substring(i,i+1) == '[') {
				itemstart = i+1;
				thisitem = 1;
			} else if (fulllist.substring(i,i+1) == ']') {
				itemend = i;
				thequantity = fulllist.substring(itemstart, itemend);
				itemtotal = 0;
				itemtotal = (eval(theprice*thequantity));
				temptotal = itemtotal * 100;
				subtotal = subtotal + itemtotal;
				itemlist=itemlist+1;
	            
				var y = (Math.round(subtotal * 100) / 100).toString();
                y+= (y.indexOf('.') == -1)? '.00' : '00';
                subtot= y.substring(0, y.indexOf('.') + 3);


			} else if (fulllist.substring(i,i+1) == '|') {
				if (thisitem==1) theitem = fulllist.substring(itemstart, i);
				if (thisitem==2) theprice = fulllist.substring(itemstart, i);
				if (thisitem==3) theoption = fulllist.substring(itemstart, i);
				thisitem++;
				itemstart=i+1;
			}
		}
		if (itemlist == 0){
		 document.writeln('<TR VALIGN=Top><TD align=center><p><b><font color=#000000><b>Ihr Warenkorb ist leer&nbsp;</b></font></p></TD></TR></TABLE>');
		}
		if (itemlist  !== 0){
		document.writeln('<TR><TD align=left><p><b><font color=#FF0000 >&nbsp;&nbsp;'+itemlist+'&nbsp;&nbsp;Artikel</font><br><font color=#000000 >&nbsp;&nbsp;in Ihrem Warenkorb</font><br><font color=#FF0000 ><br><b>&nbsp;&nbsp;Total&nbsp;CHF:&nbsp;'+subtot+'</b></font><br></p></TD></TR>');
		document.writeln('<TR><TD valign=bottom><p><br>&nbsp;&nbsp;&nbsp;<font color=#999999>&#9679;</font>&nbsp;&nbsp;<a href="basket.asp?ID='+theoption+'"  target="_parent" ><b>Warenkorb<a href="basket.asp?ID='+theoption+'" target="_parent"><img src="../Bilder/Shop/Korb.jpg" width="22" height="24" align="absmiddle" border="0" alt="Warenkorb"></a></b></p></TD></TR></TABLE>');
	    }
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		

	}

