\n\r";
m = aQuant.length - 1;
n = m + 1;
if(subt == 0)
{
tot = 0;
}
countprod = 0;
//-------------------------------------
for (i=0 ; i < n; i++){
if((aQuant[i] != null)&&(aQuant[i] != 0)){
st = eval(aQuant[i]);
pr = eval(aPrice[i]);
if(eval(st) >= eval(staffel3)) {
pr = Math.round(eval(pr)*eval(staffel3prozent));
} else if(eval(st) >= eval(staffel2)) {
pr = Math.round(eval(pr)*eval(staffel2prozent));
} else {
pr = Math.round(eval(pr)*eval(staffel1prozent));
}
cost = eval(st)*eval(pr);
var description = aDescr[i] + " " + aOption[i];
carritoonline+=" \n\r";
carritoonline+="" + aQuant[i] + " | \n\r";
//carritoonline+=" | \n\r";
carritoonline+="· " + description + " | \n\r";
carritoonline+="" + AddDecimal(cost) + "€ | \n\r";
//carritoonline+=" | \n\r";
carritoonline+="
\n\r";
countprod = countprod + 1;
}
}
if(countprod>0){
carritoonline+="\n\r";
carritoonline+="Subtotal: | \n\r";
carritoonline+="" + AddDecimal(subt) + "€ | \n\r";
carritoonline+="
\n\r";
/*carritoonline+="\n\r";
carritoonline+="IVA. 16% | \n\r";
carritoonline+="" + AddDecimal(addtax) + "€ | \n\r";
carritoonline+="
\n\r";*/
carritoonline+="\n\r";
carritoonline+="Total: | \n\r";
carritoonline+="" + AddDecimal(tot) + "€ | \n\r";
carritoonline+="
\n\r";
carritoonline+="\n\r";
carritoonline+=" | \n\r";
carritoonline+="
\n\r";
} else {
carritoonline+=" Su carrito está vacío |
\n\r";
}
carritoonline+="
\n\r";
top.frames[1].document.getElementById("carritoonline").innerHTML = carritoonline;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i