/*
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<> Script Created by: Neil Robichaud (neil.robichaud@xwave.com) <>
<> Company: xwave						<>
<> Script Created on: August 26, 2002				<>
<> Script Last Modified on: August 26, 2002			<>
<> Script Version: 1.0						<>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
 								*/

function validatePhoneNumber(theField) {
	// re equals a regular expression that contains the information required to validate the telephone number.
	var re = /^\(?(\d{3})\)?[\-\.\ ]?(\d{3})[\-\.\ ]?(\d{4})$/
	if (re.test(theField.value)) {
		return (true);
	} else {
	alert("Veuillez entrer un numéro de téléphone valide --> (xxx) xxx-xxxx")
	theField.focus();
	theField.select();
	return (false);
	}
}
