var f0=K0765[0];var f1=K0765[1];
function p0765ba(lang, fasertyp, anzf, stecker1, stecker2, zse1, zse2) {
ftyp = fty(fasertyp);
var x = 0;
nullen = "0000000000";
lang = lang.replace(/,/g,".");
if(lang < 1) {
alert('Bitte die Länge eingeben.');
return -1;
}
mode = "MS".indexOf(document.f2form.a2fasertyp.value.substr(1,1));
st1 = stt.indexOf(document.f2form.a2stecker1.value)/3;
st2 = stt.indexOf(document.f2form.a2stecker2.value)/3;
if(kab.substr((ftyp*kfz+anzf)*kbl,kbl) == nullen.substr(0,kbl) ||stk.substr((st1*2+mode)*stl,stl) == nullen.substr(0,stl) ||stk.substr((st2*2+mode)*stl,stl) == nullen.substr(0,stl)) {
document.f2form.dispPreis.value="";
alert('Diese Auswahl steht nicht im Standardsortiment zur Verfügung.\nBitte anfragen.\nSiehe auch Artikel 018600004:\nvorkonfektioniertes Kabel für den Innen- und Außenbereich geeignet.');
return -1;
}
x = (lang*kab.substr((ftyp*kfz+anzf)*kbl,kbl)+document.f2form.a2fasern.value*stk.substr((st1*2+mode)*stl,stl)+document.f2form.a2fasern.value*stk.substr((st2*2+mode)*stl,stl)+2*kat.substr(anzf*kal,kal)+zse1*zse+zse2*zse)/100;
x=Math.round(x/f0)/100;
if(x > 999.95) x = Math.max(x / f1, 999.95);
document.f2form.dispPreis.value = (x > 0) ? parent.l.edit(parent.l.rund(x)) : "";
document.f2form.a2lang.focus();
document.f2form.a2lang.select();
return x;
}
function p0765add(ktyp) {
parent.l.addtoc(artikel+'-'+document.f2form.a2lang.value+document.f2form.a2fasertyp.selectedIndex+document.f2form.a2fasern.selectedIndex+document.f2form.a2stecker1.selectedIndex+document.f2form.a2stecker2.selectedIndex+document.f2form.a2zse1.selectedIndex+document.f2form.a2zse2.selectedIndex,'LWL '+ktyp+', '+'vorkonfektioniert, \n'+document.f2form.a2lang.value+' m, '+document.f2form.a2fasern.options[document.f2form.a2fasern.selectedIndex].text+' '+'Fasern, '+document.f2form.a2fasertyp.options[document.f2form.a2fasertyp.selectedIndex].text+', \n'+'Seite A: '+document.f2form.a2stecker1.options[document.f2form.a2stecker1.selectedIndex].text+'-'+'Stecker '+document.f2form.a2zse1.options[document.f2form.a2zse1.selectedIndex].text+' '+'Zug-/ Schutzelement, \n'+'Seite B: '+document.f2form.a2stecker2.options[document.f2form.a2stecker2.selectedIndex].text+'-'+'Stecker '+document.f2form.a2zse2.options[document.f2form.a2zse2.selectedIndex].text+' '+'Zug-/ Schutzelement',null,null,
p0765ba(document.f2form.a2lang.value,document.f2form.a2fasertyp.value,document.f2form.a2fasern.selectedIndex,document.f2form.a2stecker1.selectedIndex,document.f2form.a2stecker2.selectedIndex,document.f2form.a2zse1.selectedIndex,document.f2form.a2zse2.selectedIndex),1,null,1,null,1,document.f2form.a2anzahl.value,19);
return;
}

