if(jQuery.validator){                                                    
    jQuery.validator.addMethod(
        "ValidLoginName",
         function(value,element) { 
              //Spit the date
              var validLogin = /^[0-9,A-Z,a-z,\.]{2,50}$/.test(value);
             
              //Return it
              return this.optional(element) || validLogin;
        },
        "Please enter a valid login.<br> Between 2 - 50 letters, aplhanumeric and case senstative.<br>No spaces. But can use dots.<br>eg: 'Joe.The.Slicer'");
}

/**
	Set the defaults for the datepicker control
**/
