var laboral_c = {
	init: function() {
		
		// Comprobamos si hay javascript para la acción actual y lo ejecutamos
		if (typeof(laboral_p) != 'undefined') laboral_p.init();
    
    $("form#subscribers_form").submit(function() {
      $.post(this.action+'.xml', $(this).serialize(), function(data) {
        alert(data.getElementsByTagName('message')[0].firstChild.nodeValue);
      });
      return false;
    });

  },

  // Por si cambiamos la forma de mostrar errores
	showError: function(error) {
		alert(error);
	}
}

$(document).ready(laboral_c.init);
