function Basket_EditItem(iSIID)
{
  if (confirm("Are you sure you want to edit this item?\n\nEditing this item will mean that you will lose anything you are currently working on in the shop"))
    document.location.href = "/basket.aspx?bm=EDT&SIID=" + escape(iSIID);
}

function Basket_DeleteItem(iSIID)
{
  if (confirm("Are you sure you want to delete this item?"))
    document.location.href = "/basket.aspx?bm=DEL&SIID=" + escape(iSIID);
}

function Basket_DeleteVoucher()
{
  if (confirm("Are you sure you want to remove this voucher from your basket?"))
    document.location.href = "/basket.aspx?bm=DEL&voucher=1";
}

function Basket_BackToShop()
{
  document.location.href = "/shop.aspx?m=SH";
}

function Basket_QtyChange()
{
  $('#btnUpdateQtys').css('border-color', '#ff0000').css('border-width', '2px').css('font-weight', 'bold');
  $('#basket_notes').html('If you have made any changes to the quantities above, click &quot;Update quantities&quot; to recalculate the total');
}

function Basket_ProceedToCheckout()
{
  document.location.href = "/checkout.aspx";
}

function Basket_ShowHover(e, strPosition, iSIID, strRand)
{
  if (!e) e = window.event;
  $('#hover_basket_item')
    .stop(true, true)
    .css('left', GetPageCoordX(e) + 30)
    .css('top', GetPageCoordY(e) + 30)
    .fadeIn('fast')
    .load('/hover_basketItem.aspx?pos=' + escape(strPosition) + '&siid=' + escape(iSIID) + '&ran=' + escape(strRand));
}

function Basket_HideHover()
{
  ClearContainer($('#hover_basket_item').stop(true, true).fadeOut('fast').get(0));
}

