function FVShoppingCartCode(){
   if (jQuery('.crtAdd').length > 0)
   jQuery( '.crtAdd' ).ajaxForm({
      beforeSubmit: function( formData, jqForm, options ){
         //serialize form data; append to the form action; tack on ThickBox params
         var URL = jqForm[0].action + "?" + jQuery.param(formData);
         URL += "&height=220&width=700"+"&CARTDIR="+g_CARTDIR;

         var form = jqForm[0]; 
         if( form.shp ){
            var shipping = form.shp.value;
            if (form.shp.selectedIndex==0) {          // force a selection
               alert ("Make a shipping selection!");
               return false;
            }

            var ary = shipping.split (" ");          // break apart
            for (j=0; j<ary.length; j++) {  
               if (ary[j].length < 4) continue;
               tok = ary[j].substring (0,3); // first 3 chars
               val = ary[j].substring (3);   // get data
               if (tok == "hn=")             // value for item handling
                  URL += "&" + "handling=" + val;
               if (tok == "hc=")             // value for handling cart
                  URL += "&" + "handling_cart=" + val;
               if (tok == "s1=")             // value for shipping
                  URL += "&" + "shipping=" + val;
               if (tok == "s2=")             // value for shipping2
                  URL += "&" + "shipping2=" + val;
            }
         }
         //call ThickBox directly
         var caption = "My Shopping Cart";
         var imageGroup = false;
         tb_show(caption,URL,imageGroup);
         //cancel the form submission by returning false
         return false;
      }
   });
}

