Validation.add('validate-phone', 'Must contain only numbers and hypehation', {
     pattern : new RegExp("^[-(),*#\d\s]{0,15}$","gi")
});


Validation.add('validate-phone-number', 'Must contain only numbers and hyphenation', 
	function(value) 
	{
		return /^[-(),*#\d\s]{0,15}$/.test(value)
	}
);

Validation.add('validate-5-digits', 'Please use 5 numbers only in this field. please avoid spaces or other characters such as dots or commas.', function(v) {
				return Validation.get('IsEmpty').test(v) ||  /^[0-9]{5}$/.test(v);
			}
);

Validation.add('validate-3-digits', 'Please use 3 numbers only in this field. please avoid spaces or other characters such as dots or commas.', function(v) {
				return Validation.get('IsEmpty').test(v) ||  /^[0-9]{3}$/.test(v);
			}
);

Validation.add('validate-4-digits', 'Please use 4 numbers only in this field. please avoid spaces or other characters such as dots or commas.', function(v) {
				return Validation.get('IsEmpty').test(v) ||  /^[0-9]{4}$/.test(v);
			}
);

Validation.add('validate-dollar', 'Please enter a valid $ amount. For example $100.00 .', function(v) {
				// [$]1[##][,###]+[.##]
				// [$]1###+[.##]
				// [$]0.##
				// [$].##
				return /^\$?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/.test(v)
			});