	
	/** Validation for user id **/
	jQuery.validator.addMethod("uID", function(value, element) {
	return this.optional(element) || /^[a-zA-Z0-9][a-zA-Z0-9\-_]{7,15}$/.test(value);
}, "Please enter a valid user id."); 


    /** Validation for password **/
	jQuery.validator.addMethod("uPassword", function(value, element) {
	return this.optional(element) || /^[\s]*$|^[a-zA-Z0-9+\-_!&\*]{8,16}$/.test(value);
}, "Please enter a valid password."); 


    /** Validation for Date **/
	jQuery.validator.addMethod("uDate", function(value, element) {
	return this.optional(element) || /^((((19|20)(([02468][048])|([13579][26]))-02-29))|((20[0-9][0-9])|(19[0-9][0-9]))-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))$/i.test(value);
}, "Please enter a valid date (yyyy-mm-dd)."); 

    /** Validation for positive integers **/
	jQuery.validator.addMethod("uPostiveInteger", function(value, element) {
	return this.optional(element) || /^(([1-9][0-9]*))$/.test(value);
}, "Please enter a valid positive integer value."); 

    /** Validation for mobile number
    *   Starts with a non-zero number, and allows . and -
    * **/
	jQuery.validator.addMethod("uMobileNumber", function(value, element) {
	return this.optional(element) || /^((|[1-9][0-9\-]*))$/.test(value);
}, "Please enter a valid mobile number."); 

    /** Validation for Name **/
	jQuery.validator.addMethod("uName", function(value, element) {
	return this.optional(element) || /^(|([-a-zA-Z]+[-a-zA-Z0-9\'_()?.,\s]*))$/i.test(value);
}, "Please enter a valid name."); 


    /** Validation for Alpha numeric values including space, must not start with space **/
	jQuery.validator.addMethod("uAlphaNumeric", function(value, element ) {
	return this.optional(element) || /^(|([a-zA-Z0-9][a-zA-Z0-9\s]*))$/.test(value);
}, "Only alphanumeric and space are allowed. Must start with any alphanumeric character."); 


    /** Address **/
	jQuery.validator.addMethod("uAddress", function(value, element ) {
	return this.optional(element) || /^[^\\<>]*$/.test(value);
}, ">, <, \\ and / are not allowed");


    /** Phone Number **/
	jQuery.validator.addMethod("uPhoneNumber", function(value, element ) {
	return this.optional(element) || /^(([a-z0-9+\-]*))$/i.test(value);
}, "Enter a valid phone number.");