/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


jQuery(document).ready(function(){
    jQuery.validator.addMethod("floatvalue", function (value, element) {
          return this.optional(element) || /^\d?\.?\d{1,2}$/.test(value);
            },
            "Please select a category"
    );


    jQuery.validator.addMethod("noselect", function (value, element) {
           if (value != 0) return !this.optional(element);
            },
            "Please select a category"
    );

    jQuery.validator.addMethod("special", function (value, element) {
           return this.optional(element) || /^[\w\$\@\!\~\s\`\^\*\(\)\{\}\[\]\:\;\\\>\/\,\.\+\-\|\=]+$/.test(value);
            },
            "Title contains illegal character"
    );
	
	 jQuery.validator.addMethod("phone", function (value, element) {
           return this.optional(element) || /^[\d\s\-\+]+$/.test(value);
            },
            "Please enter Valid Phone No.<br>Only Numbers, Hypen(-), Plus Symobol (+), Spaces are allowed"
    );

  

    jQuery.validator.addMethod("alphaspace", function (value, element) {
           return this.optional(element) || /^[a-zA-Z\s]+$/.test(value);
            },
            "Illegal character not allowed"
    );

    //validateNewDesignForm();
});
