home *** CD-ROM | disk | FTP | other *** search
Wrap
<!-- sb2iclear iclear payment --> <!-- (c) Copyright 2001 GS Software --> <!-- --> <SCRIPT LANGUAGE="JavaScript"> var iok=0; function iClearOrder() { var Products=''; var totprice=0; for (var i = 1; i < parent.theBasket.length; i++) { with(parent.theBasket[i]) { if(Attribut1=='') A1=''; else A1=', '+Attribut1; if(Attribut2=='') A2=''; else A2=', '+Attribut2; if(Attribut3=='') A3=''; else A3=', '+Attribut3; if(Textin!='') Txt=', '+Textin; else Txt=''; theitem=Item.substr(Item.indexOf(" ")+1,Item.length-Item.indexOf(" ")-1)+A1+A2+A3+Txt+'::'+Item.substr(0,Item.indexOf(" ")); thequantity =Quantity; itemtotal = 0; if ((parseFloat(Price2)>0) && (parseInt(Quantity) >= parseInt(Quantity2))) theprice=Price2 else if ((parseFloat(Price1)>0) && (parseInt(Quantity) >= parseInt(Quantity1))) theprice=Price1 else theprice = Price; itemtotal = (eval(theprice*thequantity)); temptotal = itemtotal * 100; totprice = totprice + itemtotal; thisvat = (parseFloat(theprice*productvatrate)) / (parseFloat(productvatrate)+parseFloat(100)); thisvat = parseFloat(parent.alterError(thisvat)); Products=Products+theitem+'::'+thequantity+'::'+parent.alterError(theprice-thisvat)+'::'+parent.alterError(theprice)+'::'+productvatrate+':::' } } var postage=0; getdataiclear(); var postage=parseFloat(parent.myshipmentvalue); var discount=0; if ((totprice>={DisAmount1})&({DisCount1} != 0)) discount={Discount1}; if((totprice>={DisAmount2})&({DisCount2}!=0)) discount={Discount2}; var discountamount=totprice*discount/100; var discountprice=totprice-discountamount; if ((discountprice>={PAmount1})&({PAmount1}!=0)) postage={Postage1}; if ((discountprice>={PAmount2})&({PAmount2}!=0)) postage={Postage2}; var finalprice=discountprice+postage; var itemc=0; if (discount>0) { // Products=Products+'Rabatt::0000::1::-'+parent.alterError(parent.alterError(discountamount*100/({VATRATE}+100)))+'::-'+parent.alterError(discountamount)+'::{VATRATE}:::'; Products=Products+'Rabatt::0000::1::-'+parent.alterError(parent.alterError(discountamount*100/({VATRATE}+100)))+'::-'+parent.alterError(discountamount)+'::{VATRATE}:::'; itemc++; } if (postage>0) { var datum = new Date(); var bid = String(datum.getTime()).substr(1,10); Products=Products+'Versandkosten '+parent.myshipmenttext+'::0000::1::'+parent.alterError(parent.alterError(postage*100/({VATRATE}+100)))+'::'+parent.alterError(postage)+'::{VATRATE}:::'; itemc++; } var AMNT = document.forms["orderform"].Rechnungsbetrag.value; var CURR = "EUR"; var ad='http://www.iclear.de/servlets/BuyToolGS?ShopID={iclearshopid}&BasketID='+bid+'&Currency='+CURR+'&ProductIndex='+parseInt(parent.alterError(parent.theBasket.length-1+itemc))+'&Products='+Products; //alert(ad); document.location.href=ad; }; </SCRIPT>