var tax = 1.19; var posnums; var Spedition; var Price= new Array(26); Price[1]= new Array(); Price[1][0]=new Array(2,23); Price[1][1]=new Array(10,19); Price[1][2]=new Array(40,16); Price[2]= new Array(); Price[2][0]=new Array(2,23); Price[2][1]=new Array(10,19); Price[2][2]=new Array(40,16); Price[3]= new Array(); Price[3][0]=new Array(2,36); Price[3][1]=new Array(10,35); Price[3][2]=new Array(40,34); Price[4]= new Array(); Price[4][0]=new Array(2,29); Price[4][1]=new Array(10,25); Price[4][2]=new Array(40,24); Price[10]= new Array(); Price[10][0]=new Array(2,35); Price[10][1]=new Array(10,33); Price[10][2]=new Array(40,32); Price[11]= new Array(); Price[11][0]=new Array(2,35); Price[11][1]=new Array(10,33); Price[11][2]=new Array(40,32); Price[12]= new Array(); Price[12][0]=new Array(2,36); Price[12][1]=new Array(10,34); Price[12][2]=new Array(40,33); Price[13]= new Array(); Price[13][0]=new Array(2,29); Price[13][1]=new Array(10,26); Price[13][2]=new Array(40,25); Price[16]= new Array(); Price[16][0]=new Array(2,84); Price[16][1]=new Array(10,81); Price[16][2]=new Array(40,78); Price[17]= new Array(); Price[17][0]=new Array(2,80); Price[17][1]=new Array(10,76); Price[17][2]=new Array(40,68); Price[18]= new Array(); Price[18][0]=new Array(2,112); Price[18][1]=new Array(10,106); Price[18][2]=new Array(40,95); Price[19]= new Array(); Price[19][0]=new Array(2,45); Price[19][1]=new Array(10,40); Price[19][2]=new Array(40,39); Price[20]= new Array(); Price[20][0]=new Array(2,25); Price[20][1]=new Array(10,22); Price[20][2]=new Array(40,21); Price[21]= new Array(); Price[21][0]=new Array(2,29); Price[21][1]=new Array(10,24); Price[21][2]=new Array(40,23); Price[22]= new Array(); Price[22][0]=new Array(2,72); Price[22][1]=new Array(10,68); Price[22][2]=new Array(40,61); Price[25]= new Array(); Price[25][0]=new Array(2,49); Price[25][1]=new Array(10,45); Price[25][2]=new Array(40,40); var Tendays= new Array (); Tendays[1]= 0; Tendays[2]= 0; Tendays[3]= 0; Tendays[4]= 0; Tendays[10]= 0; Tendays[11]= 0; Tendays[12]= 0; Tendays[13]= 0; Tendays[16]= 0; Tendays[17]= 0; Tendays[18]= 0; Tendays[19]= 0; Tendays[20]= 0; Tendays[21]= 0; Tendays[22]= 0; Tendays[25]= 0; var minPrice = 65; function checkint(value){ if(parseInt(value)==value && !isNaN(value)) { return true; } return false; } function checkfield(object) { if(checkint(object.value)) { var ob=object.name.indexOf('['); var cb=object.name.indexOf(']'); var pos=object.name.substring(ob+1,cb); if(calcA(pos) >= 100*100*100){ alert("Menge bitte direkt anfragen."); } } else { object.value="0"; alert("Wert ist keine Ganzzahl"); } } function validatefield(fieldname,length) { if(document.getElementsByName(fieldname)[0].value.length=270 && h>=270) { Spedition[pos]=true; } else { Spedition[pos]=false; } sumA(); return A; } var perMedium; function sumA() { perMedium= new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); var porto=0; for( var i=0; i=minPrice) { document.getElementById('under').style.display='none'; } else { document.getElementById('under').style.display='inline'; } if(Aprice()>=minPrice && valid==true) { try { document.getElementById('toorder').disabled=false; } catch(e){ } document.getElementById('print').disabled=false; } else { try { document.getElementById('order').disabled=true; } catch(e){ } try { document.getElementById('toorder').disabled=true; } catch(e){ } document.getElementById('print').disabled=true; } } function portoSet(porto) { //document.getElementById('porto').innerHTML=toEuro(porto); } function toEuro(value) { var euro=parseInt(value); var cent=Math.round((value-euro)*100); if(cent>=100) { cent-="100"; euro+=1 } if(cent<10) { cent="0"+cent; } return euro+","+cent; } function ini() { for( var posnum = 0; posnum < posnums.length; posnum++) { var pos=posnums[posnum]; calcA(pos); } sumA(); } var oldtarget; var oldaction; function settarget(form,target,action) { oldtarget=form.target; form.target=target; oldaction=form.action; form.action=action; } function resettarget(form) { form.target=oldtarget; form.action=oldaction; }