   var bGood;
   var sName = navigator.appName;
   var sAppVersion = parseInt(navigator.appVersion);

   if (sName == "Netscape" && sAppVersion >= 4)
      bGood = true;
   else if (sName == "Microsoft Internet Explorer" && sAppVersion >= 4)
      bGood = true;
   else if ((sName == "WebTV Plus Receiver") ||
            (sName == "WEB TV PLUS RECEIVER"))
      bGood = true;
   else
      bGood = false;


   // If browser is no good alert
   if (bGood == false) {

      alert("Our shopping cart system was designed with IE 4.0 or later and Netscape 4.0 " +
            "or later browsers in mind. You may not be able to shop " +
            "on this site with your current browser.  It is recommended that " +
            "obtain one of these or later browsers.  Thank you.");

   }

   // Check if we should clear the cart
   // (after a submit)
   CheckSubmitted();

   
   
   function OpenSwatches(anchor) {
      OpenSwatches('');
   }
   
   function OpenSwatches(anchor) {
      if (anchor != '') {
	     anchor = '#' + anchor;
	  }
   
      var objWindow = window.open("/common/html/g-swatches.html" + anchor, "swatches", "width=595,height=550,location=no,resizable=no,menubar=no,scrollbars=yes,titlebar=yes,status=no,toolbar=no");
      objWindow.focus();
   }
   
   function OpenMeasuringInstructions() {
      var objWindow = window.open("/common/html/measuringinstructions.html", "measuringinstructions", "width=595,height=550,location=no,resizable=no,menubar=no,scrollbars=yes,titlebar=yes,status=no,toolbar=no");
      objWindow.focus();
   }
   
   function AddPOSOToCart(psColor, psColorText, psStyle, psSize, psPrice) {
      AddItem(GetGaryPOSOCode(psColor, psStyle, psSize) + "--C", psStyle + " " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   }   
   
   function AddPOSOBikiniToCart(psColor, psColorText, psStyle, psSize, psPrice) {
      AddItem(GetGaryPOSOCode(psColor, psStyle, psSize) + "--C", psStyle + " Bikini Cut " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   }
   
   function AddEnclosedElasticToCart(psColor, psColorText, psSize, psPrice) {
	  AddItem(GetGaryEnclosedElasticCode(psColor, psSize), "Enclosed Elastic Pull-On " + psColorText + " (" + psSize + ")", psPrice); 
	  window.location.href = "/cart/";	  
   }   
      
   function AddMattressToCart(psColor, psColorText, psStyle, psStyleText, psSize, psSizeText, psHeight, psPrice) {
      AddItem(GetGaryMattressCode(psColor, psStyle , psSize, psHeight) + "--C", "Mattress Cover " + psStyleText + " " + psColorText + " (" + psSizeText + " / " + psHeight + ")", psPrice);
      window.location.href = "/cart/";
   }   
    
   function AddPillowCoverToCart(psColor, psColorText, psSize, psSizeText, psClosure, psPrice) {
	  AddItem(GetGaryPillowCode(psColor, psSize) + "--C", "Pillow Cover " + psClosure + " " + psColorText + " (" + psSizeText + ")", psPrice);
      window.location.href = "/cart/";
   }  
   
   function AddNettiToCart(psCode, psStyle, psSize, psPrice) {
      AddItem(psCode + "--C", psStyle + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   }
   
   function AddBloomerToCart(psColor, psColorText, psSize, psPrice) {
      AddItem(GetGaryBloomerCode(psColor, psSize) + "--C", "Bloomer " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   } 

   function AddRomperToCart(psColor, psColorText, psSize, psPrice) {
      AddItem(GetGaryRomperCode(psColor, psSize) + "--C", "Romper " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   }    
   
   function AddBoxerShortsToCart(psColor, psColorText, psSize, psPrice) {
      AddItem(GetGaryBoxerCode(psColor, psSize) + "--C", "Boxer " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   }   
   
   function AddPullonDiaperToCart(psColor, psColorText, psProduct, psProductText, psSize, psPrice) {  
      AddItem(GetGaryPullonFlannelDiaperCode(psProduct, psColor, psSize) + "--C", psProductText + " " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";   
   }
   
   function AddDiaperToCart(psStyle, psStyleText, psColor, psColorText, psSize, psPrice) {
      AddItem(GetGaryDiaperCode(psColor, psStyle, psSize) + "--C", psStyleText + " " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   }  
   
   function AddBibToCart(psColor, psColorText, psStyle, psStyleText, psSize, psSizeText, psPrice) {
      AddItem(GetGaryBibCode(psColor, psStyle, psSize) + "--C", psStyleText + " " + psColorText + " " + psSizeText, psPrice);
      window.location.href = "/cart/";
   } 
   
   function AddPantaloonToCart(psColor, psColorText, psSize, psPrice) {
      AddItem(GetGaryPantaloonCode(psColor, psSize) + "--C", "Pantaloon " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   }
   
   function AddSkirtToCart(psStyle, psStyleText, psColor, psColorText, psSize, psPrice) {
      AddItem(GetGarySkirtCode(psStyle, psColor, psSize) + "--C", "Skirt " + psStyleText + " " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   } 

   function AddSmockToCart(psStyleText, psColor, psColorText, psSize, psPrice) {
      AddItem(GetGaryCoverallCode(psColor, psSize) + "--C", "Smock (" + psStyleText + ") " + psColorText + " (" + psSize + ")", psPrice);
      window.location.href = "/cart/";
   }    
 
