//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 * @package Starweb Webshop System
 * @version See version-file
 * @copyright Copyright (c) 2000 - 2008, 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.
 */
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/** Initialize: Public variables */
/** @var string - Get: Div name to hide/show */
var sDivName = 'divBtnBuy_';






//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 * @name Function: Get Url, Button Buy
 * @access public
 *
 * @param int iId
 * @param string sArtModelId
 * 
 * @return string
 */
function GetUrlBtnBuy(iId, sArtModelId)
{
   // Get: Settings
   var sArtModelIdSafe = sArtModelId.replace("+", "///");
   
   // Get: Random string as BtnBuyKey
   var sBtnBuyKey = GetRandStr();
   
   
   // Get: Url for inserting an article to the cart
   var sUrlBtnBuy =
      sUrlApp + 'Frameset/fr' + sCartFrameName + '.php'
      + '?sAction=bIsInsertArt'
      + '&iId='           + iId
      + '&sArtModelId='   + sArtModelIdSafe
      + '&sBtnBuyKey='    + sBtnBuyKey;
   
   
   return sUrlBtnBuy;
}