//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 * @package Starweb Webshop System
 * @version See version-file
 * @copyright Copyright (c) 2000 - 2007, Ehandelslogik i Lund AB
 * 
 * @author Ehandelslogik i Lund AB, org.no 556696-9019  (Starweb)
 *  Country: Sweden
 *  Homepage: www.starweb.se
 *  E-mail: support@starweb.se
 * 
 * License:
 * This program is not "free" software and restrictions apply!
 * This file as well as all other files containing the code to our software may ONLY be used and/or redistributed with written permission from us.
 * You'll find information regarding our conditions and pricing on our homepage. Contact us immediately if any of these conditions are not clear.
 */
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 * @name Function: Get Cart Quantity Number
 * @access public
 *
 * @param string sFrmName
 * @param int iQtyTxtBoxNo
 */
function GetCartQtyNo(sFrmName, iQtyTxtBoxNo)
{
   // Get: Settings
   var sQtyFldName = 'iQtyNo' + iQtyTxtBoxNo;
   var iQtyNo = sFrmName.elements[sQtyFldName].value;
   var iArtQtyNo = 1;
   
   
   // Get: Quantity number
   if(iQtyNo)
   { iArtQtyNo = IsInteger(iQtyNo) ? iQtyNo : iArtQtyNo; }
   
   
   // Return: Quantity number
   return iArtQtyNo;
}
