$.validator.setDefaults({
  submitHandler: function() {
    document.getElementById('form1').submit();
  }
});

$().ready(function() {
  var validator = $("#form1").bind("invalid-form.validate", function() {
    $("#summary1").html("Formulario contiene " + validator.numberOfInvalids() + " errores, vea los detalles abajo.");
  }).validate({
      debug: true,
      errorElement: "em",
      errorContainer: $("#summary1"),
      errorPlacement: function(error, element) {
      error.appendTo( element.parent("td").next("td") );
    },
    success: function(label) {
      label.text(" ").addClass("success");
    }
  });
        
});


function setCursor(object){ 
   object.style.cursor="pointer";
}

