function phoneValidate(p_intPhoneAC, p_intPhoneF3, p_intPhoneL4, p_required)
{
	// p_intPhoneAC is the value of the three area code numbers
	// p_intPhoneF3 is the value of the first three numbers of the phone number
	// p_intPhoneL4 is the value of the last four numbers of the phone number
	
	blnIsValid = true;
	
	if(!(p_intPhoneAC.length == 0 && p_intPhoneF3.length == 0 && p_intPhoneL4.length == 0 && !p_required))
	{
	
		if(p_intPhoneAC.length == 0 || isNaN(p_intPhoneAC) || p_intPhoneAC.length < 3)
		{
			blnIsValid = false;		
		}
		else if(p_intPhoneF3.length == 0 || isNaN(p_intPhoneF3) || p_intPhoneF3.length < 3)
		{
			blnIsValid = false;		
		}	
		else if(p_intPhoneL4.length == 0 || isNaN(p_intPhoneL4) || p_intPhoneL4.length < 4)
		{
			blnIsValid = false;		
		}
	}
	
	return blnIsValid;
}	
