<!-- // ordering.js
 var newUser = false;
 var lastCount = 0;
 regularCartIds = new Array();
 regularCartQuantities = new Array();
 regularCartNames = new Array();
 regularCartPrices = new Array();
 regularCartDPrices = new Array();
 regularCartWeights = new Array();

 purchasedIds = new Array();
 purchasedQuantities = new Array();
 purchasedNames = new Array();
 purchasedPrices = new Array();
 purchasedWeights = new Array();

 var local_taxRate = 0;
 var fed_taxRate = 0;
 var shipBaseCharge = 0;
 var shipItemCharge = 0;
 var shipWeightCharge = 0;

 var orderWindowUp = false;
 var pcWindowUp = false;
 var oW;
 var pcW;

 function showLogin()
 {
   right.location.replace("/html/orderingLogIn.html");
   return false;
 }
 function showLogout()
 {
   right.location.replace("/J/Ordering.Logout");
   return false;
 }
 function showRegister()
 {
   right.location.replace("/J/Profile.RegistrationShow");
   return false;
 }
 function showUpdate()
 {
   right.location.replace("/html/updateProfile.html");
   return false;
 }
 function showPasswordFinder()
 {
  alert("about to pwd finder");
   right.location.replace("/html/passwordFinder.html");
   return false;
 }
 function openShop(frm)
 {
   wn = window.open('/html/ShopEntry.html', "ShopWindow", "toolbar=yes,directories=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=800,height=600");
   if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    wn.moveTo(0, 0);
    wn.resizeTo(aw, ah);
   }
   wn.focus();
   return false;
 }
 function showOrderHistory(frm)
 {
//   right.location.replace('/J/Ordering.SelectOrder');
   wn = window.open('/J/Ordering.SelectOrder', "orderHistoryWindow", "toolbar=no,directories=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=480,height=400");
   wn.focus()
   return false;
 }
 function search(srch)
 {
   right.location.replace('/J/Ordering.SearchProducts?searchList=' + srch);
   return;
 }
 function cartRefresh()
 {
   if(orderWindowUp)
   {
      oW.location.reload();
      oW.focus();
   }
   else
      showCart();
 }
 function getCategories()
 {
   right.location.replace("/J/Ordering.GetCategories");
   return false;
 }
 function checkout()
 {
   right.location.replace("/html/checkout.html");
   return false;
 }
 function regularCart()
 {
//     right.location.replace("/html/regularCart.html");
   pcWindowUp = true;
   pcW = window.open("/html/regularCart.html", "regularCartWindow", "toolbar=no,directories=no,menubar=no,location=no,scrollbars=yes,width=450,height=400");
   pcW.focus()
   return false;
 }
 function showCart()
 {
   orderWindowUp = true;
   oW = window.open("/html/showCart.html", "cartWindow", "toolbar=no,directories=no,menubar=no,location=no,scrollbars=yes,width=450,height=400");
   oW.focus()
 }
 function submitOrder()
 {
   right.location.replace('/J/Ordering.GetPayment');
 }

//-->


