Validate={email:function(c,a){var b=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;if(!b.test(c)){throw new VE("wrongEmail",a)}return true},real:function(d,b,c,a){a=(typeof(a)!=="undefined")?a:0;if(parseFloat(d)!=d){throw new VE("wrongFloat",b)}if(d<c){throw new VE("numberTooSmall",b,c)}if(a>0&&d>a){throw new VE("numberTooBig",b,c,a)}return true},integer:function(d,b,c,a){a=(typeof(a)!=="undefined")?a:0;if(parseInt(d)!=d){throw new VE("wrongInteger",b)}if(d<c){throw new VE("numberTooSmall",b,c)}if(a>0&&d>a){throw new VE("numberTooBig",b,c,a)}return true},password:function(c,b,a,d){if(c!=b){throw new VE("valuesNotMatch",a)}if(!this.regexp(c,a,d)){throw new VE("expressionNotMatch",a)}return true},regexp:function(c,a,b){if(!b.test(c)){throw new VE("expressionNotMatch",a)}return true},string:function(d,b,c,a){a=(typeof(a)!=="undefined")?a:0;if(d.length<c){throw new VE("stringTooShort",b,c,a)
}if(a>0&&(d.length>a)){throw new VE("stringTooLong",b,c,a)}return true},url:function(c,b){var a=/http:\/\/[A-Za-z0-9\.-]{1,}\.[A-Za-z]{2,}/;if(!a.test(c)){throw new VE("wrongUrl",b)}return true}};var VE=function(d,b,c,a){c=(typeof(c)!=="undefined")?c:"";a=(typeof(a)!=="undefined")?a:"";this.name="VE";this.message=validateMessages[d];this.message=this.message.replace(/%label/gi,b);this.message=this.message.replace(/%min/gi,c);this.message=this.message.replace(/%max/gi,a);this.toString=function(){return this.message}};VE.prototype.constructor=Error;

