String.prototype.isEmail = function() {
	var re = new RegExp( '^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$', 'i' );
	return re.test( this );
};

String.prototype.isZIP = function() {
	var re = new RegExp( '^[0-9]{5}$' );
	return re.test( this );
};

String.prototype.isCanadianPostalCode = function() {
	var re = new RegExp( '^[ABCEGHJ-NPRSTV-Z][0-9][ABCEGHJ-NPRSTV-Z] [0-9][ABCEGHJ-NPRSTV-Z][0-9]$' );
	return re.test( this );
};
