//////////// AKTUALISIEREN:
function refreshNow(backid){
  document.basketform.action = "warenkorb.php?backid="+backid ;
  document.basketform.myaction.value = "refresh";
  document.basketform.submit();
}

//////////// LÖSCHEN:
function deleteNow(id, toback){
  document.location.href = "warenkorb.php?action=delete&delid="+id+"&toback="+ toback;
}



//////////// ANIMATION 'aktualisieren' ZEIGEN:
function showAktBild(){
  temp = new Image();
  temp.src = "../screen/pix/shop_anipfeil.gif";    
  window.document.aktBild.src = temp.src;
  document.getElementById("RefreshLink").style.fontWeight = "bold";
}

//////////// NEUE EINGABE ÜBERPRÜFEN:
function checkInput(alterWert, Index){
  neuerWert =  eval('document.forms[0].elements['+Index+'].value');
  testzahl =  Math.abs(neuerWert);
  // Ist neuer Wert Zahl?
  if(testzahl + "" == "NaN"){
    alert("Bitte geben Sie eine gültige Stückzahl ein.");
    document.forms[0].elements[Index].value = alterWert;
  } else {
    showAktBild()
  }
  parent.features.location='../screen/features.php';
}

//////////// BESTELLUNG AUFGEBEN:
function aufgeben(){
    document.basketform.action = "bestellung.php";
    document.basketform.submit();
  parent.features.location='../screen/features.php';
}

//////////// LIEFER- RECHNUNGSADRESSE:
function changeAdresse(){
  document.hugo.absenden.value = "nein";
  document.hugo.submit();
}

//////////// BESTELLUNG ABSENDEN:
function BestAbsenden(){
    document.hugo.absenden.value = "ja";
    document.hugo.submit();
}
