var jsItemAddonsArray = new Array(); var jsAddonsAva = new Array(); var selectedAddons = new Array(); var selectedAvas = new Array(); var selectedAdditionalField = new Array(); var itm_price = "1677.94"; itm_price = "1549.00"; var currentDays; if (!jsAddonsAva[3666]) jsAddonsAva[3666] = Array(); if (!jsAddonsAva[3666][22675]) jsAddonsAva[3666][22675] = Object(); jsAddonsAva[3666][22675]["avaDays"] = '14'; jsAddonsAva[3666][22675]["avaText"] = 'Lieferzeit ca. 7- 14 Tage'; jsAddonsAva[3666][22675]["avaIcon"] = '/pictures/availability/2/Lieferzeit_ca_7-_10_Arbeitstage_49dc98c5c5845.gif'; jsAddonsAva[3666][22675]["price"] = '0.00'; if (!jsAddonsAva[3666]) jsAddonsAva[3666] = Array(); if (!jsAddonsAva[3666][22676]) jsAddonsAva[3666][22676] = Object(); jsAddonsAva[3666][22676]["avaDays"] = '14'; jsAddonsAva[3666][22676]["avaText"] = 'Lieferzeit ca. 7- 14 Tage'; jsAddonsAva[3666][22676]["avaIcon"] = '/pictures/availability/2/Lieferzeit_ca_7-_10_Arbeitstage_49dc98c5c5845.gif'; jsAddonsAva[3666][22676]["price"] = '245.00'; if (!jsAddonsAva[3981]) jsAddonsAva[3981] = Array(); if (!jsAddonsAva[3981][24307]) jsAddonsAva[3981][24307] = Object(); jsAddonsAva[3981][24307]["avaDays"] = '14'; jsAddonsAva[3981][24307]["avaText"] = 'Lieferzeit ca. 7- 14 Tage'; jsAddonsAva[3981][24307]["avaIcon"] = '/pictures/availability/2/Lieferzeit_ca_7-_10_Arbeitstage_49dc98c5c5845.gif'; jsAddonsAva[3981][24307]["price"] = '0.00'; if (!jsAddonsAva[3981]) jsAddonsAva[3981] = Array(); if (!jsAddonsAva[3981][24308]) jsAddonsAva[3981][24308] = Object(); jsAddonsAva[3981][24308]["avaDays"] = '14'; jsAddonsAva[3981][24308]["avaText"] = 'Lieferzeit ca. 7- 14 Tage'; jsAddonsAva[3981][24308]["avaIcon"] = '/pictures/availability/2/Lieferzeit_ca_7-_10_Arbeitstage_49dc98c5c5845.gif'; jsAddonsAva[3981][24308]["price"] = '288.00'; if (!jsItemAddonsArray[3981]) jsItemAddonsArray[3981] = Array(); if (!jsItemAddonsArray[3981][24307]) jsItemAddonsArray[3981][24307] = Array(); jsItemAddonsArray[3981][24307]["price"] = '0.00'; if (!jsItemAddonsArray[3981][24308]) jsItemAddonsArray[3981][24308] = Array(); jsItemAddonsArray[3981][24308]["price"] = '288.00'; if (!jsItemAddonsArray[3981][24307]) jsItemAddonsArray[3981][24307] = Array(); jsItemAddonsArray[3981][24307]["picture"] = '/pictures/itemAddon/1/ohne_Backup-Batterie_6315ddbfc27c7.jpg'; if (!jsItemAddonsArray[3981][24308]) jsItemAddonsArray[3981][24308] = Array(); jsItemAddonsArray[3981][24308]["picture"] = '/pictures/itemAddon/1/mit_Backup-Batterie_6315ddbfe5032.jpg'; if (!jsItemAddonsArray[3981][24307]) jsItemAddonsArray[3981][24307] = Array(); jsItemAddonsArray[3981][24307]["text"] = 'Die KeyBox wird über einen normalen 230 V Stromanschluss versorgt. Alle Codes bleiben bei einem Stromausfall erhalten.
Falls die Box auch während eines Stromausfalls benutzt werden soll, bestellen Sie sich die folgende Backup-Batterie mit dazu.

'; if (!jsItemAddonsArray[3981][24308]) jsItemAddonsArray[3981][24308] = Array(); jsItemAddonsArray[3981][24308]["text"] = 'Gehen Sie auf Nummer sicher und bestellen Sie eine Batteriesicherung mit dazu.
So wird die Keybox z.B. während eines Stromausfalls zwischen 40 und 60 Minuten weiterhin mit Strom versorgt und kann benutzt werden.

'; if (!jsItemAddonsArray[3666]) jsItemAddonsArray[3666] = Array(); if (!jsItemAddonsArray[3666][22675]) jsItemAddonsArray[3666][22675] = Array(); jsItemAddonsArray[3666][22675]["price"] = '0.00'; if (!jsItemAddonsArray[3666][22676]) jsItemAddonsArray[3666][22676] = Array(); jsItemAddonsArray[3666][22676]["price"] = '245.00'; if (!jsItemAddonsArray[3666][22675]) jsItemAddonsArray[3666][22675] = Array(); jsItemAddonsArray[3666][22675]["picture"] = '/pictures/itemAddon/1/ohne_Unterputzrahmen_6315dec3c3b2a.jpg'; if (!jsItemAddonsArray[3666][22676]) jsItemAddonsArray[3666][22676] = Array(); jsItemAddonsArray[3666][22676]["picture"] = '/pictures/itemAddon/1/mit_Unterputzrahmen_Artikelnr_841094_6315dec3e7d91.jpg'; if (!jsItemAddonsArray[3666][22675]) jsItemAddonsArray[3666][22675] = Array(); jsItemAddonsArray[3666][22675]["text"] = 'Die Auslieferung der KeyBox erfolgt zur Aufputzmontage.
Für die Unterputzmontage wählen Sie bitte den folgenden Unterputzrahmen.

'; if (!jsItemAddonsArray[3666][22676]) jsItemAddonsArray[3666][22676] = Array(); jsItemAddonsArray[3666][22676]["text"] = 'Die Auslieferung der KeyBox erfolgt mit Unterputzrahmen zur Unterputzmontage.

Farbe wie die bestellte Keybox. Weiß mit Artikelnr.: 841094 Schwarz mit Artikelnr.: 841095'; function changeAddons (dd) { var strpos1 = strpos (dd.name, "["); var strpos2 = strpos (dd.name, "]"); var showWarn; var iagId; var iaoId; iagId = dd.name.substring(strpos1+1, strpos2); iaoId = dd.options[dd.selectedIndex].value; setPrice (iagId,iaoId); showAddonPrice (iagId,iaoId); showAddonPicture (iagId,iaoId); showAddonText (iagId,iaoId); showAddonAdditionalField(iagId,iaoId); setAva (iagId,iaoId); showFloater(); } function showAddonPrice (iagId,iaoId) { var id = 'addonPrice_'+ iagId; var price = parseFloat(jsItemAddonsArray[iagId][iaoId]["price"]); if (jsItemAddonsArray[iagId][iaoId]["price"]*1 > 0) { document.getElementById(id).value = price.toFixed(2)+" €"; document.getElementById(id+"_div").innerHTML = price.toFixed(2)+" €"; } else { document.getElementById(id).value = ""; document.getElementById(id+"_div").innerHTML = ""; } } function showAddonPicture (iagId,iaoId) { var picture = 'pictureItemAddon_'+ iagId; if (this.document.images[picture]) this.document.images[picture].src = jsItemAddonsArray[iagId][iaoId]["picture"]; } function showAddonText (iagId,iaoId) { var id = 'addonText_'+ iagId; var text = jsItemAddonsArray[iagId][iaoId]["text"]; document.getElementById(id).innerHTML = text; } function showAddonAdditionalField (iagId,iaoId) { var id = 'addonAdditionalField_'+ iagId; var divId = 'addonAdditionalFieldText_'+ iagId; var divId2 = 'addonAdditionalFieldText2_'+ iagId; var text = jsItemAddonsArray[iagId][iaoId]["additionalFieldText"]; var wrapper = '#aAFWrapper_'+ iagId; if (text == undefined) { if (document.getElementById(id) != null) { document.getElementById(id).value = ""; document.getElementById(id).style.visibility = 'hidden'; document.getElementById(divId).style.display = 'none'; document.getElementById(divId2).style.display = 'none'; $(wrapper).css('display', 'none'); } } else { document.getElementById(divId).style.display = 'inline'; document.getElementById(divId2).style.display = 'inline'; document.getElementById(divId).innerHTML = text; document.getElementById(id).style.visibility = 'visible'; $(wrapper).css('display', 'block'); } } function setPrice (iagId,iaoId) { var actualPrice; var variantPrice; var price; selectedAddons[iagId] = jsItemAddonsArray[iagId][iaoId]["price"]*1; variantPrice = 0; for (iag in selectedAddons){ price = parseFloat(selectedAddons[iag]); variantPrice = variantPrice + price; } actualPrice = variantPrice + parseFloat(itm_price); if (actualPrice != itm_price) $("#price").html("Preis inkl. Artikelvarianten & Zubehör: " + actualPrice.toFixed(2)+" €"); else $("#price").html(""); $("#priceFloater").html(actualPrice.toFixed(2)+" €"); } function setAva (iagId,iaoId) { var selectedDays = parseInt(0); if(jsAddonsAva[iagId]== null) return true; selectedAvas[iagId] = iaoId; for (iagId in selectedAvas){ iaoId = selectedAvas[iagId]; if (selectedDays <= parseInt(jsAddonsAva[iagId][iaoId]["avaDays"])){ selectedDays = parseInt(jsAddonsAva[iagId][iaoId]["avaDays"]); selectedIagId = iagId; selectedIaoId = iaoId; } } if (selectedDays == 0) { var token = "defaultIaoId_" + iagId; var defIaoId = this.document.form1.elements[token].value document.getElementById('avaText').innerHTML = this.document.form1.defaultText.value; document.getElementById('avaText2').innerHTML = this.document.form1.defaultText.value; document.getElementById('avaText3').innerHTML = this.document.form1.defaultText.value; this.document.form1.actualDays.value = jsAddonsAva[iagId][defIaoId]["avaDays"]; $("#avaWarn").html("").hide(); $("#avaWarn2").html("").hide(); } else if (this.document.form1.defaultDays.value < selectedDays) { document.getElementById('avaText').innerHTML = jsAddonsAva[selectedIagId][selectedIaoId]["avaText"]; document.getElementById('avaText2').innerHTML = jsAddonsAva[selectedIagId][selectedIaoId]["avaText"]; document.getElementById('avaText3').innerHTML = jsAddonsAva[selectedIagId][selectedIaoId]["avaText"]; this.document.form1.actualDays.value = jsAddonsAva[selectedIagId][selectedIaoId]["avaDays"]; $("#avaWarn").html("Achtung die Versandzeit wurde geändert").show(); $("#avaWarn2").html("Achtung die Versandzeit wurde geändert").show(); } else if (this.document.form1.defaultDays.value == selectedDays) { document.getElementById('avaText').innerHTML = jsAddonsAva[selectedIagId][selectedIaoId]["avaText"]; document.getElementById('avaText2').innerHTML = jsAddonsAva[selectedIagId][selectedIaoId]["avaText"]; document.getElementById('avaText3').innerHTML = jsAddonsAva[selectedIagId][selectedIaoId]["avaText"]; this.document.form1.actualDays.value = jsAddonsAva[selectedIagId][selectedIaoId]["avaDays"]; $("#avaWarn").html("").hide(); $("#avaWarn2").html("").hide(); } else { $("#avaWarn").html("").hide(); $("#avaWarn2").html("").hide(); document.getElementById('avaText').innerHTML = this.document.form1.defaultText.value; document.getElementById('avaText2').innerHTML = this.document.form1.defaultText.value; document.getElementById('avaText3').innerHTML = this.document.form1.defaultText.value; } } function strpos(str, ch) { for (var i = 0; i < str.length; i++) { if (str.substring(i, i+1) == ch) return i; } } function showFloater() { document.getElementById('divItemFloater').style.display = "block"; } function toggleFloatersize() { if (document.getElementById('divItemFloaterContent').style.display == "block") { document.getElementById('divItemFloaterContent').style.display = "none"; $("#floaterButton").html(''); } else { document.getElementById('divItemFloaterContent').style.display = "block"; $("#floaterButton").html(''); } }