$(function () {
  //set custom validation rules
	$("#confirm1").addValidation(function() {
    if (!(this.valid = !this.checked)) {
      this.error = "The conditions must be accepted to continue with the application.";
    }
  });

  $("input:submit[value='Apply Online']").click(function () {
    $(this).closest("form").removeAttr("target");
  });
  $("input:submit[value='Download Application Form']").click(function () {
    $(this).closest("form").attr("target", "_blank");
  });
});
