// This function validates US phone numbers, but leaves others untouched.
function isUSPhone(text_field){
	bitBlurCheckInProgress = 1
	if (text_field.value.length > 0){
		var phNumTemp = stripNumeric(text_field.value, false)
		if (phNumTemp.length == 10){
			text_field.value = phNumTemp.substring(0,3) + " " + phNumTemp.substring(3,6) + "-" + phNumTemp.substring(6,10)
			bitBlurCheckInProgress = 0
			return true
		} 
/*		else if (phNumTemp.length == 7){
			text_field.value = phNumTemp.substring(0,3) + "-" + phNumTemp.substring(3,7)
			bitBlurCheckInProgress = 0
			return true
		} 
		else if (phNumTemp.length > 7){
			bitBlurCheckInProgress = 0
			return true
		} */
		else {
			alert("This is not a valid US phone number.")
			text_field.focus()
			text_field.select()
			return false
		}
	}
	else {
		bitBlurCheckInProgress = 0
		return true
	}
}