/***********************************************************************************************/
/*	Additional method for jQuery Form Validation Ü)											   */
/***********************************************************************************************/
/*	Copyright (c) 2006 joern Zaefferer													   	   */
/*	Dual licensed under the MIT and GPL licenses		 									   */
/***********************************************************************************************/

jQuery.validator.addMethod("alphabetic", function(value) {
	var thisMatch = /^[a-z]+$/i.test(value);
	return thisMatch;
}, "Please enter a value letters only.");

jQuery.validator.addMethod("phone", function(value) {
	var thisMatch = /^\d{2,3}-\d{3}-\d{4}$/.test(value);
	return thisMatch;
}, "Please enter a valid telephone (xx-xxx-xxxx or xxx-xxx-xxxx)");

jQuery.validator.addMethod("domain", function(value) {
	var thisMatch = /^([a-z0-9]([-a-z0-9]*[a-z0-9])?\.)+((a[cdefgilmnoqrstuwxz]|aero|arpa)|(b[abdefghijmnorstvwyz]|biz)|(c[acdfghiklmnorsuvxyz]|cat|com|coop)|d[ejkmoz]|(e[ceghrstu]|edu)|f[ijkmor]|(g[abdefghilmnpqrstuwy]|gov)|h[kmnrtu]|(i[delmnoqrst]|info|int)|(j[emop]|jobs)|k[eghimnprwyz]|l[abcikrstuvy]|(m[acdghklmnopqrstuvwxyz]|mil|mobi|museum)|(n[acefgilopruz]|name|net)|(om|org)|(p[aefghklmnrstwy]|pro)|qa|r[eouw]|s[abcdeghijklmnortvyz]|(t[cdfghjklmnoprtvwz]|travel)|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw])$/i.test(value);
	return thisMatch;
}, "Please enter a valid domain");
			

