(function(a){a.fn.EJFValidate={version:1,spice:"EJSv_",normalizedNames:false,uniqueName:function(){if(a.fn.EJFValidate.normalizedNames==false){a('input[type="hidden"]').each(function(){var b=a(this);b.attr("name",a.fn.EJFValidate.spice+b.attr("name"))});a.fn.EJFValidate.normalizedNames=true}},restoreName:function(){if(a.fn.EJFValidate.normalizedNames==true){a('input[type="hidden"]').each(function(){var b=a(this);b.attr("name",b.attr("name").substring(a.fn.EJFValidate.spice.length))});a.fn.EJFValidate.normalizedNames=false}},submitHandler:function(b){a.fn.EJFValidate.restoreName();b.submit()}}})(jQuery);jQuery.validator.addMethod("equalToConst",function(b,a,c){return this.optional(a)||b==c},"Please enter value {0}");jQuery.validator.addMethod("numerical",function(b,a,c){if(b===undefined||b==""){return true}if(c.integerOnly==true&&/^[-+]?[0-9]*[0-9]+$/.test(b)==false){$(a).attr("msgId",1);return false}else{if(/^[-+]?[0-9]*\.?[0-9]+$/.test(b)==false){$(a).attr("msgId",2);return false}}if(c.max&&((c.integerOnly&&parseInt(b)>c.max)||(parseFloat(b)>c.max))){$(a).attr("msgId",3);return false}if(c.min!=null&&((c.integerOnly&&parseInt(b)<c.min)||(parseFloat(b)<c.min))){$(a).attr("msgId",4);return false}return true},function(c,a){var b=parseInt($(a).attr("msgId"));$(a).removeAttr("msgId");if(b==3&&c.tooBig!==undefined){return c.tooBig}if(b==4&&c.tooSmall!==undefined){return c.tooSmall}if(b==1&&c.notInt!==undefined){return c.notInt}if(c.msg!==undefined){return c.msg}else{return"please enter a numerical value"}});
