/*
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<> 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 validateEmail (theField) {
	// re equals a regular expression that contains the information required to validate the email address.
	var re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/;
	if (re.test(theField.value)) {
		return (true);
	} else {
		alert ("Veuillez entrer une adresse courriel valide.");
	       	theField.focus();
		theField.select();
	       	return (false);
	}
}

