/* ss3.js rev003 19.03.2010 (fs)  */

function checkQuickEntry() 
{
 var ItemList = "";

 if (isNaN(document.FORM_QuickEntry.INPUT_QuickEntryQuantity.value))
   {alert("Bitte geben Sie eine Zahl als Anzahl an!")}
 else if ((document.FORM_QuickEntry.INPUT_QuickEntryQuantity.value<1) || (document.FORM_QuickEntry.INPUT_QuickEntryQuantity.value>999))
   {alert("Bitte geben Sie eine Anzahl zwischen 1 und 999 an!")}
 else if (document.FORM_QuickEntry.INPUT_QuickEntryItem.value.length<1) 
   {alert("Bitte geben Sie eine Artikelnummer an!")}
 else
  window.location.href = "/cgi-local/basket.htm?add="+document.FORM_QuickEntry.INPUT_QuickEntryItem.value+"&quantity="+document.FORM_QuickEntry.INPUT_QuickEntryQuantity.value; //Position hinzu
 return 0;
}


function clearQuickEntry() 
{
 document.FORM_QuickEntry.INPUT_QuickEntryQuantity.value="";
 document.FORM_QuickEntry.INPUT_QuickEntryItem.value="";
 return 0;
}

function ConfirmDeleteBasketItem(ItemName,ItemNumber) 
{

 if (confirm('Wollen Sie den Artikel '+ItemName+' aus der Bestellung streichen?') == 1)
  {window.location.href = "/cgi-local/basket.htm?remove="+ItemNumber};
 return 0;
}

function ConfirmDeleteBasket(QuestionText) 
{

 if (confirm(QuestionText) == 0)
  {window.location.href = "/cgi-local/basket.htm?cancel="};
 return 0;
}
function AreYouSure(QuestionText) 
{

 if (confirm(QuestionText) == 1)
  {window.location.href = "/cgi-local/basket.htm?remove="+ItemNumber};
 return 0;
}


