// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
jQuery.validator.addMethod("telephone", function(phone_number, element) { 
	return this.optional(element) || phone_number.match(/^[0-9 ()\-+.\/]+$/);
}, "Please specify a valid phone number");
$.validator.addMethod('shop_url', function (value) { 
    return /^[a-zA-Z0-9\-_]+$/.test(value); 
}, 'Please enter a valid US or Canadian postal code.');