function reglasJqueryTest(destino){


    //  $(".carrito_msg").click(function(){
    $('.carrito_msg').click(function(){
     
        // Destroy currrent tooltip if present
        if($(this).data("qtip")) $(this).qtip("destroy");
         
        $(this) // Set the links HTML to the current opposite corner
        .qtip({
            content: "Estamos Mejorando nuestro sitio de E-Commerce. Por Favor intente nuevamente mas tarde.", // Set the tooltip content to the current corner
            position: {
                corner: {
                    tooltip: 'bottomMiddle', // Use the corner...
                    target: 'topMiddle' // ...and opposite corner
                }
            },
            show: {
                when: false, // Don't specify a show event
                ready: true, // Show the tooltip when ready
                effect: { 
                    type: 'fade',
                    length: 700
                }
            },
            //               hide: false, // Don't specify a hide event
            style: {
                border: {
                    width: 2,
                    radius: 6
                },
                padding: 7, 
                textAlign: 'center',
                tip: true, // Give it a speech bubble tip with automatic corner detection
                name: 'dark' // Style it according to the preset 'cream' style
            }
        });
        return false;
    });
  
    //  $('#accionesProductos img[title]').each(function(){
    //    if($(this).data("qtip")){
    ////      $(this).qtip("destroy");
    //    }
    //    else{
    //      $(this).qtip({
    //        content: {
    //          text: false // Use each elements title attribute
    //        },
    //        position: {
    //          corner: {
    //            tooltip: 'bottomMiddle', // Use the corner...
    //            target: 'topMiddle' // ...and opposite corner
    //          }
    //        },
    //        style: {
    //          border: {
    //            width: 1,
    //            radius: 6
    //          },
    //          padding: 3, 
    //          textAlign: 'center',
    //          tip: true, // Give it a speech bubble tip with automatic corner detection
    //          name: 'dark' // Style it according to the preset 'cream' style
    //        }
    //      });
    //    }
    //    
    //  });
  
    //  $('#accionesProductos img[title]').qtip({
    //      content: {
    //         text: false // Use each elements title attribute
    //      },
    //      position: {
    //        corner: {
    //          tooltip: 'bottomMiddle', // Use the corner...
    //          target: 'topMiddle' // ...and opposite corner
    //        }
    //      },
    //      style: {
    //        border: {
    //          width: 1,
    //          radius: 6
    //        },
    //        padding: 3, 
    //        textAlign: 'center',
    //        tip: true, // Give it a speech bubble tip with automatic corner detection
    //        name: 'dark' // Style it according to the preset 'cream' style
    //      }
    //   });
  
    //  $('.imgTitle').mouseenter(
    //    function(){
    //      $(this).qtip({
    //        content: {
    //          text: false // Use each elements title attribute
    //        },
    //        position: {
    //          corner: {
    //            tooltip: 'bottomMiddle', // Use the corner...
    //            target: 'topMiddle' // ...and opposite corner
    //          }
    //        },
    //        show: {
    //          ready: false // Show the tooltip when ready
    //        },
    //        style: {
    //          border: {
    //            width: 2,
    //            radius: 6
    //          },
    //          padding: 7, 
    //          textAlign: 'center',
    //          tip: true, // Give it a speech bubble tip with automatic corner detection
    //          name: 'dark' // Style it according to the preset 'cream' style
    //        }
    //      });
    //    })


    //    $("#DivSecciones a[title]").tooltip();
    
    //    $("#F_NuevoUsuario").validate();
  
    

    //    $('#QapTcha').QapTcha({
    //        autoRevert: true,
    //        txtLock: "Bloqueado, Deslice para continuar",
    //        txtUnlock: "Puede enviar la solicitud"
    //    });

    // Initialize Smart Wizard
    $('#wizard').smartWizard(
    {
        // Properties
        selected: 0,  // Selected Step, 0 = first step  
        keyNavigation: true, // Enable/Disable key navigation(left and right keys are used if enabled)
        enableAllSteps: false,  // Enable/Disable all steps on first load
        transitionEffect: 'slide', // Effect on navigation, none/fade/slide/slideleft
        contentURL:null, // specifying content url enables ajax content loading
        contentCache:true, // cache step contents, if false content is fetched always from ajax url
        cycleSteps: false, // cycle step navigation
        enableFinishButton: false, // makes finish button enabled always
        errorSteps:[],    // array of step numbers to highlighting as error steps
        labelNext:'Siguiente', // label for Next button
        labelPrevious:'Anterior', // label for Previous button
        labelFinish:'Finalizar',  // label for Finish button       
        // Events
        onLeaveStep: null, // triggers when leaving a step
        onShowStep: null,  // triggers when showing a step
        onFinish: enviarCarrito  // triggers when Finish button is clicked
    }
    ); 

    function enviarCarrito(){
            form = $("#F_carrito");
            var formData = form.serialize();
            var actionParams = form.attr('action').substr(form.attr('action').indexOf("?")+1);
            var params = formData +"&"+ actionParams;
//            alert(formData);
            sendAjax(params);
            return false;
        }

}
