// Tausche den Text für Preis
// Der Preis steht in einem DIV mit Namen "price"
function setText (Preis) {
  document.getElementById("price").firstChild.nodeValue = Preis;
}

// Tausche Bild für Holzart

function swapPic(BildURL) {
  document.images["wood"].src = BildURL;
}

// Tausche Preis und Bild
// Variable i wird von der SelectBox übergeben
// 0 = Buche
// 1 = Eiche , usw.

function changePrice(i) {
 setText(data[i][0]);
 swapPic(data[i][1]);
}