<!--
function phoneNumber(obj)
{
	var phoneArray = obj.value;
	var temp = "";
	var numCount = 0;
	
	if (phoneArray.length < 10 && phoneArray.length != 0)
	{
		alert(phoneArray + " does not have enough numbers.");
		obj.focus();
		return false;
	}
//take the first 10 numbers to make a phone number	
	for (i=0; i<phoneArray.length; i ++)
	{
		if (isNaN(phoneArray.charAt(i)) == false && numCount < 10)
		{
			if (phoneArray.charAt(i) != ' ')
			{
				if (numCount == 0)
				{
					temp = temp + '(';
				}
				if (numCount == 3)
				{
					temp = temp + ')';
				}
				if (numCount == 6)
				{
					temp = temp + '-';
				}
				temp = temp + phoneArray.charAt(i);
				numCount = numCount + 1;
			}
		}
	}
	if (numCount < 10 && phoneArray.length != 0)
	{
		alert(phoneArray + " does not have enough numbers.");
		obj.focus();
		return false;
	}
	obj.value = temp;
	return true;
}
-->
