// Statuszeile
function message(txt)
{
  window.status = txt;
}

// Neues Fenster oeffnen
function openWindow(pfad, width, height)
{
  Lupe = top.window.open(pfad, "Details", "width=" + width + ", height=" + height + ", location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");
  Lupe.focus();
}

// In Warenkorb legen
function addCart(fieldName)
{
  var form = document.shop;
  var thisField = form.elements[fieldName];
  if(thisField.value != null && thisField.value.match(/^[\d]+$/))
  {
    return true;
  }
  else
  {
    var ask = confirm("Moechten Sie 1 Exemplar des Artikels in den Warenkorb legen?");
    if(ask)
    {
      thisField.value = "1";
    }
    return ask;
  }
}

