function FormatPhone(obj)
{
	if (obj.value == "") return;
	var phoneStr = obj.value.replace(/[^\d]/g,""); //strip non-numeric
	if ( phoneStr.length != 10 ) return;
	obj.value = "(" + phoneStr.substr(0,3) + ") " + phoneStr.substr(3,3) + "-" + phoneStr.substr(6,4);
}