function validatePhoneNumber(phone, bAllowNA)
{
	var stripped;
	
	if (phone)
	{
		if (bAllowNA)
		{
			if (phone.toLowerCase() == 'n/a' || phone.toLowerCase() == 'na')
				return 0;
		}

		//strip out acceptable non-numeric characters
		stripped = phone.replace(/[\(\)\.\-\ ]/g, '');
		//alert('stripped phone: ' + stripped);		
		if (!isNaN(parseInt(stripped)))
		{
			if (stripped.length == 10)
				return 1;
		}
	}
		
	return -1;
}

function validateZip(zip)
{
	var stripped;
	
	if (zip)
	{
		//strip out acceptable non-numeric characters
		stripped = zip.replace(/[\.\-\ ]/g, '');
		//alert('zip: ' + stripped);		
		
		if (!isNaN(parseInt(stripped)))
		{
			if (stripped.length == 5 || stripped.length == 9)
				return true;
		}
	}
		
	return false;
}

